Skip to content

Commit 9654736

Browse files
samitolvanenwilldeacon
authored andcommitted
arm64: Disable SCS for hypervisor code
Disable SCS for code that runs at a different exception level by adding __noscs to __hyp_text. Suggested-by: James Morse <[email protected]> Signed-off-by: Sami Tolvanen <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent cde5dec commit 9654736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/kvm_hyp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <asm/kvm_mmu.h>
1414
#include <asm/sysreg.h>
1515

16-
#define __hyp_text __section(.hyp.text) notrace
16+
#define __hyp_text __section(.hyp.text) notrace __noscs
1717

1818
#define read_sysreg_elx(r,nvh,vh) \
1919
({ \

0 commit comments

Comments
 (0)