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: <201808080447.ULCQQGwv%fengguang.wu@intel.com>
Date:   Wed, 8 Aug 2018 04:03:56 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Alexander Aring <aring@...atatu.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        Stefan Schmidt <stefan@...enfreihafen.org>
Subject: [net-next:master 479/480]
 drivers/net/ieee802154/mac802154_hwsim.c:409:17: sparse: incorrect type in
 assignment (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   1ba982806ce58baac44c52e6c7812245afad27c8
commit: c5d99d2b35dadebab2408bb10dcd50364eaaf9f4 [479/480] ieee802154: hwsim: fix rcu address annotation
reproduce:
        # apt-get install sparse
        git checkout c5d99d2b35dadebab2408bb10dcd50364eaaf9f4
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   drivers/net/ieee802154/mac802154_hwsim.c:799:18: sparse: incorrect type in assignment (different address spaces) @@    expected struct hwsim_pib [noderef] <asn:4>*pib @@    got  hwsim_pib [noderef] <asn:4>*pib @@
   drivers/net/ieee802154/mac802154_hwsim.c:799:18:    expected struct hwsim_pib [noderef] <asn:4>*pib
   drivers/net/ieee802154/mac802154_hwsim.c:799:18:    got struct hwsim_pib *[assigned] pib
   drivers/net/ieee802154/mac802154_hwsim.c:835:9: sparse: incorrect type in argument 1 (different address spaces) @@    expected struct callback_head *head @@    got struct callback_hstruct callback_head *head @@
   drivers/net/ieee802154/mac802154_hwsim.c:835:9:    expected struct callback_head *head
   drivers/net/ieee802154/mac802154_hwsim.c:835:9:    got struct callback_head [noderef] <asn:4>*<noident>
   drivers/net/ieee802154/mac802154_hwsim.c:113:17: sparse: incorrect type in assignment (different address spaces) @@    expected struct hwsim_pib *pib_old @@    got struct hwsim_pib struct hwsim_pib *pib_old @@
   drivers/net/ieee802154/mac802154_hwsim.c:113:17:    expected struct hwsim_pib *pib_old
   drivers/net/ieee802154/mac802154_hwsim.c:113:17:    got struct hwsim_pib [noderef] <asn:4>*pib
>> drivers/net/ieee802154/mac802154_hwsim.c:409:17: sparse: incorrect type in assignment (different address spaces) @@    expected struct hwsim_edge_info [noderef] <asn:4>*info @@    got  hwsim_edge_info [noderef] <asn:4>*info @@
   drivers/net/ieee802154/mac802154_hwsim.c:409:17:    expected struct hwsim_edge_info [noderef] <asn:4>*info
   drivers/net/ieee802154/mac802154_hwsim.c:409:17:    got struct hwsim_edge_info *[assigned] einfo
   drivers/net/ieee802154/mac802154_hwsim.c:417:9: sparse: incorrect type in argument 1 (different address spaces) @@    expected struct callback_head *head @@    got struct callback_hstruct callback_head *head @@
   drivers/net/ieee802154/mac802154_hwsim.c:417:9:    expected struct callback_head *head
   drivers/net/ieee802154/mac802154_hwsim.c:417:9:    got struct callback_head [noderef] <asn:4>*<noident>

vim +409 drivers/net/ieee802154/mac802154_hwsim.c

f25da51f Alexander Aring 2018-07-14  392  
f25da51f Alexander Aring 2018-07-14  393  static struct hwsim_edge *hwsim_alloc_edge(struct hwsim_phy *endpoint, u8 lqi)
f25da51f Alexander Aring 2018-07-14  394  {
f25da51f Alexander Aring 2018-07-14  395  	struct hwsim_edge_info *einfo;
f25da51f Alexander Aring 2018-07-14  396  	struct hwsim_edge *e;
f25da51f Alexander Aring 2018-07-14  397  
f25da51f Alexander Aring 2018-07-14  398  	e = kzalloc(sizeof(*e), GFP_KERNEL);
f25da51f Alexander Aring 2018-07-14  399  	if (!e)
f25da51f Alexander Aring 2018-07-14  400  		return NULL;
f25da51f Alexander Aring 2018-07-14  401  
f25da51f Alexander Aring 2018-07-14  402  	einfo = kzalloc(sizeof(*einfo), GFP_KERNEL);
f25da51f Alexander Aring 2018-07-14  403  	if (!einfo) {
f25da51f Alexander Aring 2018-07-14  404  		kfree(e);
f25da51f Alexander Aring 2018-07-14  405  		return NULL;
f25da51f Alexander Aring 2018-07-14  406  	}
f25da51f Alexander Aring 2018-07-14  407  
f25da51f Alexander Aring 2018-07-14  408  	einfo->lqi = 0xff;
f25da51f Alexander Aring 2018-07-14 @409  	e->info = einfo;
f25da51f Alexander Aring 2018-07-14  410  	e->endpoint = endpoint;
f25da51f Alexander Aring 2018-07-14  411  
f25da51f Alexander Aring 2018-07-14  412  	return e;
f25da51f Alexander Aring 2018-07-14  413  }
f25da51f Alexander Aring 2018-07-14  414  

:::::: The code at line 409 was first introduced by commit
:::::: f25da51fdc381ca2863248c7060b3662632f0872 ieee802154: hwsim: add replacement for fakelb

:::::: TO: Alexander Aring <aring@...atatu.com>
:::::: CC: Stefan Schmidt <stefan@...enfreihafen.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ