]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/modules: Set VM_FLUSH_RESET_PERMS in module_alloc()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 18 Jun 2025 00:47:25 +0000 (17:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:27:56 +0000 (18:27 +0200)
commit852084566b338d42338ee203e329b31dd8495862
treebe0fa38d663100ca28bc0268746ea67297024041
parent129947ac5441b5c3e1c350ac49492d83ce957d87
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: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
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