]> git.baikalelectronics.ru Git - kernel.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)
commit28a610cbf946379d74211ad33b2c90275fee4205
treea68805ca80c0cc424cda83ae3100fd016f7a8793
parentcefa01c52c86be820dc823c70e84dba97b02098e
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