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>] [day] [month] [year] [list]
Message-ID:
 <AS2P194MB2170E1933C4257264D53AB069A002@AS2P194MB2170.EURP194.PROD.OUTLOOK.COM>
Date: Mon,  8 Apr 2024 15:37:46 +0200
From: Luigi Leonardi <luigi.leonardi@...look.com>
To: mst@...hat.com,
	xuanzhuo@...ux.alibaba.com,
	virtualization@...ts.linux.dev,
	sgarzare@...hat.com,
	netdev@...r.kernel.org,
	kuba@...nel.org,
	stefanha@...hat.com,
	davem@...emloft.net,
	pabeni@...hat.com,
	edumazet@...gle.com,
	kvm@...r.kernel.org,
	jasowang@...hat.com
Cc: Luigi Leonardi <luigi.leonardi@...look.com>
Subject: [PATCH net-next v2 0/3] This patch series introduce the support for ioctl(s) in AF_VSOCK.

the number of unsent or unacked packets. It is available for
SOCK_STREAM, SOCK_SEQPACKET and SOCK_DGRAM.

As this information is transport-dependent, a new optional callback
is introduced: stream_bytes_unsent.

The first patch add ioctl support in AF_VSOCK, while the second
patch introduce support for SOCK_STREAM and SOCK_SEQPACKET
in all virtio-based transports: virtio_transport (G2H),
vhost-vsock (H2G) and vsock-loopback.

The latest patch introduce two tests for this new feature.
More details can be found in each patch changelog.

v1->v2
Applied all Stefano's suggestions:
    - vsock_do_ioctl has been rewritten
    - ioctl(SIOCOUTQ) test is skipped when it is not supported
    - Minor variable/function name changes
    - rebased to latest net-next

Link: https://lore.kernel.org/netdev/AS2P194MB2170C0FC43DDA2CB637CE6B29A3E2@AS2P194MB2170.EURP194.PROD.OUTLOOK.COM

Luigi Leonardi (3):
  vsock: add support for SIOCOUTQ ioctl for all vsock socket types.
  vsock/virtio: add SIOCOUTQ support for all virtio based transports
  test/vsock: add ioctl unsent bytes test

 drivers/vhost/vsock.c                   |  4 +-
 include/linux/virtio_vsock.h            |  7 ++
 include/net/af_vsock.h                  |  3 +
 net/vmw_vsock/af_vsock.c                | 51 ++++++++++++++-
 net/vmw_vsock/virtio_transport.c        |  4 +-
 net/vmw_vsock/virtio_transport_common.c | 33 ++++++++++
 net/vmw_vsock/vsock_loopback.c          |  7 ++
 tools/testing/vsock/util.c              |  6 +-
 tools/testing/vsock/util.h              |  3 +
 tools/testing/vsock/vsock_test.c        | 85 +++++++++++++++++++++++++
 10 files changed, 195 insertions(+), 8 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ