Re: [PATCH v2 07/10] s390/nospec-branch: Serialize text patching with text_mutex

From: Ilya Leoshkevich

Date: Wed Oct 28 2026 - 08:28:05 EST




On 10/27/26 15:30, Heiko Carstens wrote:
Acquire text_mutex inside __nospec_revert() around the patching loop.

Serialization is not required for __nospec_revert(), however this is
part of larger series where at the end s390_kernel_write() requires
that callers hold text_mutex.

Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
---
arch/s390/kernel/nospec-branch.c | 2 ++
1 file changed, 2 insertions(+)

Reviewed-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>