diff options
author | Si-Wei Liu <[email protected]> | 2022-01-14 19:28:01 -0500 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2022-03-04 11:56:34 -0500 |
commit | ed0f849fc3a63ed2ddf5e72cdb1de3bdbbb0f8eb (patch) | |
tree | a9898aada17cf55d8be0de166868f8dc43ef2373 /net/unix/af_unix.c | |
parent | 30c22f3816ffef8aa21a000e93c4ee1402a6ea65 (diff) |
vdpa/mlx5: add validation for VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command
When control vq receives a VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command
request from the driver, presently there is no validation against the
number of queue pairs to configure, or even if multiqueue had been
negotiated or not is unverified. This may lead to kernel panic due to
uninitialized resource for the queues were there any bogus request
sent down by untrusted driver. Tie up the loose ends there.
Fixes: 52893733f2c5 ("vdpa/mlx5: Add multiqueue support")
Signed-off-by: Si-Wei Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Eli Cohen <[email protected]>
Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions