[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191121.150403.2184487688856616276.davem@davemloft.net>
Date: Thu, 21 Nov 2019 15:04:03 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: fw@...len.de
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
pabeni@...hat.com, gandalf@...ds.org
Subject: Re: [PATCH net] udp: drop skb extensions before marking skb
stateless
From: Florian Westphal <fw@...len.de>
Date: Thu, 21 Nov 2019 06:56:23 +0100
> Once udp stack has set the UDP_SKB_IS_STATELESS flag, later skb free
> assumes all skb head state has been dropped already.
>
> This will leak the extension memory in case the skb has extensions other
> than the ipsec secpath, e.g. bridge nf data.
>
> To fix this, set the UDP_SKB_IS_STATELESS flag only if we don't have
> extensions or if the extension space can be free'd.
>
> Fixes: 895b5c9f206eb7d25dc1360a ("netfilter: drop bridge nf reset from nf_reset")
> Cc: Paolo Abeni <pabeni@...hat.com>
> Reported-by: Byron Stanoszek <gandalf@...ds.org>
> Signed-off-by: Florian Westphal <fw@...len.de>
Applied, thanks Florian.
Powered by blists - more mailing lists