linux-user: Fix guest signal remapping after adjusting SIGABRT
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 27 Oct 2023 22:03:08 +0000 (22:03 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 30 Oct 2023 20:40:35 +0000 (13:40 -0700)
commit02d9f5b6acfa494e756ed8a5b373412e4240afaf
treecded9faa304cb8842c42439b6c8f7866f449c068
parentfd9a38fd437c4c31705071c240f4be11394ca1f8
linux-user: Fix guest signal remapping after adjusting SIGABRT

The arithmetic within the loop was not adjusted properly after SIGRTMIN
was stolen for the guest SIGABRT.  The effect was that the guest libc
could not send itself __SIGRTMIN to wake sleeping threads.

Fixes: 38ee0a7dfb4b ("linux-user: Remap guest SIGABRT")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1967
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/signal.c