diff options
author | Peter Zijlstra <[email protected]> | 2023-08-14 13:44:28 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2023-08-16 09:39:16 +0200 |
commit | af023ef335f13c8b579298fc432daeef609a9e60 (patch) | |
tree | 4d638d04629a7cf48dddeddfe3c6164416e24a20 /scripts/gdb/linux/vmalloc.py | |
parent | 77f67119004296a9b2503b377d610e08b08afc2a (diff) |
x86/cpu: Fix up srso_safe_ret() and __x86_return_thunk()
vmlinux.o: warning: objtool: srso_untrain_ret() falls through to next function __x86_return_skl()
vmlinux.o: warning: objtool: __x86_return_thunk() falls through to next function __x86_return_skl()
This is because these functions (can) end with CALL, which objtool
does not consider a terminating instruction. Therefore, replace the
INT3 instruction (which is a non-fatal trap) with UD2 (which is a
fatal-trap).
This indicates execution will not continue past this point.
Fixes: fb3bd914b3ec ("x86/srso: Add a Speculative RAS Overflow mitigation")
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions