Skip to content

[PW_SID:976781] [v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot#586

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

[PW_SID:976781] [v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot#586
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw976781

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 976781 applied to workflow__riscv__fixes

Name: [v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=976781
Version: 4

Linux RISC-V bot and others added 2 commits June 27, 2025 17:47
The value for some hwprobe keys, like MISALIGNED_VECTOR_PERF, is
determined by an asynchronous kthread. This kthread can finish after
the hwprobe vDSO data is populated, creating a race condition where
userspace can read stale values.

A completion-based framework is introduced to synchronize the async
probes with the vDSO population. The init_hwprobe_vdso_data()
function is deferred to `late_initcall` and now blocks until all
probes signal completion.

Reported-by: Tsukasa OI <research_trasio@irq.a4lg.com>
Closes: https://lore.kernel.org/linux-riscv/760d637b-b13b-4518-b6bf-883d55d44e7f@irq.a4lg.com/
Fixes: e7c9d66 ("RISC-V: Report vector unaligned access speed hwprobe")
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Alexandre Ghiti <alexghiti@rivosinc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jingwei Wang <wangjingwei@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 100.96 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1063.69 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1551.39 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 19.12 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=nommu_k210_defconfig --toolchain=gcc --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.S5skp7ZaRp/build/= --runtime=null --image=docker.io/tuxmake/riscv_gcc CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.S5skp7ZaRp/build ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' nommu_k210_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.S5skp7ZaRp/build ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc'
riscv64-linux-ld: arch/riscv/kernel/process.o: in function `riscv_hwprobe_register_async_probe':
process.c:(.text+0x14a): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/process.o: in function `riscv_hwprobe_complete_async_probe':
process.c:(.text+0x14c): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: arch/riscv/kernel/ptrace.o: in function `riscv_hwprobe_register_async_probe':
ptrace.c:(.text+0x538): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/ptrace.o: in function `riscv_hwprobe_complete_async_probe':
ptrace.c:(.text+0x53a): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: arch/riscv/kernel/signal.o: in function `riscv_hwprobe_register_async_probe':
signal.c:(.text+0xa6): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/signal.o: in function `riscv_hwprobe_complete_async_probe':
signal.c:(.text+0xa8): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: arch/riscv/kernel/syscall_table.o: in function `riscv_hwprobe_register_async_probe':
syscall_table.c:(.text+0x0): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/syscall_table.o: in function `riscv_hwprobe_complete_async_probe':
syscall_table.c:(.text+0x2): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: arch/riscv/kernel/sys_hwprobe.o: in function `riscv_hwprobe_register_async_probe':
sys_hwprobe.c:(.text+0xa1e): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/sys_hwprobe.o: in function `riscv_hwprobe_complete_async_probe':
sys_hwprobe.c:(.text+0xa20): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps.o: in function `riscv_hwprobe_register_async_probe':
traps.c:(.text+0x128): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps.o: in function `riscv_hwprobe_complete_async_probe':
traps.c:(.text+0x12a): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps_misaligned.o: in function `riscv_hwprobe_register_async_probe':
traps_misaligned.c:(.text+0x1b4): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps_misaligned.o: in function `riscv_hwprobe_complete_async_probe':
traps_misaligned.c:(.text+0x1b6): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: arch/riscv/kernel/unaligned_access_speed.o: in function `riscv_hwprobe_register_async_probe':
unaligned_access_speed.c:(.text+0x6e6): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: arch/riscv/kernel/unaligned_access_speed.o: in function `riscv_hwprobe_complete_async_probe':
unaligned_access_speed.c:(.text+0x6e8): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: kernel/ptrace.o: in function `riscv_hwprobe_register_async_probe':
ptrace.c:(.text+0x562): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: kernel/ptrace.o: in function `riscv_hwprobe_complete_async_probe':
ptrace.c:(.text+0x564): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: kernel/signal.o: in function `riscv_hwprobe_register_async_probe':
signal.c:(.text+0x872): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: kernel/signal.o: in function `riscv_hwprobe_complete_async_probe':
signal.c:(.text+0x874): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: kernel/entry/common.o: in function `riscv_hwprobe_register_async_probe':
common.c:(.text+0x98): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: kernel/entry/common.o: in function `riscv_hwprobe_complete_async_probe':
common.c:(.text+0x9a): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: kernel/entry/syscall_user_dispatch.o: in function `riscv_hwprobe_register_async_probe':
syscall_user_dispatch.c:(.text+0xb8): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: kernel/entry/syscall_user_dispatch.o: in function `riscv_hwprobe_complete_async_probe':
syscall_user_dispatch.c:(.text+0xba): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
riscv64-linux-ld: lib/syscall.o: in function `riscv_hwprobe_register_async_probe':
syscall.c:(.text+0xde): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x298): first defined here
riscv64-linux-ld: lib/syscall.o: in function `riscv_hwprobe_complete_async_probe':
syscall.c:(.text+0xe0): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x29a): first defined here
make[3]: *** [/build/tmppzhc6xk4/scripts/Makefile.vmlinux_o:72: vmlinux.o] Error 1
make[3]: Target '__default' not remade because of errors.
make[2]: *** [/build/tmppzhc6xk4/Makefile:1217: vmlinux_o] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmppzhc6xk4/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.S5skp7ZaRp/build INSTALL_DTBS_PATH=/build/tmp.S5skp7ZaRp/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' dtbs
I: config: PASS in 0:00:03.401066
I: default: FAIL in 0:00:11.272251
I: kernel: SKIP in 0:00:00.000009
I: xipkernel: SKIP in 0:00:00.000004
I: modules: SKIP in 0:00:00.001817
I: dtbs: PASS in 0:00:00.761071
I: dtbs-legacy: SKIP in 0:00:00.003545
I: debugkernel: SKIP in 0:00:00.000006
I: headers: PASS in 0:00:01.218419
I: build output in /build/tmp.S5skp7ZaRp
rm -rf /build/tmp.S5skp7ZaRp/build/dtbsinstall
mkdir -p /build/tmp.S5skp7ZaRp/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.S5skp7ZaRp/build INSTALL_DTBS_PATH=/build/tmp.S5skp7ZaRp/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1751051822 --clamp-mtime -caf /build/tmp.S5skp7ZaRp/build/dtbs.tar -C /build/tmp.S5skp7ZaRp/build/dtbsinstall dtbs
rm -rf /build/tmp.S5skp7ZaRp/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.S5skp7ZaRp/build INSTALL_HDR_PATH=/build/tmp.S5skp7ZaRp/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1751051822 --clamp-mtime -caf /build/tmp.S5skp7ZaRp/build/headers.tar -C /build/tmp.S5skp7ZaRp/build/install_hdr .
warnings/errors:


@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 19.54 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=nommu_virt_defconfig --toolchain=gcc --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.5YZJOv8DgR/build/= --runtime=null --image=docker.io/tuxmake/riscv_gcc CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.5YZJOv8DgR/build ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' nommu_virt_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.5YZJOv8DgR/build ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc'
riscv64-linux-ld: arch/riscv/kernel/process.o: in function `riscv_hwprobe_register_async_probe':
process.c:(.text+0x176): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/process.o: in function `riscv_hwprobe_complete_async_probe':
process.c:(.text+0x186): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: arch/riscv/kernel/ptrace.o: in function `riscv_hwprobe_register_async_probe':
ptrace.c:(.text+0x704): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/ptrace.o: in function `riscv_hwprobe_complete_async_probe':
ptrace.c:(.text+0x714): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: arch/riscv/kernel/signal.o: in function `riscv_hwprobe_register_async_probe':
signal.c:(.text+0xd6): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/signal.o: in function `riscv_hwprobe_complete_async_probe':
signal.c:(.text+0xe6): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: arch/riscv/kernel/syscall_table.o: in function `riscv_hwprobe_register_async_probe':
syscall_table.c:(.text+0x0): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/syscall_table.o: in function `riscv_hwprobe_complete_async_probe':
syscall_table.c:(.text+0x10): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: arch/riscv/kernel/sys_hwprobe.o: in function `riscv_hwprobe_register_async_probe':
sys_hwprobe.c:(.text+0xbba): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/sys_hwprobe.o: in function `riscv_hwprobe_complete_async_probe':
sys_hwprobe.c:(.text+0xbca): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps.o: in function `riscv_hwprobe_register_async_probe':
traps.c:(.text+0x16c): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps.o: in function `riscv_hwprobe_complete_async_probe':
traps.c:(.text+0x17c): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps_misaligned.o: in function `riscv_hwprobe_register_async_probe':
traps_misaligned.c:(.text+0x27a): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/traps_misaligned.o: in function `riscv_hwprobe_complete_async_probe':
traps_misaligned.c:(.text+0x28a): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: arch/riscv/kernel/unaligned_access_speed.o: in function `riscv_hwprobe_register_async_probe':
unaligned_access_speed.c:(.text+0x6da): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: arch/riscv/kernel/unaligned_access_speed.o: in function `riscv_hwprobe_complete_async_probe':
unaligned_access_speed.c:(.text+0x6ea): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: kernel/ptrace.o: in function `riscv_hwprobe_register_async_probe':
ptrace.c:(.text+0x6da): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: kernel/ptrace.o: in function `riscv_hwprobe_complete_async_probe':
ptrace.c:(.text+0x6ea): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: kernel/signal.o: in function `riscv_hwprobe_register_async_probe':
signal.c:(.text+0xa3c): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: kernel/signal.o: in function `riscv_hwprobe_complete_async_probe':
signal.c:(.text+0xa4c): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: kernel/entry/common.o: in function `riscv_hwprobe_register_async_probe':
common.c:(.text+0x98): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: kernel/entry/common.o: in function `riscv_hwprobe_complete_async_probe':
common.c:(.text+0xa8): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: kernel/entry/syscall_user_dispatch.o: in function `riscv_hwprobe_register_async_probe':
syscall_user_dispatch.c:(.text+0xcc): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: kernel/entry/syscall_user_dispatch.o: in function `riscv_hwprobe_complete_async_probe':
syscall_user_dispatch.c:(.text+0xdc): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: kernel/seccomp.o: in function `riscv_hwprobe_register_async_probe':
seccomp.c:(.text+0x2ca): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: kernel/seccomp.o: in function `riscv_hwprobe_complete_async_probe':
seccomp.c:(.text+0x2da): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
riscv64-linux-ld: lib/syscall.o: in function `riscv_hwprobe_register_async_probe':
syscall.c:(.text+0xe6): multiple definition of `riscv_hwprobe_register_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x326): first defined here
riscv64-linux-ld: lib/syscall.o: in function `riscv_hwprobe_complete_async_probe':
syscall.c:(.text+0xf6): multiple definition of `riscv_hwprobe_complete_async_probe'; arch/riscv/kernel/cpufeature.o:cpufeature.c:(.text+0x336): first defined here
make[3]: *** [/build/tmppzhc6xk4/scripts/Makefile.vmlinux_o:72: vmlinux.o] Error 1
I: config: PASS in 0:00:03.253107
I: default: FAIL in 0:00:12.203884
I: kernel: SKIP in 0:00:00.000007
I: xipkernel: SKIP in 0:00:00.000002
I: modules: SKIP in 0:00:00.001514
I: dtbs: PASS in 0:00:00.721339
I: dtbs-legacy: SKIP in 0:00:00.003366
I: debugkernel: SKIP in 0:00:00.000004
I: headers: PASS in 0:00:01.116630
I: build output in /build/tmp.5YZJOv8DgR
make[3]: Target '__default' not remade because of errors.
make[2]: *** [/build/tmppzhc6xk4/Makefile:1217: vmlinux_o] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmppzhc6xk4/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.5YZJOv8DgR/build INSTALL_DTBS_PATH=/build/tmp.5YZJOv8DgR/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' dtbs
rm -rf /build/tmp.5YZJOv8DgR/build/dtbsinstall
mkdir -p /build/tmp.5YZJOv8DgR/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.5YZJOv8DgR/build INSTALL_DTBS_PATH=/build/tmp.5YZJOv8DgR/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1751051822 --clamp-mtime -caf /build/tmp.5YZJOv8DgR/build/dtbs.tar -C /build/tmp.5YZJOv8DgR/build/dtbsinstall dtbs
rm -rf /build/tmp.5YZJOv8DgR/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.5YZJOv8DgR/build INSTALL_HDR_PATH=/build/tmp.5YZJOv8DgR/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- 'CC=ccache riscv64-linux-gcc' 'HOSTCC=ccache gcc' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1751051822 --clamp-mtime -caf /build/tmp.5YZJOv8DgR/build/headers.tar -C /build/tmp.5YZJOv8DgR/build/install_hdr .
warnings/errors:


@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 2.08 seconds
Result: WARNING
Output:

CHECK: Please use a blank line after function/struct/union/enum declarations
#40: FILE: arch/riscv/include/asm/hwprobe.h:43:
 }
+#ifdef CONFIG_MMU

CHECK: Alignment should match open parenthesis
#120: FILE: arch/riscv/kernel/unaligned_access_speed.c:479:
+		if (IS_ERR(kthread_run(vec_check_unaligned_access_speed_all_cpus,
+				NULL, "vec_check_unaligned_access_speed_all_cpus"))) {

total: 0 errors, 0 warnings, 2 checks, 77 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit a415faacd4e2 ("riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 2 checks, 77 lines checked
CHECK: Alignment should match open parenthesis
CHECK: Please use a blank line after function/struct/union/enum declarations


@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 71.36 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
kdoc
Desc: Detects for kdoc errors
Duration: 1.89 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v4] riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch from a7cb30d to d776861 Compare July 2, 2025 18:46
@linux-riscv-bot linux-riscv-bot deleted the pw976781 branch July 5, 2025 01:04
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