Re: [PATCH 2/2] kselftest/arm64: Check that PR_SVE_VL_INHERIT survives a second exec

From: Abdalla ElDoumani

Date: Sat Nov 28 2026 - 11:02:19 EST


On Fri, Nov 27, 2026 at 06:42:49PM +0000, Will Deacon wrote:
> Since this TODO list was authored by Mark (Brown), it would be good for
> him to assess whether or not your patch implements what he had in mind.

Mark, I took it to mean checking that the flag survives a second exec(),
since one fork() and exec() is already tested. Happy to change it if you
meant something else.

> I can't see where the initial parent touches the prctl() and the way
> you've added the fork() before we even print the selftest header looks
> a bit weird to me.

It's in the existing part of prctl_set_for_child(), just above the
hunk. It sets min_vl | PR_SVE_VL_INHERIT and writes max_vl as the
default. The middle process never calls prctl(), so the grandchild
only gets min_vl if the setting made it through both exec()s.

The early return in main() is there because the middle process is
vec-syscfg run again through /proc/self/exe, and it can't print TAP
output. I can move it into a small helper next to rdvl-sve and
rdvl-sme in a v2 so main() is left alone. I'll wait for Mark first.

(Resending as plain text, the lists rejected my first copy.)

Thanks,
Abdalla