Skip to content

[PW_SID:1123216] selftests: riscv: Bypass libc in inactive vector ptrace test#2241

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1123216
Closed

[PW_SID:1123216] selftests: riscv: Bypass libc in inactive vector ptrace test#2241
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1123216

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1123216 applied to workflow__riscv__fixes

Name: selftests: riscv: Bypass libc in inactive vector ptrace test
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1123216
Version: 1

The ptrace_v_not_enabled test expects the child to reach its ebreak
before it has used the vector extension. That is not guaranteed when
using fork(), because libc may run child atfork handlers before
returning to the test code. In those cases PTRACE_GETREGSET for
NT_RISCV_VECTOR then succeeds instead of returning ENODATA for
inactive vector state.

Use the raw clone syscall with SIGCHLD to keep fork-like semantics
while bypassing libc's fork wrapper and atfork handler chain.

Cc: Andy Chiu <tchiu@tenstorrent.com>
Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Andrew Jones <andrew.jones@oss.qualcomm.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 144.12 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1124.79 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1422.50 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.76 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 28.00 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.75 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 85.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
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: "selftests: riscv: Bypass libc in inactive vector ptrace test"
kdoc
Desc: Detects for kdoc errors
Duration: 0.87 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 4.19 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw1123216 branch July 8, 2026 05:09
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