Commit aeaaf005 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Borislav Petkov
Browse files

selftests/x86: Add missing .note.GNU-stack sections



Several of the x86 selftests end up with executable stacks because
the asm was missing the annotation that says that they are modern
and don't need executable stacks.  Add the annotations.

Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/6f043c03e9e0e4557e1e975a63b07a4d18965a68.1604346596.git.luto@kernel.org
parent 716572b0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -45,3 +45,5 @@ int80_and_ret:

	.type int80_and_ret, @function
	.size int80_and_ret, .-int80_and_ret

.section .note.GNU-stack,"",%progbits
+2 −0
Original line number Diff line number Diff line
@@ -57,3 +57,5 @@ call32_from_64:
	ret

.size call32_from_64, .-call32_from_64

.section .note.GNU-stack,"",%progbits