Re: [PATCH RFC net-next v2 3/3] vsock/test: Cover more CIDs in transport_uaf test

2025-06-05 Thread Stefano Garzarella
On Wed, Jun 04, 2025 at 09:11:33PM +0200, Michal Luczaj wrote: On 6/4/25 11:37, Stefano Garzarella wrote: On Wed, May 28, 2025 at 10:44:43PM +0200, Michal Luczaj wrote: +static bool test_stream_transport_uaf(int cid) { int sockets[MAX_PORT_RETRIES]; struct sockaddr_vm addr; -

Re: [PATCH RFC net-next v2 3/3] vsock/test: Cover more CIDs in transport_uaf test

2025-06-04 Thread Michal Luczaj
On 6/4/25 11:37, Stefano Garzarella wrote: > On Wed, May 28, 2025 at 10:44:43PM +0200, Michal Luczaj wrote: >> +static bool test_stream_transport_uaf(int cid) >> { >> int sockets[MAX_PORT_RETRIES]; >> struct sockaddr_vm addr; >> -int fd, i, alen; >> +socklen_t alen; >> +int fd

Re: [PATCH RFC net-next v2 3/3] vsock/test: Cover more CIDs in transport_uaf test

2025-06-04 Thread Stefano Garzarella
On Wed, May 28, 2025 at 10:44:43PM +0200, Michal Luczaj wrote: Increase the coverage of test for UAF due to socket unbinding, and losing transport in general. It's a follow up to commit 301a62dfb0d0 ("vsock/test: Add test for UAF due to socket unbinding") and discussion in [1]. The idea remains

[PATCH RFC net-next v2 3/3] vsock/test: Cover more CIDs in transport_uaf test

2025-05-28 Thread Michal Luczaj
Increase the coverage of test for UAF due to socket unbinding, and losing transport in general. It's a follow up to commit 301a62dfb0d0 ("vsock/test: Add test for UAF due to socket unbinding") and discussion in [1]. The idea remains the same: take an unconnected stream socket with a transport assi