Initialize Vector registers in the first-use trap
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | riscv: vector: clear V-reg in the first-use traparch/ | +1 | 1 reply | Applied |
| 2/2 | selftests: Test RISC-V Vector's first-use handlertools/ tools/ tools/ | +74 | 2 replies | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Björn Töpel |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [v1, 0/2] Initialize Vector registers in the first-use trap
Before applying this series, We only initialize the space for saving Vector registers. This is not enough as Vector registers themselves also neeeded to be initialized before dropping back into userspace. Or, we may risk leaking a process's data left in Vector register to another process. This can be verified by only applying the second patch and running the test.
Andy Chiu (2):
riscv: vector: clear V-reg in the first-use trap
selftests: Test RISC-V Vector's first-use handler
arch/riscv/kernel/vector.c | 1 + .../testing/selftests/riscv/vector/.gitignore | 1 + tools/testing/selftests/riscv/vector/Makefile | 6 +- .../selftests/riscv/vector/v_initval_nolibc.c | 68 +++++++++++++++++++ 4 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/riscv/vector/v_initval_nolibc.c
Signature · 7 lines
2.17.1 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv