Re: [PATCH v2 02/10] s390/ftrace: Serialize text patching with text_mutex
From: Ilya Leoshkevich
Date: Wed Oct 28 2026 - 06:54:49 EST
On 10/27/26 15:30, Heiko Carstens wrote:
Add ftrace_arch_code_modify_prepare() and extend
ftrace_arch_code_modify_post_process() to acquire and release
text_mutex when ftrace code is modified.
Also add locking to ftrace_init_nop(). This way s390 uses text_mutex
like e.g. x86 and riscv.
This is part of larger series where at the end s390_kernel_write()
requires that callers hold text_mutex for serialization.
Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
---
arch/s390/kernel/ftrace.c | 11 +++++++++++
1 file changed, 11 insertions(+)
Reviewed-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>