[PW_SID:1128604] [v2] bpf, riscv: fix missing extable entry for arena load_acquire#2298
[PW_SID:1128604] [v2] bpf, riscv: fix missing extable entry for arena load_acquire#2298linux-riscv-bot wants to merge 2 commits into
Conversation
emit_atomic_ld_st() returns 1 to have build_body() skip the zext after a sub-word load_acquire. The caller does "ret = ret ?: add_exception_handler(...)", which skips add_exception_handler() on any non-zero ret, so the extable entry is missing and a faulting PROBE_ATOMIC load_acquire oopses. Check ret >= 0 before calling add_exception_handler(), and return ret unchanged so build_body() still skips the zext. Fixes: fb7cefa ("riscv, bpf: Add support arena atomics for RV64") Suggested-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn> Reviewed-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
|
Patch 1: "[v2] bpf, riscv: fix missing extable entry for arena load_acquire" |
8ca72ef to
60e0882
Compare
PR for series 1128604 applied to workflow__riscv__fixes
Name: [v2] bpf, riscv: fix missing extable entry for arena load_acquire
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1128604
Version: 2