CC: [email protected]
CC: [email protected]
TO: Martijn Coenen <[email protected]>
CC: Jens Axboe <[email protected]>
CC: Christoph Hellwig <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   d4961772226de3b48a395a26c076d450d7044c76
commit: 3448914e8cc550ba792d4ccc74471d1ca4293aae loop: Add LOOP_CONFIGURE ioctl
date:   11 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 11 months ago
config: ia64-randconfig-m031-20210410 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

New smatch warnings:
drivers/block/loop.c:238 loop_validate_block_size() warn: impossible condition 
'(bsize > (1 << 16)) => (0-u16max > 65536)'

Old smatch warnings:
drivers/block/loop.c:798 loop_attr_backing_file_show() warn: passing zero to 
'PTR_ERR'

vim +238 drivers/block/loop.c

2e5ab5f379f96a Ming Lei       2015-08-17  230  
3448914e8cc550 Martijn Coenen 2020-05-13  231  /**
3448914e8cc550 Martijn Coenen 2020-05-13  232   * loop_validate_block_size() - 
validates the passed in block size
3448914e8cc550 Martijn Coenen 2020-05-13  233   * @bsize: size to validate
3448914e8cc550 Martijn Coenen 2020-05-13  234   */
3448914e8cc550 Martijn Coenen 2020-05-13  235  static int
3448914e8cc550 Martijn Coenen 2020-05-13  236  
loop_validate_block_size(unsigned short bsize)
3448914e8cc550 Martijn Coenen 2020-05-13  237  {
3448914e8cc550 Martijn Coenen 2020-05-13 @238   if (bsize < 512 || bsize > 
PAGE_SIZE || !is_power_of_2(bsize))
3448914e8cc550 Martijn Coenen 2020-05-13  239           return -EINVAL;
3448914e8cc550 Martijn Coenen 2020-05-13  240  
3448914e8cc550 Martijn Coenen 2020-05-13  241   return 0;
3448914e8cc550 Martijn Coenen 2020-05-13  242  }
3448914e8cc550 Martijn Coenen 2020-05-13  243  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to