Thread (4 messages) 4 messages, 3 authors, 2022-02-28

Re: [PATCH bpf v2] xsk: fix race at socket teardown

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-02-28 14:50:13
Also in: bpf

Hello:

This patch was applied to bpf/bpf.git (master)
by Daniel Borkmann [off-list ref]:

On Mon, 28 Feb 2022 10:45:52 +0100 you wrote:
From: Magnus Karlsson <magnus.karlsson@intel.com>

Fix a race in the xsk socket teardown code that can lead to a null
pointer dereference splat. The current xsk unbind code in
xsk_unbind_dev() starts by setting xs->state to XSK_UNBOUND, sets
xs->dev to NULL and then waits for any NAPI processing to terminate
using synchronize_net(). After that, the release code starts to tear
down the socket state and free allocated memory.

[...]
Here is the summary with links:
  - [bpf,v2] xsk: fix race at socket teardown
    https://git.kernel.org/bpf/bpf/c/18b1ab7aa76b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help