Re: [PATCH 2/3] riscv: Deprecate vector state prctl/sysctl

From: Paul Walmsley

Date: Tue Dec 01 2026 - 18:32:57 EST


On Wed, 7 Oct 2026, Samuel Holland wrote:

> The ability to prevent userspace from executing vector instructions was
> provided as a escape hatch for software that was broken by adding vector
> state to the signal context. This appears to be unused in practice, and
> creates confusion in the extension support returned by hwprobe(), as in
> this one special case an extension reported as present by hwprobe() is
> unusable.
>
> Since we believe it is safe to always allow vector usage, hide the prctl
> and sysctl behind a Kconfig option and mark them as deprecated, so they
> can be removed in the future. Note that significant userspace software
> like glibc already considers these controls explicitly unsupported.
>
> Signed-off-by: Samuel Holland <samuel.holland@xxxxxxxxxx>

Thanks, queued for v7.5.


- Paul