All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Florian Schmaus <florian.schmaus@codasip.com>
Cc: Pedro Falcato <pfalcato@suse.de>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3] sigrelse01: Select signals based on SIGRTMIN/SIGRTMAX for musl compat
Date: Mon, 18 Aug 2025 15:00:38 +0200	[thread overview]
Message-ID: <20250818130038.GA21418@pevik> (raw)
In-Reply-To: <20250814152659.1368713-1-florian.schmaus@codasip.com>

Hi Florian, Pedro,

> This avoids selecting signal 34 when the test is run using
> musl. Signal 34 is used internally by musl as SIGSYNCCALL.
> Consequently, musl's signal() will return with an error status and
> errno set to EINVAL when trying to setup a signal handler for signal
> 34, causing the sigrelse01 test to fail.

+1, now it works on both glibc and musl (and hopefully in the rest of libc).

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Tested-by: Petr Vorel <pvorel@suse.cz>

> Thanks to Pedro Falcato for suggesting using SIGRTMIN and SIGRTMAX for
> this check.

nit: @Florian instead of the above I'll add:
Suggested-by: Pedro Falcato <pfalcato@suse.de>

@Pedro Can I merge with your RBT?

Kind regards,
Petr
> ---

> Changes in v3:
>     - base check on SIGRTMIN / SIGRTMAX, as suggested by Pedro Falcato

>  testcases/kernel/syscalls/sigrelse/sigrelse01.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

> diff --git a/testcases/kernel/syscalls/sigrelse/sigrelse01.c b/testcases/kernel/syscalls/sigrelse/sigrelse01.c
> index d1ed9d53a4dc..23c6758262bb 100644
> --- a/testcases/kernel/syscalls/sigrelse/sigrelse01.c
> +++ b/testcases/kernel/syscalls/sigrelse/sigrelse01.c
> @@ -739,8 +739,10 @@ int choose_sig(int sig)

>  	}

> -	return 1;
> +	if (sig < 32)
> +		return 1;

> +	return sig >= SIGRTMIN && sig <= SIGRTMAX;
>  }

>  void setup(void)

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

  reply	other threads:[~2025-08-18 13:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14 15:26 [LTP] [PATCH v3] sigrelse01: Select signals based on SIGRTMIN/SIGRTMAX for musl compat Florian Schmaus via ltp
2025-08-18 13:00 ` Petr Vorel [this message]
2025-08-18 15:35   ` Pedro Falcato
2025-08-18 20:02     ` Petr Vorel

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=20250818130038.GA21418@pevik \
    --to=pvorel@suse.cz \
    --cc=florian.schmaus@codasip.com \
    --cc=ltp@lists.linux.it \
    --cc=pfalcato@suse.de \
    /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.