summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/x86/thunks.S
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2020-11-02 11:51:11 -0800
committerBorislav Petkov <bp@suse.de>2020-11-24 13:55:39 +0100
commitaeaaf005da1de075929e56562dced4a58238efc4 (patch)
tree193bf40c6b1057d6c73f1893786db5a78b651c0e /tools/testing/selftests/x86/thunks.S
parent716572b0003ef67a4889bd7d85baf5099c5a0248 (diff)
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
Diffstat (limited to 'tools/testing/selftests/x86/thunks.S')
-rw-r--r--tools/testing/selftests/x86/thunks.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/x86/thunks.S b/tools/testing/selftests/x86/thunks.S
index 1bb5d62c16a4..a2d47d8344d4 100644
--- a/tools/testing/selftests/x86/thunks.S
+++ b/tools/testing/selftests/x86/thunks.S
@@ -57,3 +57,5 @@ call32_from_64:
ret
.size call32_from_64, .-call32_from_64
+
+.section .note.GNU-stack,"",%progbits