-
Notifications
You must be signed in to change notification settings - Fork 588
Kernel API wishlist
List of linux kernel work that would help rr.
Syscallbuf+vsyscall hooking works OK in practice, but the kernel can do so much better, so much more easily. Essentially it "just" has to record copy_to_user() within syscall handlers, plus a bit of metadata. Perhaps could be exposed through perf_event.
Modern Intel chips can do this.
Probably through perf_event. There was a previous attempt to do this, but I think it fizzled out.
rr wants to use this for efficiently waiting on CLONE_CLEAR_CHILDTID futexes.
Counter to the syscall ABI. Bug that we shouldn't let slip through the cracks. Ubuntu bug isn't moving, need to test on kernel HEAD and upstream to kernel folks.
See #692: the kernel munges sigstate to enable SIGSEGV traps when SIGSEGV is blocked, but apparently doesn't un-munge the state.