[PW_SID:1127938] bpf, riscv: add timed may_goto support#2289
[PW_SID:1127938] bpf, riscv: add timed may_goto support#2289linux-riscv-bot wants to merge 4 commits into
Conversation
setup_smp() calls set_cpu_possible() for CPUs 1..nr_cpu_ids-1 but never for CPU 0 (the boot CPU). x86 handles this via init_cpu_possible(cpumask_of(0)); RISC-V has no equivalent. Without CPU 0 in cpu_possible_mask, rcu_init_one()'s for_each_possible_cpu() loop skips it, leaving rdp->mynode=NULL. rcutree_prepare_cpu() then dereferences NULL and hangs. Exposed on Sophgo SG2042 (64-hart, 4-NUMA) with Linux 7.2-rc3. Cc: stable@vger.kernel.org Fixes: a4166ae ("riscv: Deduplicate code in setup_smp()") Signed-off-by: Paul Sherman <shermanpauldylan@gmail.com> Link: https://patch.msgid.link/20260714223301.5265-1-shermanpauldylan@gmail.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
Implement arch_bpf_timed_may_goto() for the RV64 JIT. The argument and return value are carried in BPF_REG_AX, and BPF R0-R5 are preserved across the call to the generic bpf_check_timed_may_goto(). Enable bpf_jit_supports_timed_may_goto() so the verifier uses the timed expansion path. Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Enable verifier_may_goto_1 (raw instruction tests), stream_cond_break (250ms timeout path), and the may_goto_interaction_arm64 fastcall test on riscv64 now that the JIT supports timed may_goto. Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 1: "[v3,1/2] bpf, riscv: add support for timed may_goto" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
|
Patch 2: "[v3,2/2] selftests/bpf: enable timed may_goto tests for riscv64" |
56b6f30 to
8ca72ef
Compare
PR for series 1127938 applied to workflow__riscv__fixes
Name: bpf, riscv: add timed may_goto support
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1127938
Version: 3