The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH bpf 1/1] selftests/bpf: Enable BLK_DEV_NBD for raw_tp_writable_reject_nbd_invalid
@ 2026-07-13  6:35 Shung-Hsi Yu
  2026-07-13 11:11 ` sun jian
  2026-07-13 20:47 ` Eduard Zingerman
  0 siblings, 2 replies; 5+ messages in thread
From: Shung-Hsi Yu @ 2026-07-13  6:35 UTC (permalink / raw)
  To: bpf
  Cc: Shung-Hsi Yu, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi,
	Martin KaFai Lau, Song Liu, Yonghong Song, Jiri Olsa,
	Emil Tsalapatis, Shuah Khan, linux-kselftest, linux-kernel,
	sun jian, Matt Mullins, stable


The raw_tp_writable_reject_nbd_invalid test relies on availability of the
nbd_send_request tracepoint, which is only present if the selftest kernel is
built with CONFIG_BLK_DEV_NBD=y and the kernel built from current BPF selftests
config lacks.

Without it, the bpf_raw_tracepoint_open() call always returns with -2, leaving
raw_tp_writable_reject_nbd_invalid test always passing without exercising the
checks bpf_probe_register().

Cc: <stable@vger.kernel.org> # 5.2.0
Link: https://lore.kernel.org/bpf/alRtilWhKw4zzMkI@u94a
Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
---
Not sure if fixes tag is the right thing to use here, so use the cc
stable tag instead to get this config change propogated to other stable
branches to make stable BPF CI's job easier.
---
 tools/testing/selftests/bpf/config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index adb25146e88c..e1797bd87904 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -1,4 +1,5 @@
 CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_NBD=y
 CONFIG_BOOTPARAM_HARDLOCKUP_PANIC=y
 CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=1
 CONFIG_BPF=y
-- 
2.54.0


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

end of thread, other threads:[~2026-07-14  6:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13  6:35 [PATCH bpf 1/1] selftests/bpf: Enable BLK_DEV_NBD for raw_tp_writable_reject_nbd_invalid Shung-Hsi Yu
2026-07-13 11:11 ` sun jian
2026-07-13 20:47 ` Eduard Zingerman
2026-07-14  3:32   ` Shung-Hsi Yu
2026-07-14  6:38     ` sun jian

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