mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests: riscv: vector: Fix the checks of the child's exit status
@ 2026-09-26 15:55 Danish Khateeb
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Danish Khateeb @ 2026-09-26 15:55 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti
  Cc: Shuah Khan, Andy Chiu, Sergey Matyukevich, Thomas Weißschuh,
	linux-riscv, linux-kselftest, linux-kernel, Danish Khateeb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-26 15:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-26 15:55 [PATCH 0/2] selftests: riscv: vector: Fix the checks of the child's exit status Danish Khateeb
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

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®