[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165521881350.16120.6206083063804283654.git-patchwork-notify@kernel.org>
Date: Tue, 14 Jun 2022 15:00:13 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Ciara Loftus <ciara.loftus@...el.com>
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org, bjorn@...nel.org,
magnus.karlsson@...el.com, jonathan.lemon@...il.com,
maciej.fijalkowski@...el.com
Subject: Re: [PATCH bpf] xsk: fix generic transmit when completion queue
reservation fails
Hello:
This patch was applied to bpf/bpf.git (master)
by Daniel Borkmann <daniel@...earbox.net>:
On Tue, 14 Jun 2022 07:07:46 +0000 you wrote:
> Two points of potential failure in the generic transmit function are:
> 1. completion queue (cq) reservation failure.
> 2. skb allocation failure
>
> Originally the cq reservation was performed first, followed by the skb
> allocation. Commit 675716400da6 ("xdp: fix possible cq entry leak")
> reversed the order because at the time there was no mechanism available to
> undo the cq reservation which could have led to possible cq entry leaks in
> the event of skb allocation failure. However if the skb allocation is
> performed first and the cq reservation then fails, the xsk skb destructor
> is called which blindly adds the skb address to the already full cq leading
> to undefined behavior.
>
> [...]
Here is the summary with links:
- [bpf] xsk: fix generic transmit when completion queue reservation fails
https://git.kernel.org/bpf/bpf/c/a6e944f25cdb
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