linux-stable/net/vmw_vsock
Nikolay Kuratov 2698050cff vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space()
[ Upstream commit 60316d7f10 ]

We need to do signed arithmetic if we expect condition
`if (bytes < 0)` to be possible

Found by Linux Verification Center (linuxtesting.org) with SVACE

Fixes: 06a8fc7836 ("VSOCK: Introduce virtio_vsock_common.ko")
Signed-off-by: Nikolay Kuratov <kniv@yandex-team.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20231211162317.4116625-1-kniv@yandex-team.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-20 15:38:01 +01:00
..
Kconfig
Makefile
af_vsock.c vsock: avoid to close connected socket after the timeout 2023-05-30 12:42:10 +01:00
af_vsock_tap.c
diag.c
hyperv_transport.c vsock: fix locking in vsock_shutdown() 2021-02-23 15:00:58 +01:00
virtio_transport.c vsock/virtio: avoid potential deadlock when vsock device remove 2021-08-26 08:36:39 -04:00
virtio_transport_common.c vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space() 2023-12-20 15:38:01 +01:00
vmci_transport.c net: vmw_vsock: vmci: Check memcpy_from_msg() 2023-01-18 11:30:18 +01:00
vmci_transport.h
vmci_transport_notify.c
vmci_transport_notify.h
vmci_transport_notify_qstate.c
vsock_addr.c