From: Will Deacon <will@kernel.org>
To: Abdalla Eldoumani <aamsdoumani@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Shuah Khan <shuah@kernel.org>, Mark Brown <broonie@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
Abdalla Eldoumani <abdalla.eldoumani@ucalgary.ca>
Subject: Re: [PATCH 2/2] kselftest/arm64: Check that PR_SVE_VL_INHERIT survives a second exec
Date: Fri, 27 Nov 2026 18:42:49 +0000 [thread overview]
Message-ID: <awnPKRtczyTiEcN0@willie-the-truck> (raw)
In-Reply-To: <20261017182455.1884-3-aamsdoumani@gmail.com>
On Sat, Oct 17, 2026 at 12:24:54PM -0600, Abdalla Eldoumani wrote:
> From: Abdalla Eldoumani <abdalla.eldoumani@ucalgary.ca>
>
> The prctl_set_for_child test sets a vector length with
> PR_SVE_VL_INHERIT and checks that a forked and exec()ed child sees it.
> That only covers the first exec(). The kernel keeps the inherit flag
> and the on-exec VL across exec() so that later descendants keep the VL
> too, and nothing checks that part, which the fp TODO list notes as
> testing PR_SVE_VL_INHERIT after a double fork.
>
> Extend the test to also read the VL in a grandchild. The child
> re-executes vec-syscfg in a mode that forks and execs the rdvl helper,
> so the VL is read after two fork() and exec() generations. Both SVE and
> SME are covered since the test runs for each vector type.
>
> With a kernel modified to clear the inherit flag on exec() the existing
> check still passes and the new check fails for both vector types, with
> the grandchild getting the default VL. Drop the item from the TODO list.
>
> Assisted-by: LLM
> Signed-off-by: Abdalla Eldoumani <abdalla.eldoumani@ucalgary.ca>
> ---
> tools/testing/selftests/arm64/fp/TODO | 1 -
> tools/testing/selftests/arm64/fp/vec-syscfg.c | 62 ++++++++++++++++++-
> 2 files changed, 59 insertions(+), 4 deletions(-)
>
> diff --git a/tools/testing/selftests/arm64/fp/TODO b/tools/testing/selftests/arm64/fp/TODO
> index 44004e5..90ee128 100644
> --- a/tools/testing/selftests/arm64/fp/TODO
> +++ b/tools/testing/selftests/arm64/fp/TODO
> @@ -4,4 +4,3 @@
> - Ensure ptraced processes actually see the register state visible through
> the ptrace interface.
> - Big endian.
> -- Test PR_SVE_VL_INHERIT after a double fork.
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.
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.
Will
next prev parent reply other threads:[~2026-11-27 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-17 18:24 [PATCH 0/2] kselftest/arm64: vec-syscfg exit status and VL inheritance coverage Abdalla Eldoumani
2026-10-17 18:24 ` [PATCH 1/2] kselftest/arm64: Report test failures in vec-syscfg's exit status Abdalla Eldoumani
2026-10-18 9:16 ` Mark Brown
2026-10-17 18:24 ` [PATCH 2/2] kselftest/arm64: Check that PR_SVE_VL_INHERIT survives a second exec Abdalla Eldoumani
2026-11-27 18:42 ` Will Deacon [this message]
2026-11-27 18:39 ` [PATCH 0/2] kselftest/arm64: vec-syscfg exit status and VL inheritance coverage Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awnPKRtczyTiEcN0@willie-the-truck \
--to=will@kernel.org \
--cc=aamsdoumani@gmail.com \
--cc=abdalla.eldoumani@ucalgary.ca \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®