From: Ali Raza <elirazamumtaz@gmail.com>
To: qemu-devel@nongnu.org
Cc: Ali Raza <elirazamumtaz@gmail.com>, morgan@kernel.org
Subject: [PATCH 0/3] linux-user: Filter /proc/*/task/ and validate tkill targets
Date: Wed, 15 Apr 2026 04:58:33 +0500 [thread overview]
Message-ID: <20260415-master-v1-0-8dd2ef111eee@gmail.com> (raw)
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>
next reply other threads:[~2026-04-15 4:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 23:58 Ali Raza [this message]
2026-04-14 23:58 ` [PATCH 1/3] linux-user: Filter /proc/*/task/ to hide QEMU-internal threads Ali Raza
2026-04-23 15:59 ` Helge Deller
2026-04-24 9:26 ` Ali Raza
2026-04-14 23:58 ` [PATCH 2/3] linux-user: Validate tkill/tgkill targets are guest threads Ali Raza
2026-04-14 23:58 ` [PATCH 3/3] tests/tcg: Add test for /proc/self/task/ filtering and tkill validation Ali Raza
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=20260415-master-v1-0-8dd2ef111eee@gmail.com \
--to=elirazamumtaz@gmail.com \
--cc=morgan@kernel.org \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.