OSDN Git Service

contrib/vhost-user-blk: fix get_config() information leak
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 27 Oct 2020 17:35:21 +0000 (17:35 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 3 Nov 2020 21:39:05 +0000 (16:39 -0500)
commit9f6df01d0e128c2df179789b37140d6aeddfcb92
tree1774f2cd9fe7b8a8e9d17484673e904423a0ff15
parentf8ffcb2bda22bad8e91da70c28ec52724a054f92
contrib/vhost-user-blk: fix get_config() information leak

Refuse get_config() in excess of sizeof(struct virtio_blk_config).

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20201027173528.213464-6-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/vhost-user-blk/vhost-user-blk.c