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:   Mon, 6 Jul 2020 16:44:36 +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: net/netfilter/nf_conntrack_netlink.c:3414:29: sparse: sparse:
 incorrect type in argument 1 (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   3 weeks ago
config: s390-randconfig-s032-20200706 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-14-g8fce3d7a-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=s390 

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

   net/netfilter/nf_conntrack_netlink.c:1962:34: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/netfilter/nf_conntrack_netlink.c:1962:34: sparse:    struct nf_conntrack_helper [noderef] __rcu *
   net/netfilter/nf_conntrack_netlink.c:1962:34: sparse:    struct nf_conntrack_helper *
>> net/netfilter/nf_conntrack_netlink.c:3414:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected char const *s1 @@     got char [noderef] __rcu * @@
   net/netfilter/nf_conntrack_netlink.c:3414:29: sparse:     expected char const *s1
   net/netfilter/nf_conntrack_netlink.c:3414:29: sparse:     got char [noderef] __rcu *
   net/netfilter/nf_conntrack_netlink.c:1163:36: sparse: sparse: context imbalance in 'ctnetlink_dump_table' - unexpected unlock

vim +3414 net/netfilter/nf_conntrack_netlink.c

c1d10adb4a521d Pablo Neira Ayuso 2006-01-05  3406  
ac7b848390036d Florian Westphal  2017-07-26  3407  static bool expect_iter_name(struct nf_conntrack_expect *exp, void *data)
ac7b848390036d Florian Westphal  2017-07-26  3408  {
ac7b848390036d Florian Westphal  2017-07-26  3409  	const struct nf_conn_help *m_help;
ac7b848390036d Florian Westphal  2017-07-26  3410  	const char *name = data;
ac7b848390036d Florian Westphal  2017-07-26  3411  
ac7b848390036d Florian Westphal  2017-07-26  3412  	m_help = nfct_help(exp->master);
ac7b848390036d Florian Westphal  2017-07-26  3413  
ac7b848390036d Florian Westphal  2017-07-26 @3414  	return strcmp(m_help->helper->name, name) == 0;
ac7b848390036d Florian Westphal  2017-07-26  3415  }
ac7b848390036d Florian Westphal  2017-07-26  3416  

:::::: The code at line 3414 was first introduced by commit
:::::: ac7b848390036dadd4351899d2a23748075916bd netfilter: expect: add and use nf_ct_expect_iterate helpers

:::::: TO: Florian Westphal <fw@...len.de>
:::::: CC: Pablo Neira Ayuso <pablo@...filter.org>

---
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" (32241 bytes)

Powered by blists - more mailing lists