[PW_SID:1123216] selftests: riscv: Bypass libc in inactive vector ptrace test#2241
[PW_SID:1123216] selftests: riscv: Bypass libc in inactive vector ptrace test#2241linux-riscv-bot wants to merge 1 commit into
Conversation
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>
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
|
Patch 1: "selftests: riscv: Bypass libc in inactive vector ptrace test" |
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