diff options
| author | Heiko Carstens <hca@linux.ibm.com> | 2026-10-01 12:32:16 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-10-13 17:04:53 +0200 |
| commit | fc9bb0ecd310b53af5116415952a1fb89d4660b9 (patch) | |
| tree | e20cb98f33b5f6dd7b69f24625b7bc01db99ce0c /tools/perf/scripts/python | |
| parent | fbbe620311552ea3a1caac084dd3273ffc9fa5f5 (diff) | |
| download | linux-fc9bb0ecd310b53af5116415952a1fb89d4660b9.tar.gz linux-fc9bb0ecd310b53af5116415952a1fb89d4660b9.zip | |
s390/kprobes: Prevent kprobes on instructions with exception table entry
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@vger.kernel.org
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
