selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S
PATCH 1/1 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").
--- tools/testing/selftests/x86/thunks_32.S | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/selftests/x86/thunks_32.S +2 -0
@@ -45,3 +45,5 @@ call64_from_32: ret .size call64_from_32, .-call64_from_32 + +.section .note.GNU-stack,"",%progbits
Signature · 1 line
2.29.2
The following commit has been merged into the x86/misc branch of tip:
The following commit has been merged into the x86/misc branch of tip:
Commit-ID: f706bb59204ba1c47e896b456c97977fc97b7964 Gitweb: https://git.kernel.org/tip/f706bb59204ba1c47e896b456c97977fc97b7964 Author: Andy Lutomirski <[email protected]> AuthorDate: Thu, 04 Mar 2021 09:01:55 -08:00 Committer: Borislav Petkov <[email protected]> CommitterDate: Thu, 18 Mar 2021 11:05:14 +01:00
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").
--- tools/testing/selftests/x86/thunks_32.S | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/selftests/x86/thunks_32.S +2 -0
@@ -45,3 +45,5 @@ call64_from_32: ret .size call64_from_32, .-call64_from_32 + +.section .note.GNU-stack,"",%progbits