aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/hw/lib/py
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2025-04-10 15:31:42 +0000
committerAlexei Starovoitov <[email protected]>2025-04-10 19:51:10 +0000
commit2f41503d647629cfafea42cf6f827e4139536703 (patch)
treea358232751e16230b804094cfeb38b43ec5411d7 /tools/testing/selftests/drivers/net/hw/lib/py
parentbpf: Use architecture provided res_smp_cond_load_acquire (diff)
downloadkernel-2f41503d647629cfafea42cf6f827e4139536703.tar.gz
kernel-2f41503d647629cfafea42cf6f827e4139536703.zip
bpf: Convert queue_stack map to rqspinlock
Replace all usage of raw_spinlock_t in queue_stack_maps.c with rqspinlock. This is a map type with a set of open syzbot reports reproducing possible deadlocks. Prior attempt to fix the issues was at [0], but was dropped in favor of this approach. Make sure we return the -EBUSY error in case of possible deadlocks or timeouts, just to make sure user space or BPF programs relying on the error code to detect problems do not break. With these changes, the map should be safe to access in any context, including NMIs. [0]: https://lore.kernel.org/all/[email protected] Reported-by: [email protected] Closes: https://lore.kernel.org/all/[email protected] Reported-by: [email protected] Closes: https://lore.kernel.org/all/[email protected] Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/lib/py')
0 files changed, 0 insertions, 0 deletions