[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <250b2e18-13bd-b0d5-8117-112ffc42b55a@huawei.com>
Date: Fri, 25 Nov 2022 15:53:13 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: Paolo Abeni <pabeni@...hat.com>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <arvid.brodin@...en.se>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net] net: hsr: Fix potential use-after-free
On 2022/11/24 16:53, Paolo Abeni wrote:
> Hello,
>
> On Wed, 2022-11-23 at 14:30 +0800, YueHaibing wrote:
>> The skb is delivered to netif_rx() which may free it, after calling this,
>> dereferencing skb may trigger use-after-free.
>>
>> Fixes: f266a683a480 ("net/hsr: Better frame dispatch")
>> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
>
> The code looks good, but the above is not the commit introducing the
> issue, it just move the netif_rx() and later skb access from somewhere
> else.
>
> Please go deeper in git history and find the change that originated the> issue.
Ok, will dig it.
>
> Thanks,
>
> Paolo
>
> .
>
Powered by blists - more mailing lists