netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Florian Westphal <fw@strlen.de>
Cc: kbuild-all@01.org, netfilter-devel@vger.kernel.org,
	Florian Westphal <fw@strlen.de>
Subject: Re: [PATCH nf-next 3/3] netfilter: conntrack: handle initial extension alloc via krealloc
Date: Thu, 20 Apr 2017 11:40:54 +0800	[thread overview]
Message-ID: <201704201123.eaL50FSK%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170419214438.20938-4-fw@strlen.de>

Hi Florian,

[auto build test WARNING on nf-next/master]

url:    https://github.com/0day-ci/linux/commits/Florian-Westphal/netfilter-conntrack-removal-prealloc-support/20170420-100813
base:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git 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:264:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> net/netfilter/nf_conntrack_extend.c:83:17: sparse: incompatible types in comparison expression (different address spaces)

vim +83 net/netfilter/nf_conntrack_extend.c

    67		t = rcu_dereference(nf_ct_ext_types[id]);
    68		if (!t) {
    69			rcu_read_unlock();
    70			return NULL;
    71		}
    72	
    73		newoff = ALIGN(oldlen, t->align);
    74		newlen = newoff + t->len;
    75		rcu_read_unlock();
    76	
    77		alloc = max(newlen, NF_CT_EXT_PREALLOC);
    78		new = __krealloc(old, alloc, gfp);
    79		if (!new)
    80			return NULL;
    81	
    82		if (!old) {
  > 83			RCU_INIT_POINTER(ct->ext, new);
    84			memset(new->offset, 0, sizeof(new->offset));
    85		} else if (new != old) {
    86			kfree_rcu(old, rcu);
    87			rcu_assign_pointer(ct->ext, new);
    88		}
    89	
    90		new->offset[id] = newoff;
    91		new->len = newlen;

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

      reply	other threads:[~2017-04-20  3:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19 21:44 [PATCH nf-next 0/3] netfilter: conntrack: removal prealloc support Florian Westphal
2017-04-19 21:44 ` [PATCH nf-next 1/3] netfilter: conntrack: remove " Florian Westphal
2017-04-19 21:44 ` [PATCH nf-next 2/3] netfilter: conntrack: mark extension structs as const Florian Westphal
2017-04-19 21:44 ` [PATCH nf-next 3/3] netfilter: conntrack: handle initial extension alloc via krealloc Florian Westphal
2017-04-20  3:40   ` kbuild test robot [this message]

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=201704201123.eaL50FSK%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=fw@strlen.de \
    --cc=kbuild-all@01.org \
    --cc=netfilter-devel@vger.kernel.org \
    /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).