[PW_SID:990539] riscv, bpf: fix reads of thread_info.cpu - #759
[PW_SID:990539] riscv, bpf: fix reads of thread_info.cpu#759linux-riscv-bot wants to merge 2 commits into
Conversation
emit_ld is wrong, because thread_info.cpu is 32-bit, not xlen-bit wide. The struct currently has a hole after cpu, so little endian accesses seemed fine. Fixes: 19c56d4 ("riscv, bpf: add internal-only MOV instruction to resolve per-CPU addrs") Cc: <stable@vger.kernel.org> Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
emit_ld is wrong, because thread_info.cpu is 32-bit, not xlen-bit wide. The struct currently has a hole after cpu, so little endian accesses seemed fine. Fixes: 2ddec2c ("riscv, bpf: inline bpf_get_smp_processor_id()") Cc: <stable@vger.kernel.org> Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
|
Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id" |
PR for series 990539 applied to workflow__riscv__fixes
Name: riscv, bpf: fix reads of thread_info.cpu
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=990539
Version: 1