[PW_SID:994273] [1/2] selftests: riscv: vector: add early ptrace test - #820
[PW_SID:994273] [1/2] selftests: riscv: vector: add early ptrace test#820linux-riscv-bot wants to merge 2 commits into
Conversation
Add test that simulates early vector debug: attach to the process right after enabling vector context and check csr_vlenb. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Currently, vlenb in vstate is set to zero on vector context allocation and remains zero until the first context switch. This can expose an inconsistent vlenb value to user-space in early vector debug scenarios, e.g. when ptrace attaches to a tracee after the first vector instruction but before the first context switch. Fix this by setting the correct vlenb value during vector context allocation. Simple reproducer has been added to selftests: - tools/testing/selftests/riscv/vector/v_ptrace.c Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 1: "[1/2] selftests: riscv: vector: add early ptrace test" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
|
Patch 2: "[2/2] riscv: vector: init vlenb in vector context allocation" |
PR for series 994273 applied to workflow__riscv__fixes
Name: [1/2] selftests: riscv: vector: add early ptrace test
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=994273
Version: 1