git: 347cec10e25e - main - amd64: align stack on 16 bytes when calling into a EFIRT method
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Mar 2026 23:44:54 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=347cec10e25eacb2906a0a8105eff036850db766
commit 347cec10e25eacb2906a0a8105eff036850db766
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-03-05 08:37:23 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-03-05 23:43:55 +0000
amd64: align stack on 16 bytes when calling into a EFIRT method
Reported by: Abdelkader Boudih
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
sys/amd64/amd64/efirt_support.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/amd64/amd64/efirt_support.S b/sys/amd64/amd64/efirt_support.S
index 98063ad561aa..54578f573750 100644
--- a/sys/amd64/amd64/efirt_support.S
+++ b/sys/amd64/amd64/efirt_support.S
@@ -58,6 +58,7 @@ ENTRY(efi_rt_arch_call)
cmovbl %eax, %ecx
shll $3, %ecx
subq %rcx, %rsp
+ andq $~0xf, %rsp
cmpl $0, %ebx
jz 1f