Commit 75bdf29e authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Aichun Shi
Browse files

x86/mm: Initialize text poking earlier

stable inclusion
from stable-v5.10.189
commit 79972c2b95eca5e7d3d237d728339b21e9075629
category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8LVBS
CVE: N/A
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=79972c2b95eca5e7d3d237d728339b21e9075629



-------------------------------------

Intel-SIG: commit 79972c2b95ec ("x86/mm: Initialize text poking earlier")
Backport x86 related patches from 5.10.189 upstream

-------------------------------------

commit 5b93a836 upstream.

Move poking_init() up a bunch; specifically move it right after
mm_init() which is right before ftrace_init().

This will allow simplifying ftrace text poking which currently has
a bunch of exceptions for early boot.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221025201057.881703081@infradead.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAichun Shi <aichun.shi@intel.com>
parent 4101b2fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment