March 9, 2026
9:55 p.m.
This isn't really enough, because we don't know whether the %rsp is correct yet. The problem gets worse if you care about the other registers.
Technically, if you know the Rip and syscall dispatcher code, you can know where Rsp is correct or how to get it correct. But that needs some thought on how to do that nicely without deep and unobvious cross-dependence between syscall dispatcher code and the place in signal handler analyzing that. Yes, the correct solution should care about all of the registers (but probably that would happen automatically once you properly detect that you haven't left syscall dispatcher yet and correctly establish syscall frame). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10232#note_131633