Re: [PATCH 3/9] linux-user/nios2: Fixes for signal frame setup

2021-10-14 Thread Alex Bennée
Richard Henderson writes: > Do not confuse host and guest addresses. Lock and unlock > the target_rt_sigframe structure in setup_rt_sigframe. > > Since rt_setup_ucontext always returns 0, drop the return > value entirely. This eliminates the only write to the err > variable in setup_rt_sigfra

[PATCH 3/9] linux-user/nios2: Fixes for signal frame setup

2021-10-01 Thread Richard Henderson
Do not confuse host and guest addresses. Lock and unlock the target_rt_sigframe structure in setup_rt_sigframe. Since rt_setup_ucontext always returns 0, drop the return value entirely. This eliminates the only write to the err variable in setup_rt_sigframe. Always copy the siginfo structure.