From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: laurent@vivier.eu
Subject: [PATCH 4/8] linux-user: Convert signal number for FUTEX_FD
Date: Sun, 28 Aug 2022 19:10:02 -0700 [thread overview]
Message-ID: <20220829021006.67305-5-richard.henderson@linaro.org> (raw)
In-Reply-To: <20220829021006.67305-1-richard.henderson@linaro.org>
The val argument to FUTEX_FD is a signal number. Convert to match
the host, as it will be converted back when the signal is delivered.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
linux-user/syscall.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8bf4b79a9e..f50cc70f1a 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7778,6 +7778,7 @@ static int do_futex(CPUState *cpu, bool time64, target_ulong uaddr,
timeout = 0;
break;
case FUTEX_FD:
+ val = target_to_host_signal(val);
timeout = 0;
break;
case FUTEX_CMP_REQUEUE:
--
2.34.1
next prev parent reply other threads:[~2022-08-29 2:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 2:09 [PATCH 0/8] linux-user: Futex improvements Richard Henderson
2022-08-29 2:09 ` [PATCH 1/8] linux-user: Combine do_futex and do_futex_time64 Richard Henderson
2022-09-27 9:48 ` Laurent Vivier
2022-08-29 2:10 ` [PATCH 2/8] linux-user: Sink call to do_safe_futex Richard Henderson
2022-09-27 9:53 ` Laurent Vivier
2022-08-29 2:10 ` [PATCH 3/8] linux-user: Implement FUTEX_WAKE_BITSET Richard Henderson
2022-09-27 9:54 ` Laurent Vivier
2022-08-29 2:10 ` Richard Henderson [this message]
2022-09-27 9:56 ` [PATCH 4/8] linux-user: Convert signal number for FUTEX_FD Laurent Vivier
2022-08-29 2:10 ` [PATCH 5/8] linux-user: Implement PI futexes Richard Henderson
2022-09-27 10:29 ` Laurent Vivier
2022-08-29 2:10 ` [PATCH 6/8] linux-user: Update print_futex_op Richard Henderson
2022-09-27 10:31 ` Laurent Vivier
2022-08-29 2:10 ` [PATCH 7/8] linux-user: Lock log around strace Richard Henderson
2022-09-27 10:33 ` Laurent Vivier
2022-08-29 2:10 ` [PATCH 8/8] linux-user: Log tid for strace Richard Henderson
2022-09-27 10:34 ` Laurent Vivier
2022-09-28 20:33 ` Laurent Vivier
2022-09-27 10:59 ` [PATCH 0/8] linux-user: Futex improvements Laurent Vivier
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=20220829021006.67305-5-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=laurent@vivier.eu \
--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).