aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/x86/thunks_32.S
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2021-03-04 09:01:55 -0800
committerBorislav Petkov <bp@suse.de>2021-03-18 11:05:14 +0100
commitf706bb59204ba1c47e896b456c97977fc97b7964 (patch)
tree7aea6ed442934e218f87c7ec754373870618762a /tools/testing/selftests/x86/thunks_32.S
parenttools/x86/kcpuid: Add AMD Secure Encryption leaf (diff)
downloadwireguard-linux-f706bb59204ba1c47e896b456c97977fc97b7964.tar.xz
wireguard-linux-f706bb59204ba1c47e896b456c97977fc97b7964.zip
selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S
test_syscall_vdso_32 ended up with an executable stacks because the asm was missing the annotation that says that it is modern and doesn't need an executable stack. Add the annotation. This was missed in commit aeaaf005da1d ("selftests/x86: Add missing .note.GNU-stack sections"). Fixes: aeaaf005da1d ("selftests/x86: Add missing .note.GNU-stack sections") Signed-off-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/487ed5348a43c031b816fa7e9efedb75dc324299.1614877299.git.luto@kernel.org
Diffstat (limited to 'tools/testing/selftests/x86/thunks_32.S')
-rw-r--r--tools/testing/selftests/x86/thunks_32.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/x86/thunks_32.S b/tools/testing/selftests/x86/thunks_32.S
index a71d92da8f46..f3f56e681e9f 100644
--- a/tools/testing/selftests/x86/thunks_32.S
+++ b/tools/testing/selftests/x86/thunks_32.S
@@ -45,3 +45,5 @@ call64_from_32:
ret
.size call64_from_32, .-call64_from_32
+
+.section .note.GNU-stack,"",%progbits