diff options
author | Nikolay Kuratov <kniv@yandex-team.ru> | 2023-12-11 19:23:17 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-13 17:59:08 -0800 |
commit | 60316d7f10b17a7ebb1ead0642fee8710e1560e0 (patch) | |
tree | d3e0dec3a5925949c663bd6340750248626b9886 /net/vmw_vsock/vmci_transport.c | |
parent | 9702817384aa4a3700643d0b26e71deac0172cfd (diff) |
vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space()
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>
Diffstat (limited to 'net/vmw_vsock/vmci_transport.c')
0 files changed, 0 insertions, 0 deletions