On Thu May 22 20:59:42 2025 +0000, Alexander Shaikhulin wrote:
Do you mean my comment in the patch is unclear or the explanation in MR is unclear? Which one should I adjust? Without %ss reload (after a syscall), any AMD (Ryzen, ThreadRipper, etc) machine would crash with something like `addr = f7f0, signo = 11, code = 1, trapno = 12` (`RSP = 0x12f7f0`) as soon as it switches to the protected mode, meaning it operates in some kind of 16-bit mode for the stack (don't know what it is, don't care either).
(32-bit FreeBSD apps on amd64 don't run into this issue because they use int 0x80.)