kernel_samsung_a53x/net/vmw_vsock
Nikolay Kuratov 9fecd1de54 vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space()
[ Upstream commit 60316d7f10b17a7ebb1ead0642fee8710e1560e0 ]

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: 06a8fc78367d ("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>
2024-11-18 12:11:49 +01:00
..
af_vsock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
af_vsock_tap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hyperv_transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio_transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio_transport_common.c vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space() 2024-11-18 12:11:49 +01:00
vmci_transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_transport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_transport_notify.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_transport_notify.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_transport_notify_qstate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsock_addr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsock_loopback.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00