diff options
author | Magnus Karlsson <[email protected]> | 2024-06-04 14:29:25 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2024-06-05 09:42:30 +0200 |
commit | 7fcf26b315bbb728036da0862de6b335da83dff2 (patch) | |
tree | 7d19b4d26135482b39c0febf4f7ef56fe0eec936 /scripts/generate_rust_analyzer.py | |
parent | d0d1df8ba18abc57f28fb3bc053b2bf319367f2c (diff) |
Revert "xsk: Support redirect to any socket bound to the same umem"
This reverts commit 2863d665ea41282379f108e4da6c8a2366ba66db.
This patch introduced a potential kernel crash when multiple napi instances
redirect to the same AF_XDP socket. By removing the queue_index check, it is
possible for multiple napi instances to access the Rx ring at the same time,
which will result in a corrupted ring state which can lead to a crash when
flushing the rings in __xsk_flush(). This can happen when the linked list of
sockets to flush gets corrupted by concurrent accesses. A quick and small fix
is not possible, so let us revert this for now.
Reported-by: Yuval El-Hanany <[email protected]>
Signed-off-by: Magnus Karlsson <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/xdp-newbies/[email protected]
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions