]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sched: Harden PREEMPT_DYNAMIC
authorPeter Zijlstra <peterz@infradead.org>
Mon, 25 Jan 2021 15:26:50 +0000 (16:26 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Feb 2021 13:12:42 +0000 (14:12 +0100)
commitef72661e28c64ad610f89acc2832ec67b27ba438
treea68805ca80c0cc424cda83ae3100fd016f7a8793
parent73f44fe19d359635a607e8e8daa0da4001c1cfc2
sched: Harden PREEMPT_DYNAMIC

Use the new EXPORT_STATIC_CALL_TRAMP() / static_call_mod() to unexport
the static_call_key for the PREEMPT_DYNAMIC calls such that modules
can no longer update these calls.

Having modules change/hi-jack the preemption calls would be horrible.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/preempt.h
include/linux/kernel.h
include/linux/sched.h
kernel/sched/core.c