Re: [PATCH 01/32] s390/kprobes: Prevent kprobes on instructions with exception table entry
From: Ilya Leoshkevich
Date: Mon Oct 12 2026 - 07:37:27 EST
On 10/1/26 12:32, Heiko Carstens wrote:
The mvcos exception handler ex_handler_ua_mvcos() decodes the faulting
instruction, assuming it is an mvcos instruction. In case the instruction
is kprobed the decoded instruction is a breakpoint instruction instead,
which leads to incorrect instruction decoding and potential register
corruption.
Fix this by simply preventing to set a kprobe on such instructions,
similar like arm64 is doing it.
Fixes: c488f5187a24 ("s390/uaccess: Shorten raw_copy_from_user() / raw_copy_to_user() inline assemblies")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
---
arch/s390/kernel/kprobes.c | 3 +++
1 file changed, 3 insertions(+)
Reviewed-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>