From: Danish Khateeb <danishkhateeb03@gmail.com>
To: Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>
Cc: "Shuah Khan" <shuah@kernel.org>, "Andy Chiu" <andybnac@gmail.com>,
"Sergey Matyukevich" <geomatsi@gmail.com>,
"Thomas Weißschuh" <linux@weissschuh.net>,
linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Danish Khateeb" <danishkhateeb03@gmail.com>
Subject: [PATCH 0/2] selftests: riscv: vector: Fix the checks of the child's exit status
Date: Sat, 26 Sep 2026 10:55:33 -0500 [thread overview]
Message-ID: <20260926155535.306111-1-danishkhateeb03@gmail.com> (raw)
Two fixes for vstate_exec_nolibc, found through a kernel test robot
warning [1]. Patch 1 checks the return value of waitpid(), which GCC
warns about. Patch 2 fixes a check which never matches, so that a child
reporting a failure no longer lets the tests pass.
Tested in QEMU (virt, rv64 with and without V) on a v7.3-rc1 defconfig
kernel, running vstate_prctl as init:
- vstate_prctl passes 13/13 with and without the series.
- With the child's vstate_ctrl check forced to fail, it still passes
13/13 without patch 2, and fails the 6 affected tests with it.
- The warning is gone with GCC 14.2 and 16.2.
[1] https://lore.kernel.org/r/202609250003.hvssJlRZ-lkp@intel.com/
Danish Khateeb (2):
selftests: riscv: vstate_exec_nolibc: Check the return value of
waitpid()
selftests: riscv: vector: Fix the check for children exiting with -1
tools/testing/selftests/riscv/vector/v_helpers.c | 2 +-
tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
base-commit: a06776565b9e73512e880a95b66c198ae8e7e24a
--
2.55.0
next reply other threads:[~2026-09-26 15:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-26 15:55 Danish Khateeb [this message]
2026-09-26 15:55 ` [PATCH 1/2] selftests: riscv: vstate_exec_nolibc: Check the return value of waitpid() Danish Khateeb
2026-09-26 15:55 ` [PATCH 2/2] selftests: riscv: vector: Fix the check for children exiting with -1 Danish Khateeb
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=20260926155535.306111-1-danishkhateeb03@gmail.com \
--to=danishkhateeb03@gmail.com \
--cc=alex@ghiti.fr \
--cc=andybnac@gmail.com \
--cc=aou@eecs.berkeley.edu \
--cc=geomatsi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux@weissschuh.net \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--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®