Re: [PATCH] Security: Rename SELinux to NSALinux

From: kbuild test robot
Date: Fri Apr 01 2016 - 05:43:13 EST


Hi Pali,

[auto build test WARNING on v4.6-rc1]
[cannot apply to pcmoore-selinux/next next-20160401]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Pali-Roh-r/Security-Rename-SELinux-to-NSALinux/20160401-165437
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> security/nsalinux/netnode.c:177:24: sparse: incompatible types in comparison expression (different address spaces)
--
include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> security/nsalinux/netport.c:125:24: sparse: incompatible types in comparison expression (different address spaces)

vim +177 security/nsalinux/netnode.c

224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 161 case PF_INET:
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 162 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4);
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 163 break;
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 164 case PF_INET6:
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 165 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6);
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 166 break;
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 167 default:
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 168 BUG();
b04eea886 security/selinux/netnode.c Paul Moore 2013-07-23 169 return;
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 170 }
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 171
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 172 /* we need to impose a limit on the growth of the hash table so check
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 173 * this bucket to make sure it is within the specified bounds */
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 174 list_add_rcu(&node->list, &sel_netnode_hash[idx].list);
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 175 if (sel_netnode_hash[idx].size == SEL_NETNODE_HASH_BKT_LIMIT) {
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 176 struct sel_netnode *tail;
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 @177 tail = list_entry(
88a693b5c security/selinux/netnode.c Dave Jones 2012-11-08 178 rcu_dereference_protected(sel_netnode_hash[idx].list.prev,
88a693b5c security/selinux/netnode.c Dave Jones 2012-11-08 179 lockdep_is_held(&sel_netnode_lock)),
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 180 struct sel_netnode, list);
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 181 list_del_rcu(&tail->list);
9801c60e9 security/selinux/netnode.c Lai Jiangshan 2011-03-18 182 kfree_rcu(tail, rcu);
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 183 } else
a639e7ca8 security/selinux/netnode.c Paul Moore 2008-04-25 184 sel_netnode_hash[idx].size++;
224dfbd81 security/selinux/netnode.c Paul Moore 2008-01-29 185 }

:::::: The code at line 177 was first introduced by commit
:::::: a639e7ca8e8282b75be2724a28bfc788aa3bb156 SELinux: Made netnode cache adds faster

:::::: TO: Paul Moore <paul.moore@xxxxxx>
:::::: CC: James Morris <jmorris@xxxxxxxxx>

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