diff options
author | Josh Poimboeuf <[email protected]> | 2023-09-04 22:05:00 -0700 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2023-10-20 12:30:50 +0200 |
commit | 34a3cae7474c6e6f4a85aad4a7b8191b8b35cdcd (patch) | |
tree | 2c3c62864ab2b14a39d22a9e4fda0638fc4b044c /lib/test_fortify/write_overflow-memcpy.c | |
parent | 351236947a45a512c517153bbe109fe868d05e6d (diff) |
x86/srso: Disentangle rethunk-dependent options
CONFIG_RETHUNK, CONFIG_CPU_UNRET_ENTRY and CONFIG_CPU_SRSO are all
tangled up. De-spaghettify the code a bit.
Some of the rethunk-related code has been shuffled around within the
'.text..__x86.return_thunk' section, but otherwise there are no
functional changes. srso_alias_untrain_ret() and srso_alias_safe_ret()
((which are very address-sensitive) haven't moved.
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Acked-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/r/2845084ed303d8384905db3b87b77693945302b4.1693889988.git.jpoimboe@kernel.org
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions