public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] epoll_pwait06: Skip BPF map file descriptor
@ 2025-09-23 15:48 Martin Doucha
  2025-09-24  8:56 ` Cyril Hrubis
  2025-09-26 14:07 ` Cyril Hrubis
  0 siblings, 2 replies; 9+ messages in thread
From: Martin Doucha @ 2025-09-23 15:48 UTC (permalink / raw)
  To: ltp

Older kernels don't support waiting for BPF map file descriptors using
epoll. Skip the subtest, other file descriptor types are sufficient.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---

epoll_ctl(EPOLL_CTL_ADD) returns EPERM for BPF map file descriptor
on kernel v4.12.

 testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c b/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
index 3bedc2cf5..d47327bed 100644
--- a/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
+++ b/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
@@ -36,6 +36,7 @@ static void run(void)
 		case TST_FD_DIR:
 		case TST_FD_DEV_ZERO:
 		case TST_FD_PROC_MAPS:
+		case TST_FD_BPF_MAP:
 		case TST_FD_FSOPEN:
 		case TST_FD_FSPICK:
 		case TST_FD_OPEN_TREE:
-- 
2.51.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2025-09-26 14:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 15:48 [LTP] [PATCH] epoll_pwait06: Skip BPF map file descriptor Martin Doucha
2025-09-24  8:56 ` Cyril Hrubis
2025-09-24 11:06   ` Martin Doucha
2025-09-24 11:52     ` Cyril Hrubis
2025-09-24 11:59       ` Martin Doucha
2025-09-24 12:08         ` Cyril Hrubis
2025-09-24 13:06           ` Martin Doucha
2025-09-24 13:16             ` Cyril Hrubis
2025-09-26 14:07 ` Cyril Hrubis

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