From: Laurent Vivier <laurent@vivier.eu>
To: "Ilya Leoshkevich" <iii@linux.ibm.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH 2/2] tests/tcg/linux-test: Check that sigaction can query SIGKILL/SIGSTOP
Date: Sun, 20 Jun 2021 16:27:20 +0200 [thread overview]
Message-ID: <8408f323-d7da-f813-84f0-680e55e1d2dd@vivier.eu> (raw)
In-Reply-To: <20210601145600.3131040-3-iii@linux.ibm.com>
Le 01/06/2021 à 16:56, Ilya Leoshkevich a écrit :
> Verify that querying is allowed, but making changes isn't.
>
> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
> ---
> tests/tcg/multiarch/linux-test.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux-test.c
> index ce033c21c7..cd9d8159bc 100644
> --- a/tests/tcg/multiarch/linux-test.c
> +++ b/tests/tcg/multiarch/linux-test.c
> @@ -496,6 +496,15 @@ static void test_signal(void)
> sigemptyset(&act.sa_mask);
> act.sa_flags = 0;
> chk_error(sigaction(SIGSEGV, &act, NULL));
> +
> + if (sigaction(SIGKILL, &act, NULL) == 0) {
> + error("sigaction(SIGKILL, &act, NULL) must not succeed");
> + }
> + if (sigaction(SIGSTOP, &act, NULL) == 0) {
> + error("sigaction(SIGSTOP, &act, NULL) must not succeed");
> + }
> + chk_error(sigaction(SIGKILL, NULL, &act));
> + chk_error(sigaction(SIGSTOP, NULL, &act));
> }
>
> #define SHM_SIZE 32768
>
Applied to my linux-user-for-6.1 branch.
Thanks,
Laurent
prev parent reply other threads:[~2021-06-20 14:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 14:55 [PATCH 0/2] linux-user: Let sigaction query SIGKILL/SIGSTOP Ilya Leoshkevich
2021-06-01 14:55 ` [PATCH 1/2] " Ilya Leoshkevich
2021-06-20 14:19 ` Laurent Vivier
2021-06-20 14:21 ` Laurent Vivier
2021-06-01 14:56 ` [PATCH 2/2] tests/tcg/linux-test: Check that sigaction can " Ilya Leoshkevich
2021-06-20 14:26 ` Laurent Vivier
2021-06-20 14:27 ` Laurent Vivier [this message]
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=8408f323-d7da-f813-84f0-680e55e1d2dd@vivier.eu \
--to=laurent@vivier.eu \
--cc=alex.bennee@linaro.org \
--cc=borntraeger@de.ibm.com \
--cc=iii@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).