x86/alternatives: Provide text_poke_copy_locked()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Sep 2022 11:11:20 +0000 (13:11 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Oct 2022 14:41:11 +0000 (16:41 +0200)
commitfe54d0793796ccdb213d8ea7bff0b49903b6afaa
treea93858add4a90d2595767de3e46df9a41ecf0daf
parent80e4c1cd42fff110bfdae8fce7ac4f22465f9664
x86/alternatives: Provide text_poke_copy_locked()

The upcoming call thunk patching must hold text_mutex and needs access to
text_poke_copy(), which takes text_mutex.

Provide a _locked postfixed variant to expose the inner workings.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111147.159977224@infradead.org
arch/x86/include/asm/text-patching.h
arch/x86/kernel/alternative.c