artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0036605
)
For future userland IBT, the sigcode needs to start with a endbr64.
author
deraadt
<deraadt@openbsd.org>
Mon, 17 Apr 2023 00:14:59 +0000
(
00:14
+0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 17 Apr 2023 00:14:59 +0000
(
00:14
+0000)
This is simpler than clearing the cet_u bits in the kernel.
ok guenther, kettenis
sys/arch/amd64/amd64/locore.S
patch
|
blob
|
history
diff --git
a/sys/arch/amd64/amd64/locore.S
b/sys/arch/amd64/amd64/locore.S
index
cbdaccb
..
677c816
100644
(file)
--- a/
sys/arch/amd64/amd64/locore.S
+++ b/
sys/arch/amd64/amd64/locore.S
@@
-1,4
+1,4
@@
-/* $OpenBSD: locore.S,v 1.13
3 2023/04/17 00:03
:59 deraadt Exp $ */
+/* $OpenBSD: locore.S,v 1.13
4 2023/04/17 00:14
:59 deraadt Exp $ */
/* $NetBSD: locore.S,v 1.13 2004/03/25 18:33:17 drochner Exp $ */
/*
@@
-171,6
+171,7
@@
lapic_isr:
.section .rodata
.globl sigcode
sigcode:
+ endbr64
call 1f
movq %rsp,%rdi
pushq %rdi /* fake return address */