diff options
| author | Nadav Amit <[email protected]> | 2023-02-08 07:17:08 +0000 |
|---|---|---|
| committer | Dave Hansen <[email protected]> | 2023-02-08 20:03:27 +0000 |
| commit | ae052e3ae09572194d7e574906db7272041577d3 (patch) | |
| tree | adb6f9271a31518e91964af558284e9f0079fc57 /tools/perf/scripts/python/powerpc-hcalls.py | |
| parent | x86/debug: Fix stack recursion caused by wrongly ordered DR7 accesses (diff) | |
| download | kernel-ae052e3ae09572194d7e574906db7272041577d3.tar.gz kernel-ae052e3ae09572194d7e574906db7272041577d3.zip | |
x86/kprobes: Fix 1 byte conditional jump target
Commit 3bc753c06dd0 ("kbuild: treat char as always unsigned") broke
kprobes. Setting a probe-point on 1 byte conditional jump can cause the
kernel to crash when the (signed) relative jump offset gets treated as
unsigned.
Fix by replacing the unsigned 'immediate.bytes' (plus a cast) with the
signed 'immediate.value' when assigning to the relative jump offset.
[ dhansen: clarified changelog ]
Fixes: 3bc753c06dd0 ("kbuild: treat char as always unsigned")
Suggested-by: Masami Hiramatsu (Google) <[email protected]>
Suggested-by: Dave Hansen <[email protected]>
Signed-off-by: Nadav Amit <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/all/20230208071708.4048-1-namit%40vmware.com
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions
