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>] [day] [month] [year] [list]
Date:   Thu, 18 Nov 2021 03:41:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yishai Hadas <yishaih@...dia.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Jason Gunthorpe <jgg@...dia.com>,
        Leon Romanovsky <leonro@...dia.com>
Subject: drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from
 restricted __be32

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ee1703cda8dc777e937dec172da55beaf1a74919
commit: 2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3 IB/core: Split uverbs_get_const/default to consider target type
date:   8 months ago
config: x86_64-randconfig-s022-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/infiniband/core/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32

vim +1314 drivers/infiniband/core/cm.c

067b171b8679f9 Haggai Eran    2015-07-30  1308  
87a37ce9e400e4 Håkon Bugge    2018-07-04  1309  static __be64 cm_form_tid(struct cm_id_private *cm_id_priv)
a977049dacdef6 Hal Rosenstock 2005-07-27  1310  {
a977049dacdef6 Hal Rosenstock 2005-07-27  1311  	u64 hi_tid, low_tid;
a977049dacdef6 Hal Rosenstock 2005-07-27  1312  
a977049dacdef6 Hal Rosenstock 2005-07-27  1313  	hi_tid   = ((u64) cm_id_priv->av.port->mad_agent->hi_tid) << 32;
87a37ce9e400e4 Håkon Bugge    2018-07-04 @1314  	low_tid  = (u64)cm_id_priv->id.local_id;
a977049dacdef6 Hal Rosenstock 2005-07-27  1315  	return cpu_to_be64(hi_tid | low_tid);
a977049dacdef6 Hal Rosenstock 2005-07-27  1316  }
a977049dacdef6 Hal Rosenstock 2005-07-27  1317  

:::::: The code at line 1314 was first introduced by commit
:::::: 87a37ce9e400e40daee537ff95343e3c94743c6d IB/cm: Remove unused and erroneous msg sequence encoding

:::::: TO: Håkon Bugge <haakon.bugge@...cle.com>
:::::: CC: Jason Gunthorpe <jgg@...lanox.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ