summaryrefslogtreecommitdiff
path: root/tools/perf/python/stackcollapse.py
diff options
context:
space:
mode:
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>2026-09-23 12:51:57 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-09-24 01:57:48 +0000
commitdb762fd96be225bd06161c9631160c755d891693 (patch)
tree9f987a92587cc2804b3ed7ac209dba235cfcb0ae /tools/perf/python/stackcollapse.py
parent6db1ce73e9853f533eb7f413f14ba00f8ec6f80d (diff)
downloadlinux-next-db762fd96be225bd06161c9631160c755d891693.tar.gz
linux-next-db762fd96be225bd06161c9631160c755d891693.zip
bpf: Fix immediate JMP JEQ/JNE on MIPS32
An addu instruction was emitted instead of addiu, causing the immediate value 1 to be interpreted as register $at. This made the comparison result invalid when the immediate operand was negative. Note that $at is mapped to BPF_REG_AX, which is used for constant blinding. Fix the instruction to use the immediate form. Found with test_bpf on MIPS32r1 emulated by QEMU. Fixes: eb63cfcd2ee8 ("mips, bpf: Add eBPF JIT for 32-bit MIPS") Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20260923105158.3514342-1-johan.almbladh@anyfinetworks.com
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions