All of lore.kernel.org
 help / color / mirror / Atom feed
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 19:03:07 +0200	[thread overview]
Message-ID: <5032022.31r3eYUQgx@thinkpad> (raw)
In-Reply-To: <39ee7abdee12e22074b40d46775d69d37725b932.1754386027.git.jstancek@redhat.com>

Hi,
Also below typo fix in commit message.

Thanks!


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.
s/startign/starting


> 
> 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

  parent reply	other threads:[~2025-08-13 17:03 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
2025-08-13 17:03 ` Avinesh Kumar [this message]
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=5032022.31r3eYUQgx@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 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.