aboutgitcodebugslistschat
path: root/tcp_vu.c
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2024-11-27 11:25:21 +0100
committerStefano Brivio <sbrivio@redhat.com>2024-11-27 16:49:21 +0100
commit6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05 (patch)
treed255fdb833caa0e8b3b3530ab73077807333f914 /tcp_vu.c
parent7e131e920c04054b9d005dac718ac54e5169fa71 (diff)
downloadpasst-6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05.tar
passt-6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05.tar.gz
passt-6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05.tar.bz2
passt-6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05.tar.lz
passt-6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05.tar.xz
passt-6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05.tar.zst
passt-6fae899cbbb3ec5bc9a0d5c7dde16131b2f85f05.zip
virtio: check if avail ring is configured
If the connection to the vhost-user front end is closed during transfers virtio rings are deconfigured and not available anymore, but we can try to access them to process queued data. This can trigger a SIGSEG as we try to access unavailable memory. To fix that check vq->vring.avail is sane before accessing the vring Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_vu.c')
0 files changed, 0 insertions, 0 deletions