]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/syscall_shim/arch/x86: Properly fetch `curr_fp` in execenv entry
authorSergiu Moga <sergiu@unikraft.io>
Mon, 28 Apr 2025 16:21:33 +0000 (19:21 +0300)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 10:59:07 +0000 (10:59 +0000)
commit3a92f1ee3f933b269768102eb36622f2665726d6
tree04a5f224ce6ae26104a3a1098840b4ba092d82a4
parent11350dfe656bb4850e21467846111d0a2915e10d
lib/syscall_shim/arch/x86: Properly fetch `curr_fp` in execenv entry

Somehow, when
commit c716bcca4822 ("{lib,arch,plat}: Redo syscall ctx's and `swapgs` logic")
introduced the auxiliary stack pointer control block it updated
fetching of current frame pointer into the auxiliary stack space for
ARM64 on both binary syscall entry and execenv entries but for x86 it
only did so for the binary syscall entry, completely forgeting about
doing the same for the execenv entry.

Fix this by updating the execenv entry to also properly fetch the
current frame pointer from the auxiliary stack pointer control
block.

Checkpatch-Ignore: COMMIT_LOG_LONG_LINE
Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Michalis Pappas <michalis@unikraft.io>
GitHub-Closes: #1635
lib/syscall_shim/arch/x86_64/include/arch/syscall_prologue.h