Skip to content

selftests/arm64: GCS must survive io_uring SQPOLL worker exit

Iván Ezequiel Rodriguez linux-arm-kernel linux-kselftest linux-riscv lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1selftests/arm64: GCS must survive io_uring SQPOLL worker exittools/testing/selftests/arm64/gcs/Makefile tools/testing/selftests/arm64/gcs/gcs-uring-worker.c+255 -11 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchMark Brown
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] selftests/arm64: GCS must survive io_uring SQPOLL worker exit

As suggested, a separate kselftest for the io_uring/SQPOLL worker path that gcs_reset_thread() also covers.

SQPOLL is create_io_thread() (args->fn + CLONE_VM). Without the reset, worker exit unmaps the parent's GCS. The test waits for iou-sqp-* to leave /proc/self/task after close (teardown is async), then checks the parent ss VMA count.

QEMU virt/max: pass with the reset; SIGSEGV on an unpatched kernel.

Iván Ezequiel Rodriguez (1):
selftests/arm64: GCS must survive io_uring SQPOLL worker exit

 tools/testing/selftests/arm64/gcs/Makefile    |   2 +-
 .../selftests/arm64/gcs/gcs-uring-worker.c    | 254 ++++++++++++++++++
 2 files changed, 255 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/arm64/gcs/gcs-uring-worker.c
Signature · 1 line
2.43.0