linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: net/netfilter/nf_conntrack_netlink.c:3414:29: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Mon, 6 Jul 2020 16:44:36 +0800	[thread overview]
Message-ID: <202007061623.aHYEOqVv%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3023 bytes --]

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@intel.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@strlen.de>
:::::: CC: Pablo Neira Ayuso <pablo@netfilter.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32241 bytes --]

             reply	other threads:[~2020-07-06  9:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06  8:44 kernel test robot [this message]
2020-08-16 12:59 net/netfilter/nf_conntrack_netlink.c:3414:29: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202007061623.aHYEOqVv%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luc.vanoostenryck@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).