Skip to content

riscv, bpf: fix reads of thread_info.cpu

Radim Krčmář bpf linux-riscv lkml stable 1 version Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REGarch/riscv/net/bpf_jit_comp64.c+1 -11 replyApplied
2/2riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_idarch/riscv/net/bpf_jit_comp64.c+1 -11 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlexandre GhitiBjörn TöpelPu Lehui
SeriesR-b A-b T-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] riscv, bpf: fix reads of thread_info.cpu

Hello,

These patches are related to a recently queued series [1] that fixes the same bugs in normal code. That series finishes with a patch that would have exposed the BPF bugs, but luckily it won't get merged until v6.18.

I don't know enough about BPF to verify that it emits the correct code now, so any pointers are welcome.

1: https://lore.kernel.org/linux-riscv/[email protected]/

Radim Krčmář (2):
riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id

 arch/riscv/net/bpf_jit_comp64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.50.0