]> git.ipfire.org Git - thirdparty/linux.git/commit
Revert "x86/module: prepare module loading for ROX allocations of text"
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Sun, 26 Jan 2025 07:47:31 +0000 (09:47 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 3 Feb 2025 10:46:02 +0000 (11:46 +0100)
commit1d7e707af446134dd272ea8a89018c63cc17bb6a
tree1d2b71a40c145e9fbe34671bebbdfa02bdfe8ce4
parentc287c072332905b7d878a8aade86cfef6b396343
Revert "x86/module: prepare module loading for ROX allocations of text"

The module code does not create a writable copy of the executable memory
anymore so there is no need to handle it in module relocation and
alternatives patching.

This reverts commit 9bfc4824fd4836c16bb44f922bfaffba5da3e4f3.

Signed-off-by: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250126074733.1384926-8-rppt@kernel.org
arch/um/kernel/um_arch.c
arch/x86/entry/vdso/vma.c
arch/x86/include/asm/alternative.h
arch/x86/kernel/alternative.c
arch/x86/kernel/ftrace.c
arch/x86/kernel/module.c