Hi,

[auto build test WARNING on rdma/master]
[also build test WARNING on v4.7-rc4]
[cannot apply to pcmoore-selinux/next next-20160623]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Dan-Jurgens/SELinux-support-for-Infiniband-RDMA/20160624-035944
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma master
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/selinux/pkey.c:116:24: sparse: incompatible types in comparison 
>> expression (different address spaces)

vim +116 security/selinux/pkey.c

   100   * Description:
   101   * Add a new pkey record to the hash table.
   102   *
   103   */
   104  static void sel_pkey_insert(struct sel_pkey *pkey)
   105  {
   106          unsigned int idx;
   107  
   108          /* we need to impose a limit on the growth of the hash table so 
check
   109           * this bucket to make sure it is within the specified bounds
   110           */
   111          idx = sel_pkey_hashfn(pkey->psec.pkey);
   112          list_add_rcu(&pkey->list, &sel_pkey_hash[idx].list);
   113          if (sel_pkey_hash[idx].size == SEL_PKEY_HASH_BKT_LIMIT) {
   114                  struct sel_pkey *tail;
   115  
 > 116                  tail = list_entry(
   117                          rcu_dereference_protected(
   118                                  sel_pkey_hash[idx].list.prev,
   119                                  lockdep_is_held(&sel_pkey_lock)),
   120                          struct sel_pkey, list);
   121                  list_del_rcu(&tail->list);
   122                  kfree_rcu(tail, rcu);
   123          } else {
   124                  sel_pkey_hash[idx].size++;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.

Reply via email to