aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorFabian Vogt <fvogt@suse.de>2025-09-10 17:25:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-23 16:24:32 +0200
commit25509db76b9615c99df08db2179d1e5099317ffd (patch)
tree1850966d91412fdf1b1965dd6ac7bfc532c8927d /tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com
parentnvme-multipath: Skip nr_active increments in RETRY disposition (diff)
riscv: kprobes: Fix probe address validation
[ Upstream commit 9e68bd803fac49274fde914466fd3b07c4d602c8 ] When adding a kprobe such as "p:probe/tcp_sendmsg _text+15392192", arch_check_kprobe would start iterating all instructions starting from _text until the probed address. Not only is this very inefficient, but literal values in there (e.g. left by function patching) are misinterpreted in a way that causes a desync. Fix this by doing it like x86: start the iteration at the closest preceding symbol instead of the given starting point. Fixes: 87f48c7ccc73 ("riscv: kprobe: Fixup kernel panic when probing an illegal position") Signed-off-by: Fabian Vogt <fvogt@suse.de> Signed-off-by: Marvin Friedrich <marvin.friedrich@suse.com> Acked-by: Guo Ren <guoren@kernel.org> Link: https://lore.kernel.org/r/6191817.lOV4Wx5bFT@fvogt-thinkpad Signed-off-by: Paul Walmsley <pjw@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions