Re: [PATCH v2 3/7] linux-user: Pass ka_restorer to do_sigaction

2021-04-23 Thread Alex Bennée
Richard Henderson writes: > The value of ka_restorer needs to be saved in sigact_table. It would be nice to add a comment to sigact_table to describe what it is. This is some of the oldest code in the tree so there seems to be a fair bit of implicit knowledge is the way things are done. > At

[PATCH v2 3/7] linux-user: Pass ka_restorer to do_sigaction

2021-04-22 Thread Richard Henderson
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 --- linux-user/syscall_defs.h | 2 +- linux-user/signal.c | 5 - linux-user/syscall.c | 19 +