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

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

From: Björn Töpel <hidden>
Date: 2022-02-28 13:21:54
Also in: bpf

On Mon, 28 Feb 2022 at 10:46, Magnus Karlsson [off-list ref] 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.
[...]
v1 -> v2:
* Naming xsk_zc_xmit() -> xsk_wakeup() [Maciej]
Magnus,

You forgot to include my ACK! So, again:

Acked-by: Björn Töpel <bjorn@kernel.org>


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