]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/modules: Set VM_FLUSH_RESET_PERMS in module_alloc()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Sep 2022 11:10:44 +0000 (13:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:10:11 +0000 (14:10 +0200)
commit05e85d3767200f2825f7b26200e44c8ec93f30eb
treef5e835305028dc55696b0282b3c8cde93db2ac7b
parent4e6310e8d471441f9c1327c5f554a08993a1df94
x86/modules: Set VM_FLUSH_RESET_PERMS in module_alloc()

commit 4c4eb3ecc91f4fee6d6bf7cfbc1e21f2e38d19ff upstream.

Instead of resetting permissions all over the place when freeing module
memory tell the vmalloc code to do so. Avoids the exercise for the next
upcoming user.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111143.406703869@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/ftrace.c
arch/x86/kernel/kprobes/core.c
arch/x86/kernel/module.c