From: Richard Henderson Date: Mon, 29 Aug 2022 02:10:02 +0000 (-0700) Subject: linux-user: Convert signal number for FUTEX_FD X-Git-Tag: v7.2.0-rc0~69^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f9467311260c23eed758f97c75d83f1815acb29;p=thirdparty%2Fqemu.git linux-user: Convert signal number for FUTEX_FD 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 Reviewed-by: Laurent Vivier Message-Id: <20220829021006.67305-5-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e2b6b564e6c..3f144e3c1f5 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7793,6 +7793,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: