Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH bpf v4 0/2] bpf: fix recursive lock and add test
@ 2024-11-18  3:09 Jiayuan Chen
  2024-11-18  3:09 ` [PATCH bpf v4 1/2] bpf: fix recursive lock when verdict program return SK_PASS Jiayuan Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jiayuan Chen @ 2024-11-18  3:09 UTC (permalink / raw)
  To: martin.lau, edumazet, jakub, davem, dsahern, kuba, pabeni, netdev,
	bpf, linux-kernel, horms, daniel
  Cc: mykolal, ast, kpsingh, jolsa, eddyz87, shuah, sdf,
	linux-kselftest, haoluo, song, john.fastabend, andrii, mhal,
	yonghong.song, Jiayuan Chen

1. fix recursive lock when ebpf prog return SK_PASS.
2. add selftest to reproduce recursive lock.

Note that the test code can reproduce the 'dead-lock' and if just
the selftest merged without first patch, the test case will
definitely fail, because the issue of deadlock is inevitable.

---
v2->v4: fix line length reported by patchwork and remove unused code.
        (max_line_length is set to 80 in patchwork but default is 100 in kernel tree)
v1->v2: 1.inspired by martin.lau to add selftest to reproduce the issue.
        2. follow the community rules for patch.
        v1: https://lore.kernel.org/bpf/55fc6114-7e64-4b65-86d2-92cfd1e9e92f@linux.dev/T/#u
---

Jiayuan Chen (2):
  bpf: fix recursive lock when verdict program return SK_PASS
  selftests/bpf: Add some tests with sockmap SK_PASS

 net/core/skmsg.c                              |  4 +-
 .../selftests/bpf/prog_tests/sockmap_basic.c  | 54 +++++++++++++++++++
 2 files changed, 56 insertions(+), 2 deletions(-)

-- 
2.43.5


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

end of thread, other threads:[~2024-11-19  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18  3:09 [PATCH bpf v4 0/2] bpf: fix recursive lock and add test Jiayuan Chen
2024-11-18  3:09 ` [PATCH bpf v4 1/2] bpf: fix recursive lock when verdict program return SK_PASS Jiayuan Chen
2024-11-18  3:09 ` [PATCH bpf v4 2/2] selftests/bpf: Add some tests with sockmap SK_PASS Jiayuan Chen
2024-11-18 21:39 ` [PATCH bpf v4 0/2] bpf: fix recursive lock and add test Martin KaFai Lau
2024-11-19  4:00 ` patchwork-bot+netdevbpf

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