linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] vsock/test: Improve transport_uaf test
@ 2025-06-11 19:56 Michal Luczaj
  2025-06-11 19:56 ` [PATCH net-next v3 1/3] vsock/test: Introduce vsock_bind_try() helper Michal Luczaj
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Michal Luczaj @ 2025-06-11 19:56 UTC (permalink / raw)
  To: Stefano Garzarella; +Cc: virtualization, netdev, linux-kernel, Michal Luczaj

Increase the coverage of a test implemented in commit 301a62dfb0d0
("vsock/test: Add test for UAF due to socket unbinding"). Take this
opportunity to factor out some utility code, drop a redundant sync between
client and server, and introduce a /proc/kallsyms harvesting logic for
auto-detecting registered vsock transports.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
---
Changes in v3:
- Drop "RFC" prefix, rebase, amend commit logs
- get_transports(): don't look for a symbol that was already found
- Expand testcase comments, clean up the code [Stefano]
- Streamline `enum transport` and `transport_ksyms` [Stefano]
- Move KALLSYMS_* defines from utils.h to utils.c [Stefano]
- Link to v2: https://lore.kernel.org/r/20250528-vsock-test-inc-cov-v2-0-8f655b40d57c@rbox.co

Changes in v2:
- Speed up: don't bother checking EINTR or respecting timeout on connect()s
- Introduce get_transports(), warn on unsupported setup [Stefano]
- Comment the code, drop the sync, introduce vsock_bind_try() [Stefano]
- Link to v1: https://lore.kernel.org/r/20250523-vsock-test-inc-cov-v1-1-fa3507941bbd@rbox.co

---
Michal Luczaj (3):
      vsock/test: Introduce vsock_bind_try() helper
      vsock/test: Introduce get_transports()
      vsock/test: Cover more CIDs in transport_uaf test

 tools/testing/vsock/util.c       | 80 ++++++++++++++++++++++++++++++++--
 tools/testing/vsock/util.h       | 30 +++++++++++++
 tools/testing/vsock/vsock_test.c | 93 ++++++++++++++++++++++++++++++++--------
 3 files changed, 181 insertions(+), 22 deletions(-)
---
base-commit: 0097c4195b1d0ca57d15979626c769c74747b5a0
change-id: 20250326-vsock-test-inc-cov-b823822bdb78

Best regards,
-- 
Michal Luczaj <mhal@rbox.co>


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

end of thread, other threads:[~2025-06-17 22:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 19:56 [PATCH net-next v3 0/3] vsock/test: Improve transport_uaf test Michal Luczaj
2025-06-11 19:56 ` [PATCH net-next v3 1/3] vsock/test: Introduce vsock_bind_try() helper Michal Luczaj
2025-06-13 15:03   ` Luigi Leonardi
2025-06-11 19:56 ` [PATCH net-next v3 2/3] vsock/test: Introduce get_transports() Michal Luczaj
2025-06-13 15:58   ` Luigi Leonardi
2025-06-17 14:12   ` Stefano Garzarella
2025-06-11 19:56 ` [PATCH net-next v3 3/3] vsock/test: Cover more CIDs in transport_uaf test Michal Luczaj
2025-06-17 14:13   ` Stefano Garzarella
2025-06-16 21:57 ` [PATCH net-next v3 0/3] vsock/test: Improve " Jakub Kicinski
2025-06-17  8:25   ` Stefano Garzarella
2025-06-17 22:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).