aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2021-11-22 04:32:01 -0500
committerDavid S. Miller <[email protected]>2021-11-22 14:49:03 +0000
commitf7a36b03a7320d1a3ba52f9305571eddad325a05 (patch)
tree57d0584f74b9b7e52b9809931d2c1dd57ac3f2dd /lib/test_overflow.c
parentf93fd0ca5e7de743ce687951266950fb37877e34 (diff)
vsock/virtio: suppress used length validation
It turns out that vhost vsock violates the virtio spec by supplying the out buffer length in the used length (should just be the in length). As a result, attempts to validate the used length fail with: vmw_vsock_virtio_transport virtio1: tx: used len 44 is larger than in buflen 0 Since vsock driver does not use the length fox tx and validates the length before use for rx, it is safe to suppress the validation in virtio core for this driver. Reported-by: Halil Pasic <[email protected]> Fixes: 939779f5152d ("virtio_ring: validate used buffer length") Cc: "Jason Wang" <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions