Skip to content

Harden a few virtio bits

Alexander Shishkin lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 34 repliesIn review

Changes since previous version from the cover letter

* Added Christian's R-B to 3/6
* Added a speculation fix per Michael's comment on the cover letter
* CC'ing lkml

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6virtio console: Harden multiport against invalid host inputdrivers/char/virtio_console.c+3 -06 replies
2/6virtio console: Harden port addingdrivers/char/virtio_console.c+6 -416 replies
3/6virtio 9p: Fix an overflownet/9p/trans_virtio.c+1 -12 replies
4/6virtio console: Harden control message handlingdrivers/char/virtio_console.c+5 -55 replies
5/6virtio_net: Guard against buffer length overflow in xdp_linearize_page()drivers/net/virtio_net.c+3 -11 reply
6/6virtio_ring: Prevent bounds check bypass on descriptor indexdrivers/virtio/virtio_ring.c+3 -01 reply

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchChristian SchoenebeckGreg Kroah-Hartman
1/6
2/6R-b
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/6] Harden a few virtio bits

Hi,

Here are 6 patches that harden console, net and 9p drivers against various malicious host input as well as close a bounds check bypass in the split virtio ring.

Changes since previous version:
* Added Christian's R-B to 3/6
* Added a speculation fix per Michael's comment on the cover letter
* CC'ing lkml

Alexander Shishkin (3):
virtio console: Harden control message handling
virtio_net: Guard against buffer length overflow in
xdp_linearize_page()
virtio_ring: Prevent bounds check bypass on descriptor index

Andi Kleen (3):
virtio console: Harden multiport against invalid host input virtio console: Harden port adding
virtio 9p: Fix an overflow

 drivers/char/virtio_console.c | 19 ++++++++++++-------
 drivers/net/virtio_net.c      |  4 +++-
 drivers/virtio/virtio_ring.c  |  3 +++
 net/9p/trans_virtio.c         |  2 +-
 4 files changed, 19 insertions(+), 9 deletions(-)
Signature · 1 line
2.39.0