[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241118030910.36230-1-mrpre@163.com>
Date: Mon, 18 Nov 2024 11:09:08 +0800
From: Jiayuan Chen <mrpre@....com>
To: martin.lau@...ux.dev,
edumazet@...gle.com,
jakub@...udflare.com,
davem@...emloft.net,
dsahern@...nel.org,
kuba@...nel.org,
pabeni@...hat.com,
netdev@...r.kernel.org,
bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
horms@...nel.org,
daniel@...earbox.net
Cc: mykolal@...com,
ast@...nel.org,
kpsingh@...nel.org,
jolsa@...nel.org,
eddyz87@...il.com,
shuah@...nel.org,
sdf@...ichev.me,
linux-kselftest@...r.kernel.org,
haoluo@...gle.com,
song@...nel.org,
john.fastabend@...il.com,
andrii@...nel.org,
mhal@...x.co,
yonghong.song@...ux.dev,
Jiayuan Chen <mrpre@....com>
Subject: [PATCH bpf v4 0/2] bpf: fix recursive lock and add test
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
Powered by blists - more mailing lists