summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNguyen Dinh Phi <phind.uet@gmail.com>2026-10-30 14:43:50 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-11-03 15:10:57 +0100
commitc0ef6144b4d60afb90bc6d8db3ffdac043cd6ffc (patch)
tree739ef2689a982d154f2a1ce9536180c4e7043650 /include
parentb3427f41f831adecc8ffd89afc9d30c279115658 (diff)
vsock: reject negative tv_usec in SO_VM_SOCKETS_CONNECT_TIMEOUT
The timeval validation checks tv_usec < USEC_PER_SEC but not tv_usec >= 0, so a negative tv_usec makes the timeout computation wrap into a bogus value, later tripping "schedule_timeout: wrong timeout value" instead of being rejected. Fixes: d021c344051a ("VSOCK: Introduce VM Sockets") Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Bobby Eshleman <bobbyeshleman@meta.com> Link: https://patch.msgid.link/20261030064428.73930-1-phind.uet@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions