From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH] epoll_ctl06: Fix BPF map on old kernels
Date: Tue, 29 Sep 2026 16:40:44 +0200 [thread overview]
Message-ID: <arvN7MPnBolwnT3z@yuki.lan> (raw)
In-Reply-To: <20260929-fix_epoll_bpf-v1-1-39b19ab043c7@suse.com>
Hi!
> + case TST_FD_BPF_MAP:
> + /*
> + * The BPF poll callback returns POLLERR for array maps. Without
> + * the callback, poll() returns the default readiness mask.
> + */
> + SAFE_POLL(&pfd, 1, 0);
> + return pfd.revents & POLLERR ? 0 : EPERM;
Should't this be guarded with kernel version? I.e. only enabled for
kernels older than 5.8?
> default:
> return 0;
> }
> @@ -50,7 +61,7 @@ static void run(void)
> TST_FD_FOREACH(fd) {
> efd = SAFE_EPOLL_CREATE1(0);
> ev.data.fd = fd.fd;
> - err = exp_errno(fd.type);
> + err = exp_errno(&fd);
>
> TST_EXP_PASS_OR_FAIL(epoll_ctl(efd, EPOLL_CTL_ADD,
> fd.fd, &ev), err,
>
> ---
> base-commit: 0596b09f22f449cb300e8ad2d08d8b186f551a05
> change-id: 20260929-fix_epoll_bpf-5e472da8e63c
>
> Best regards,
> --
> Andrea Cervesato <andrea.cervesato@suse.com>
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-09-29 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 14:15 [LTP] [PATCH] epoll_ctl06: Fix BPF map on old kernels Andrea Cervesato
2026-09-29 14:40 ` Cyril Hrubis [this message]
2026-09-29 14:43 ` Andrea Cervesato via ltp
2026-09-29 14:58 ` Petr Vorel
2026-09-29 15:29 ` Cyril Hrubis
2026-09-29 15:53 ` Petr Vorel
2026-09-29 16:01 ` Martin Doucha
2026-09-29 17:49 ` [LTP] " linuxtestproject.agent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=arvN7MPnBolwnT3z@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.