From: Avinesh Kumar <akumar@suse.de>
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] syscalls/epoll_ctl04: add ELOOP to expected errnos
Date: Wed, 13 Aug 2025 18:59:30 +0200 [thread overview]
Message-ID: <5912512.DvuYhMxLoT@thinkpad> (raw)
In-Reply-To: <39ee7abdee12e22074b40d46775d69d37725b932.1754386027.git.jstancek@redhat.com>
Hi,
Reviewed-by: Avinesh Kumar <akumar@suse.de>
Tested-by: Avinesh Kumar <akumar@suse.de>
tst_test.c:2007: TINFO: Tested kernel: 6.17.0-rc1-1-default+ #11 SMP PREEMPT_DYNAMIC Wed Aug 13 16:42:23 CEST 2025 x86_64
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:676: TINFO: CONFIG_FAULT_INJECTION kernel option detected which might slow the execution
tst_test.c:1825: TINFO: Overall timeout per run is 0h 02m 00s
epoll_ctl04.c:61: TPASS: epoll_ctl(..., EPOLL_CTL_ADD, ...) with number of nesting is 5 : ELOOP (40)
Thank you,
Avinesh
On Tuesday, August 5, 2025 11:27:23 AM CEST Jan Stancek via ltp wrote:
> Kernel commit f2e467a48287 ("eventpoll: Fix semi-unbounded recursion")
> added an extra checks for determining the maximum depth of an upwards walk,
> which startign with 6.17-rc kernels now hits ELOOP before EINVAL.
>
> Add ELOOP to list of expected errnos.
>
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
> ---
> testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c
> index 955959b6b266..feb49623b15e 100644
> --- a/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c
> +++ b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c
> @@ -51,13 +51,16 @@ static void cleanup(void)
>
> static void verify_epoll_ctl(void)
> {
> + const int exp_errnos[] = {EINVAL, ELOOP};
> +
> new_epfd = epoll_create(1);
> if (new_epfd == -1)
> tst_brk(TBROK | TERRNO, "fail to create epoll instance");
>
> events.data.fd = epfd;
> - TST_EXP_FAIL(epoll_ctl(new_epfd, EPOLL_CTL_ADD, epfd, &events), EINVAL,
> - "epoll_ctl(..., EPOLL_CTL_ADD, ...) with number of nesting is 5");
> + TST_EXP_FAIL2_ARR(epoll_ctl(new_epfd, EPOLL_CTL_ADD, epfd, &events),
> + exp_errnos, ARRAY_SIZE(exp_errnos),
> + "epoll_ctl(..., EPOLL_CTL_ADD, ...) with number of nesting is 5");
> SAFE_CLOSE(new_epfd);
> }
>
>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-08-13 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 9:27 [LTP] [PATCH] syscalls/epoll_ctl04: add ELOOP to expected errnos Jan Stancek via ltp
2025-08-05 9:39 ` Andrea Cervesato via ltp
2025-08-05 11:43 ` Petr Vorel
2025-08-13 16:59 ` Avinesh Kumar [this message]
2025-08-13 17:03 ` Avinesh Kumar
2025-08-14 4:26 ` Petr Vorel
2025-08-18 5:27 ` Jan Stancek via ltp
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=5912512.DvuYhMxLoT@thinkpad \
--to=akumar@suse.de \
--cc=jstancek@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox