Skip to content

Initialize Vector registers in the first-use trap

Andy Chiu linux-riscv 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2riscv: vector: clear V-reg in the first-use traparch/riscv/kernel/vector.c+1 -01 replyApplied
2/2selftests: Test RISC-V Vector's first-use handlertools/testing/selftests/riscv/vector/.gitignore tools/testing/selftests/riscv/vector/Makefile tools/testing/selftests/riscv/vector/v_initval_nolibc.c+74 -12 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBjörn Töpel
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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