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: <20250306-test_vsock-v1-0-0320b5accf92@redhat.com>
Date: Thu, 06 Mar 2025 17:09:31 +0100
From: Luigi Leonardi <leonardi@...hat.com>
To: Stefano Garzarella <sgarzare@...hat.com>, Michal Luczaj <mhal@...x.co>
Cc: virtualization@...ts.linux.dev, netdev@...r.kernel.org, 
 linux-kernel@...r.kernel.org, Luigi Leonardi <leonardi@...hat.com>
Subject: [PATCH net-next 0/2] vsock/test: check for null-ptr-deref when
 transport changes

This series introduces a new test that checks for a null pointer 
dereference that may happen when there is a transport change[1]. This 
bug was fixed in [2]

First commit introduces a new utility function that checks whether a 
timeout has expired or not without exiting the test. This is required in 
the test because timeout expiration does not mean that the test failed.

Second commit is the test itself. Note that this test *cannot* fail, it 
hangs if it triggers a kernel oops. The intended use-case is to run it 
and then check if there is any oops in the dmesg.

This test is based on Michal's python reproducer[3].

[1]https://lore.kernel.org/netdev/Z2LvdTTQR7dBmPb5@v4bel-B760M-AORUS-ELITE-AX/
[2]https://lore.kernel.org/netdev/20250110083511.30419-1-sgarzare@redhat.com/
[3]https://lore.kernel.org/netdev/2b3062e3-bdaa-4c94-a3c0-2930595b9670@rbox.co/

Signed-off-by: Luigi Leonardi <leonardi@...hat.com>
---
Luigi Leonardi (2):
      vsock/test: Add new function to check for timeout
      vsock/test: Add test for null ptr deref when transport changes

 tools/testing/vsock/Makefile     |  1 +
 tools/testing/vsock/timeout.c    |  7 +++-
 tools/testing/vsock/timeout.h    |  3 ++
 tools/testing/vsock/vsock_test.c | 80 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 90 insertions(+), 1 deletion(-)
---
base-commit: 848e076317446f9c663771ddec142d7c2eb4cb43
change-id: 20250306-test_vsock-3e77a9c7a245

Best regards,
-- 
Luigi Leonardi <leonardi@...hat.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ