Re: [PATCH v2] linux-user: Add syscall dispatch support

2025-06-23 Thread Richard Henderson
On 6/4/25 05:00, Arusekk wrote: --- a/linux-user/i386/signal.c +++ b/linux-user/i386/signal.c @@ -865,3 +865,12 @@ void setup_sigtramp(abi_ulong sigtramp_page) unlock_user(tramp, sigtramp_page, 2 * 8); } #endif + +bool is_vdso_sigreturn(abi_ulong pc) +{ +#ifndef TARGET_X86_64 +if (p

[PATCH v2] linux-user: Add syscall dispatch support

2025-06-04 Thread Arusekk
This commit adds support for syscall user dispatch (SUD), the `prctl(PR_SET_SYSCALL_USER_DISPATCH)` function, in the Linux userspace emulator. It is implemented as a fully host-independent function, by forcing a SIGSYS early during syscall handling, if the PC is outside the allowed range and is no