This series fixes a problem where QEMU user-mode exposes internal
host threads (RCU, TCG workers) to guest processes via /proc/*/task/
and allows the guest to signal them via tkill/tgkill.
Patch 1: Filters getdents/getdents64 on /proc/<pid>/task/
Patch 2: Validates tkill/tgkill targets against guest CPU list
Patch 3: Adds a multiarch test exercising both fixes
Signed-off-by: Ali Raza <elirazamumtaz@gmail.com>
---
Ali Raza (3):
linux-user: Filter /proc/*/task/ to hide QEMU-internal threads
linux-user: Validate tkill/tgkill targets are guest threads
tests/tcg: Add test for /proc/self/task/ filtering and tkill validation
linux-user/syscall.c | 114 +++++++++++++++++-
tests/tcg/multiarch/Makefile.target | 2 +
tests/tcg/multiarch/linux/linux-proc-task.c | 178 ++++++++++++++++++++++++++++
3 files changed, 292 insertions(+), 2 deletions(-)
---
base-commit: da6c4fe60fee30dd77267764d55b38af9cb89d4b
change-id: 20260415-master-3a0fa2ebf2d5
Best regards,
--
Ali Raza <elirazamumtaz@gmail.com>