Skip to content

Commit aeaaf00

Browse files
amlutosuryasaimadhu
authored andcommitted
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: Andy Lutomirski <luto@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/6f043c03e9e0e4557e1e975a63b07a4d18965a68.1604346596.git.luto@kernel.org
1 parent 716572b commit aeaaf00

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎tools/testing/selftests/x86/raw_syscall_helper_32.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ int80_and_ret:
4545

4646
.type int80_and_ret, @function
4747
.size int80_and_ret, .-int80_and_ret
48+
49+
.section .note.GNU-stack,"",%progbits

‎tools/testing/selftests/x86/thunks.S‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ call32_from_64:
5757
ret
5858

5959
.size call32_from_64, .-call32_from_64
60+
61+
.section .note.GNU-stack,"",%progbits

0 commit comments

Comments
 (0)