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

2025-01-15 Thread Ilya Leoshkevich
On Wed, 2025-01-15 at 15:36 +0100, Arusekk via wrote: > This commit adds support for the `prctl(PR_SET_SYSCALL_DISPATCH)` > function in the Linux userspace emulator. Typo: this should be PR_SET_SYSCALL_USER_DISPATCH. > It is implemented as a fully host-independent function, by forcing a > SIGSYS

[PATCH] linux-user: Add syscall dispatch support

2025-01-15 Thread Arusekk via
This commit adds support for the `prctl(PR_SET_SYSCALL_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. Tested on [uglendix][1], will probably als