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]
Message-ID: <202401070142.Q4XXLJwy-lkp@intel.com>
Date: Sun, 7 Jan 2024 01:30:35 +0800
From: kernel test robot <lkp@...el.com>
To: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Bjorn Andersson <andersson@...nel.org>,
	Konrad Dybcio <konrad.dybcio@...ainline.org>,
	Krzysztof Kozlowski <krzk@...nel.org>
Subject: drivers/infiniband/core/cm.c:1272:20: sparse: sparse: cast from
 restricted __be32

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   95c8a35f1c017327eab3b6a2ff5c04255737c856
commit: 34bd6d227ffc99d8ce1ced20bbfceacb14651869 arm64: dts: qcom: sc8280xp-pmics: Add support for PMK8280 RESIN input
date:   1 year, 2 months ago
config: i386-randconfig-062-20240106 (https://download.01.org/0day-ci/archive/20240107/202401070142.Q4XXLJwy-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240107/202401070142.Q4XXLJwy-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401070142.Q4XXLJwy-lkp@intel.com/

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

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

067b171b8679f9 Haggai Eran    2015-07-30  1265  
87a37ce9e400e4 Håkon Bugge    2018-07-04  1266  static __be64 cm_form_tid(struct cm_id_private *cm_id_priv)
a977049dacdef6 Hal Rosenstock 2005-07-27  1267  {
76039ac9095f5e Mark Zhang     2021-06-02  1268  	u64 hi_tid = 0, low_tid;
76039ac9095f5e Mark Zhang     2021-06-02  1269  
76039ac9095f5e Mark Zhang     2021-06-02  1270  	lockdep_assert_held(&cm_id_priv->lock);
a977049dacdef6 Hal Rosenstock 2005-07-27  1271  
87a37ce9e400e4 Håkon Bugge    2018-07-04 @1272  	low_tid = (u64)cm_id_priv->id.local_id;
76039ac9095f5e Mark Zhang     2021-06-02  1273  	if (!cm_id_priv->av.port)
76039ac9095f5e Mark Zhang     2021-06-02  1274  		return cpu_to_be64(low_tid);
76039ac9095f5e Mark Zhang     2021-06-02  1275  
76039ac9095f5e Mark Zhang     2021-06-02  1276  	spin_lock(&cm_id_priv->av.port->cm_dev->mad_agent_lock);
76039ac9095f5e Mark Zhang     2021-06-02  1277  	if (cm_id_priv->av.port->mad_agent)
76039ac9095f5e Mark Zhang     2021-06-02  1278  		hi_tid = ((u64)cm_id_priv->av.port->mad_agent->hi_tid) << 32;
76039ac9095f5e Mark Zhang     2021-06-02  1279  	spin_unlock(&cm_id_priv->av.port->cm_dev->mad_agent_lock);
a977049dacdef6 Hal Rosenstock 2005-07-27  1280  	return cpu_to_be64(hi_tid | low_tid);
a977049dacdef6 Hal Rosenstock 2005-07-27  1281  }
a977049dacdef6 Hal Rosenstock 2005-07-27  1282  

:::::: The code at line 1272 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
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ