netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [bug report] net: ipv4: listified version of ip_rcv
       [not found] <20180706083422.5ddtaxjxhnogcvgn@kili.mountain>
@ 2018-07-06 12:09 ` Edward Cree
  0 siblings, 0 replies; only message in thread
From: Edward Cree @ 2018-07-06 12:09 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: netfilter-devel, netdev

On 06/07/18 09:34, Dan Carpenter wrote:
> Hello Edward Cree,
>
> The patch 7da517a3bc52: "net: core: Another step of skb receive list
> processing" from Jul 2, 2018, leads to the following static checker
> warning:
>
> 	net/core/dev.c:5001 netif_receive_skb_list_internal()
> 	warn: 'skb' was already freed.
>
> The patch 17266ee93984: "net: ipv4: listified version of ip_rcv" from
> Jul 2, 2018, leads to the following static checker warning:
>
> 	./include/linux/netfilter.h:301 NF_HOOK_LIST()
> 	warn: 'skb' was already freed.
>
> [...]
>
> do_xdp_generic() frees skb.
>
> [...]
>
> For this one Smatch thinks that nf_hook() sometimes frees skb, but the
> code is less clear to me than for the previous warning so I don't know.
Yep, I think both warnings are correct.  Looks like changing from a dequeue-
 enqueue model to in-place list mangling just broke a bunch of assumptions
 I'd made in earlier versions of the patches.
Fixes coming soon.

Thanks,
-Ed

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-06 12:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20180706083422.5ddtaxjxhnogcvgn@kili.mountain>
2018-07-06 12:09 ` [bug report] net: ipv4: listified version of ip_rcv Edward Cree

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