summaryrefslogtreecommitdiff
path: root/tools/rcu
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2024-06-04 15:29:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-16 14:51:10 +0300
commit19cb40b1064566ea09538289bfcf5bc7ecb9b6f5 (patch)
treea25f10d7dc786e51ed54d24d97770f4128d4d5b6 /tools/rcu
parent97f51d56973e171f27d7321e8f65e19953b4408c (diff)
downloadlinux-19cb40b1064566ea09538289bfcf5bc7ecb9b6f5.tar.xz
Revert "xsk: Support redirect to any socket bound to the same umem"
commit 7fcf26b315bbb728036da0862de6b335da83dff2 upstream. 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 <YuvalE@radware.com> Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/xdp-newbies/8100DBDC-0B7C-49DB-9995-6027F6E63147@radware.com Link: https://lore.kernel.org/bpf/20240604122927.29080-2-magnus.karlsson@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/rcu')
0 files changed, 0 insertions, 0 deletions