mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] use rqspinlock for bpf lru map
@ 2025-10-30  3:00 Menglong Dong
  2025-10-30  3:00 ` [PATCH bpf 1/2] bpf: use rqspinlock for " Menglong Dong
  2025-10-30  3:00 ` [PATCH bpf 2/2] selftests/bpf: test map deadlock caused by NMI Menglong Dong
  0 siblings, 2 replies; 6+ messages in thread
From: Menglong Dong @ 2025-10-30  3:00 UTC (permalink / raw)
  To: martin.lau, leon.hwang
  Cc: ast, daniel, andrii, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, shuah, jiang.biao,
	linux-kernel, bpf, linux-kselftest

Convert the raw_spinlock to rqspinlock to fix the possible deadlock in
[1] for bpf lru map. Meanwhile, add the testcase for the deadlock.

Link: https://lore.kernel.org/bpf/CAEf4BzbTJCUx0D=zjx6+5m5iiGhwLzaP94hnw36ZMDHAf4-U_w@mail.gmail.com/[1]
Menglong Dong (2):
  bpf: use rqspinlock for lru map
  selftests/bpf: test map deadlock caused by NMI

 kernel/bpf/bpf_lru_list.c                     |  47 +++---
 kernel/bpf/bpf_lru_list.h                     |   5 +-
 .../selftests/bpf/prog_tests/map_deadlock.c   | 134 ++++++++++++++++++
 .../selftests/bpf/progs/map_deadlock.c        |  52 +++++++
 4 files changed, 217 insertions(+), 21 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/map_deadlock.c
 create mode 100644 tools/testing/selftests/bpf/progs/map_deadlock.c

-- 
2.51.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-31  2:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-30  3:00 [PATCH bpf 0/2] use rqspinlock for bpf lru map Menglong Dong
2025-10-30  3:00 ` [PATCH bpf 1/2] bpf: use rqspinlock for " Menglong Dong
2025-10-30  3:38   ` bot+bpf-ci
2025-10-30 22:38     ` Alexei Starovoitov
2025-10-31  2:12       ` Menglong Dong
2025-10-30  3:00 ` [PATCH bpf 2/2] selftests/bpf: test map deadlock caused by NMI Menglong Dong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®