Skip to content

[PW_SID:990539] riscv, bpf: fix reads of thread_info.cpu - #759

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw990539
Closed

[PW_SID:990539] riscv, bpf: fix reads of thread_info.cpu#759
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw990539

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

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

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>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 106.63 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1115.85 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1570.16 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.99 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 22.46 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.79 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 74.56 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
kdoc
Desc: Detects for kdoc errors
Duration: 0.95 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/2] riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 103.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1116.85 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1576.36 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.10 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 22.15 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.80 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 74.39 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/2] riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw990539 branch August 20, 2025 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants