linux-user: Pass ka_restorer to do_sigaction
commit02fb28e8effe5090ded4d36ea1c947a615099c26
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 22 Apr 2021 23:02:23 +0000 (22 16:02 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 18 May 2021 05:10:32 +0000 (18 07:10 +0200)
tree1b7d0312a0b3f09b487a22a1c706b7169cee225b
parentf20a9ca6d09796a50e850bd105ba03aa96918e5f
linux-user: Pass ka_restorer to do_sigaction

The value of ka_restorer needs to be saved in sigact_table.
At the moment, the attempt to save it in do_syscall is
improperly clobbering user memory.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210422230227.314751-4-richard.henderson@linaro.org>
[lv: remove tab]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/signal.c
linux-user/syscall.c
linux-user/syscall_defs.h