[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <161059560818.8885.13113581154759603172.git-patchwork-notify@kernel.org>
Date: Thu, 14 Jan 2021 03:40:08 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Cristian Dumitrescu <cristian.dumitrescu@...el.com>
Cc: intel-wired-lan@...ts.osuosl.org, bpf@...r.kernel.org,
netdev@...r.kernel.org, magnus.karlsson@...el.com,
bjorn.topel@...el.com, maciej.fijalkowski@...el.com
Subject: Re: [PATCH net] i40e: fix potential NULL pointer dereferencing
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Mon, 11 Jan 2021 18:11:38 +0000 you wrote:
> Currently, the function i40e_construct_skb_zc only frees the input xdp
> buffer when the output skb is successfully built. On error, the
> function i40e_clean_rx_irq_zc does not commit anything for the current
> packet descriptor and simply exits the packet descriptor processing
> loop, with the plan to restart the processing of this descriptor on
> the next invocation. Therefore, on error the ring next-to-clean
> pointer should not advance, the xdp i.e. *bi buffer should not be
> freed and the current buffer info should not be invalidated by setting
> *bi to NULL. Therefore, the *bi should only be set to NULL when the
> function i40e_construct_skb_zc is successful, otherwise a NULL *bi
> will be dereferenced when the work for the current descriptor is
> eventually restarted.
>
> [...]
Here is the summary with links:
- [net] i40e: fix potential NULL pointer dereferencing
https://git.kernel.org/netdev/net/c/7128c834d30e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists