Skip to contentSkip to conversation

: Retpoline thunks for PIC modules

PATCH In review Ruslan Nikolaev 1 participant 1 message Jan 15, 2019 x86

lore
Share & tools
lore
#0 lore raw

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).

---
 Makefile    |    3 +++
 retpoline.S |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)
arch/x86/module-lib/Makefile +3 -0
diff -uprN a/arch/x86/module-lib/Makefile b/arch/x86/module-lib/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-$(CONFIG_RETPOLINE) += retpoline.o
\ No newline at end of file
arch/x86/module-lib/retpoline.S +47 -0

47 lines not on this page · raw message