support rt_sigreturn

This commit is contained in:
2025-12-16 11:14:10 +01:00
parent 08f21c06fb
commit 3633346d53
4 changed files with 67 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ IvyBridge(2012) and AMD Zen 2 Family 17H(2019) and Linux 5.9(2020).
- [x] `clone`: with and without stack switching
- [x] `clone3`: with and without stack switching
- [x] `fork`: likely there is nothing to be done here but just to be sure, check again
- [ ] `sigretun`/`rt_sigreturn`: we can't use the normal `syscall` interception because we push
something onto the stack, so `ucontext` isn't on top anymore.
- [x] `rt_sigreturn`: we can't use the normal `syscall` interception because we push something onto
the stack, so `ucontext` isn't on top anymore.
- [x] `/proc/self/exe`: intercept calls to `readlink`/`readlinkat` with that as argument
- [ ] `auxv`: check if that is setup correctly and completely
- [ ] JIT support: intercept `mmap`, `mprotect` and `mremap` that change pages to be executable