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:   Tue, 5 Dec 2017 02:58:09 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Florian Westphal <fw@...len.de>
Cc:     kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 134/141] net/core/rtnetlink.c:155:15: sparse:
 incompatible types in comparison expression (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   a3fde2addd5f0218b64102005a237ef727b0dc30
commit: addf9b90de22f7aaad0db39bccb5d51ac47dd4e1 [134/141] net: rtnetlink: use rcu to free rtnl message handlers
reproduce:
        # apt-get install sparse
        git checkout addf9b90de22f7aaad0db39bccb5d51ac47dd4e1
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +155 net/core/rtnetlink.c

   147	
   148	static struct rtnl_link *rtnl_get_link(int protocol, int msgtype)
   149	{
   150		struct rtnl_link **tab;
   151	
   152		if (protocol >= ARRAY_SIZE(rtnl_msg_handlers))
   153			protocol = PF_UNSPEC;
   154	
 > 155		tab = rcu_dereference_rtnl(rtnl_msg_handlers[protocol]);
   156		if (!tab)
   157			tab = rcu_dereference_rtnl(rtnl_msg_handlers[PF_UNSPEC]);
   158	
   159		return tab[msgtype];
   160	}
   161	

---
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