lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 17 Nov 2018 18:53:10 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc:     kbuild-all@...org, Andrew Morton <akpm@...ux-foundation.org>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        Arnd Bergmann <arnd@...db.de>,
        Kees Cook <keescook@...omium.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
        Masahiro Yamada <yamada.masahiro@...ionext.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] build_bug.h: remove all dummy BUILD_BUG_ON stubs for
 sparse

Hi Masahiro,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc2 next-20181116]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Masahiro-Yamada/build_bug-h-remove-negative-array-fallback-for-BUILD_BUG_ON/20181116-190414
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:260:39: warning: incorrect type in assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:260:39:    expected unsigned int [unsigned] [usertype] <noident>
   drivers/crypto/chelsio/chcr_algo.c:260:39:    got restricted __be32 [usertype] <noident>
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2747:65: warning: incorrect type in assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:2747:65:    expected unsigned short [unsigned] [short] <noident>
   drivers/crypto/chelsio/chcr_algo.c:2747:65:    got restricted __be16 [usertype] <noident>
   drivers/crypto/chelsio/chcr_algo.c:3014:46: warning: incorrect type in assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:3014:46:    expected unsigned int [unsigned] <noident>
   drivers/crypto/chelsio/chcr_algo.c:3014:46:    got restricted __be32 [usertype] <noident>
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   drivers/crypto/mediatek/mtk-sha.c:251:17: warning: incorrect type in assignment (different base types)
   drivers/crypto/mediatek/mtk-sha.c:251:17:    expected unsigned long long [unsigned] [long] [long long] <noident>
   drivers/crypto/mediatek/mtk-sha.c:251:17:    got restricted __be64 [usertype] <noident>
   drivers/crypto/mediatek/mtk-sha.c:252:17: warning: incorrect type in assignment (different base types)
   drivers/crypto/mediatek/mtk-sha.c:252:17:    expected unsigned long long [unsigned] [long] [long long] <noident>
   drivers/crypto/mediatek/mtk-sha.c:252:17:    got restricted __be64 [usertype] <noident>
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   drivers/infiniband/hw/hns/hns_roce_ah.c:72:24: warning: incorrect type in assignment (different base types)
   drivers/infiniband/hw/hns/hns_roce_ah.c:72:24:    expected restricted __le32 [usertype] port_pd
   drivers/infiniband/hw/hns/hns_roce_ah.c:72:24:    got restricted __be32 [usertype] <noident>
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
..

vim +767 include/crypto/hash.h

974959863 Herbert Xu 2009-02-03  764  
7b5a080b3 Herbert Xu 2008-08-31  765  static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg)
7b5a080b3 Herbert Xu 2008-08-31  766  {
7b5a080b3 Herbert Xu 2008-08-31 @767  	return container_of(alg, struct shash_alg, base);
7b5a080b3 Herbert Xu 2008-08-31  768  }
7b5a080b3 Herbert Xu 2008-08-31  769  

:::::: The code at line 767 was first introduced by commit
:::::: 7b5a080b3c46f0cac71c0d0262634c6517d4ee4f crypto: hash - Add shash interface

:::::: TO: Herbert Xu <herbert@...dor.apana.org.au>
:::::: CC: Herbert Xu <herbert@...dor.apana.org.au>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (66620 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ