: Retpoline thunks for PIC modules
PATCH 5/6 : Retpoline thunks for PIC modules
Retpoline thunks for PIC modules
The patch is by Hassan Nadeem and Ruslan Nikolaev. This extends the prior PIE kernel patch (by Thomas Garnier) to also support position-independent modules that can be placed anywhere in the 48/64-bit address space (for better KASLR).
Signed-off-by Ruslan Nikolaev <[email protected]>
--- Makefile | 3 +++ retpoline.S | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+)
arch/x86/module-lib/Makefile +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-$(CONFIG_RETPOLINE) += retpoline.o
arch/x86/module-lib/retpoline.S +47 -0
47 lines not on this page · raw message