lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250514141927.159456-1-sgarzare@redhat.com>
Date: Wed, 14 May 2025 16:19:24 +0200
From: Stefano Garzarella <sgarzare@...hat.com>
To: netdev@...r.kernel.org
Cc: virtualization@...ts.linux.dev,
	Stefano Garzarella <sgarzare@...hat.com>,
	linux-kernel@...r.kernel.org
Subject: [PATCH net-next v2 0/3] vsock/test: improve sigpipe test reliability

Running the tests continuously I noticed that sometimes the sigpipe
test would fail due to a race between the control message of the test
and the vsock transport messages.

While I was at it I also improved the test by checking the errno we
expect.

Changelog:
v2:
- added a patch to provide timeout_usleep() and avoid issues with signals
  in timeout section
- add little sleep to avoid flooding the other peer [Paolo]
- fixed loop exit condition [Paolo]

v1: https://lore.kernel.org/netdev/20250508142005.135857-1-sgarzare@redhat.com/

Stefano Garzarella (3):
  vsock/test: add timeout_usleep() to allow sleeping in timeout sections
  vsock/test: retry send() to avoid occasional failure in sigpipe test
  vsock/test: check also expected errno on sigpipe test

 tools/testing/vsock/timeout.h    |  1 +
 tools/testing/vsock/timeout.c    | 18 +++++++++++++
 tools/testing/vsock/vsock_test.c | 46 ++++++++++++++++++++++++++------
 3 files changed, 57 insertions(+), 8 deletions(-)

-- 
2.49.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ