[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zt/qrKmCX3u6BMu+@gauss3.secunet.de>
Date: Tue, 10 Sep 2024 08:43:56 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Florian Westphal <fw@...len.de>
CC: <netdev@...r.kernel.org>, Julian Wiedmann <jwiedmann.dev@...il.com>
Subject: Re: [PATCH ipsec-next] xfrm: policy: fix null dereference
On Fri, Aug 30, 2024 at 04:39:10PM +0200, Florian Westphal wrote:
> Julian Wiedmann says:
> > + if (!xfrm_pol_hold_rcu(ret))
>
> Coverity spotted that ^^^ needs a s/ret/pol fix-up:
>
> > CID 1599386: Null pointer dereferences (FORWARD_NULL)
> > Passing null pointer "ret" to "xfrm_pol_hold_rcu", which dereferences it.
>
> Ditch the bogus 'ret' variable.
>
> Fixes: 563d5ca93e88 ("xfrm: switch migrate to xfrm_policy_lookup_bytype")
> Reported-by: Julian Wiedmann <jwiedmann.dev@...il.com>
> Closes: https://lore.kernel.org/netdev/06dc2499-c095-4bd4-aee3-a1d0e3ec87c4@gmail.com/
> Signed-off-by: Florian Westphal <fw@...len.de>
Now appiled to ipsec-next, thanks!
Powered by blists - more mailing lists