Re: [PATCH 2/3] riscv: Deprecate vector state prctl/sysctl
From: Paul Walmsley
Date: Tue Dec 01 2026 - 19:46:16 EST
On Tue, 1 Dec 2026, Paul Walmsley wrote:
> 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.
Ugh, sorry, dropping this one and the next one. Radim's comments make
sense to me. Will plan to keep patch one.
Samuel, what do you think about Andy's proposal in
https://lore.kernel.org/linux-riscv/auTjwQoRqV5ayKdx@Tao-Chiu's-Mac/
? Also Radim's comment about updating the selftests and vector.rst makes
sense as well, as part of an updated series.
- Paul