On Tue, 22 Feb 2022 at 10:44, Magnus Karlsson <magnus.karlsson@xxxxxxxxx> wrote: > > From: Magnus Karlsson <magnus.karlsson@xxxxxxxxx> > > 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. > [...] > > Fixes: 42fddcc7c64b ("xsk: use state member for socket synchronization") > Reported-by: Elza Mathew <elza.mathew@xxxxxxxxx> > Signed-off-by: Magnus Karlsson <magnus.karlsson@xxxxxxxxx> Thanks for fixing this! Acked-by: Björn Töpel <bjorn@xxxxxxxxxx>