summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2026-10-01 12:32:16 +0200
committerHeiko Carstens <hca@linux.ibm.com>2026-10-13 17:04:53 +0200
commitfc9bb0ecd310b53af5116415952a1fb89d4660b9 (patch)
treee20cb98f33b5f6dd7b69f24625b7bc01db99ce0c /tools/perf/scripts/python/stackcollapse.py
parentfbbe620311552ea3a1caac084dd3273ffc9fa5f5 (diff)
downloadlinux-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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions