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: <202007120453.hohBWBGd%lkp@intel.com>
Date:   Sun, 12 Jul 2020 04:49:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse:
 sparse: incorrect type in argument 2 (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1df0d8960499e58963fd6c8ac75e544f2b417b29
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   3 weeks ago
config: i386-randconfig-s002-20200712 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-37-gc9676a3b-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:330:19: sparse: sparse: mixed bitwiseness
   drivers/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:484:19: sparse: sparse: mixed bitwiseness
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected unsigned char const [usertype] *ies @@     got unsigned char const [noderef] __rcu * @@
   drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse:     expected unsigned char const [usertype] *ies
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3002:63: sparse:     got unsigned char const [noderef] __rcu *
   drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3003:38: sparse: sparse: dereference of noderef expression
   drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3003:38: sparse: sparse: dereference of noderef expression

vim +3002 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

4f58121dc40a1d Ilan Peer 2019-05-19  2994  
4f58121dc40a1d Ilan Peer 2019-05-19  2995  static void iwl_mvm_check_he_obss_narrow_bw_ru_iter(struct wiphy *wiphy,
4f58121dc40a1d Ilan Peer 2019-05-19  2996  						    struct cfg80211_bss *bss,
4f58121dc40a1d Ilan Peer 2019-05-19  2997  						    void *_data)
4f58121dc40a1d Ilan Peer 2019-05-19  2998  {
4f58121dc40a1d Ilan Peer 2019-05-19  2999  	struct iwl_mvm_he_obss_narrow_bw_ru_data *data = _data;
4f58121dc40a1d Ilan Peer 2019-05-19  3000  	const struct element *elem;
4f58121dc40a1d Ilan Peer 2019-05-19  3001  
4f58121dc40a1d Ilan Peer 2019-05-19 @3002  	elem = cfg80211_find_elem(WLAN_EID_EXT_CAPABILITY, bss->ies->data,
4f58121dc40a1d Ilan Peer 2019-05-19  3003  				  bss->ies->len);
4f58121dc40a1d Ilan Peer 2019-05-19  3004  
4f58121dc40a1d Ilan Peer 2019-05-19  3005  	if (!elem || elem->datalen < 10 ||
4f58121dc40a1d Ilan Peer 2019-05-19  3006  	    !(elem->data[10] &
4f58121dc40a1d Ilan Peer 2019-05-19  3007  	      WLAN_EXT_CAPA10_OBSS_NARROW_BW_RU_TOLERANCE_SUPPORT)) {
4f58121dc40a1d Ilan Peer 2019-05-19  3008  		data->tolerated = false;
4f58121dc40a1d Ilan Peer 2019-05-19  3009  	}
4f58121dc40a1d Ilan Peer 2019-05-19  3010  }
4f58121dc40a1d Ilan Peer 2019-05-19  3011  

:::::: The code at line 3002 was first introduced by commit
:::::: 4f58121dc40a1d5dd2f630a5ec4dac5afa1ce3f4 iwlwifi: mvm: Block 26-tone RU OFDMA transmissions

:::::: TO: Ilan Peer <ilan.peer@...el.com>
:::::: CC: Luca Coelho <luciano.coelho@...el.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" (42849 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ