Thread (14 messages) 14 messages, 2 authors, 2025-06-11
STALE383d
Revisions (2)
  1. v2 current
  2. v3 [diff vs current]

[PATCH RFC net-next v2 0/3] vsock/test: Improve transport_uaf test

From: Michal Luczaj <hidden>
Date: 2025-05-28 20:45:37
Also in: lkml, virtualization

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.

Signed-off-by: Michal Luczaj <redacted>
---
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 (local)

---
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       | 84 ++++++++++++++++++++++++++++++++++++++--
 tools/testing/vsock/util.h       | 13 +++++++
 tools/testing/vsock/vsock_test.c | 83 ++++++++++++++++++++++++++++++---------
 3 files changed, 158 insertions(+), 22 deletions(-)
---
base-commit: 7e34abd434644fdc3f7efe02a7f0b7947cd06aac
change-id: 20250326-vsock-test-inc-cov-b823822bdb78

Best regards,
-- 
Michal Luczaj [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help