[PATCH v2] riscv: Discard vector state on syscalls

Björn Töpel bjorn at kernel.org
Mon Jun 26 10:45:20 PDT 2023


Björn Töpel <bjorn at kernel.org> writes:

> From: Björn Töpel <bjorn at rivosinc.com>
>
> The RISC-V vector specification states:
>   Executing a system call causes all caller-saved vector registers
>   (v0-v31, vl, vtype) and vstart to become unspecified.

A bit of a corner case, but this will make sigreturn syscalls discard
the vector state as well.

Is that an issue? E.g. a user cannot build userspace context switching
application. Does arm64 SVE handle sigreturn in a special way?


Björn



More information about the linux-riscv mailing list