qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Avoid sending zero-size packets
@ 2019-07-19 18:52 Oleinik, Alexander
  2019-07-19 18:52 ` [Qemu-devel] [PATCH 1/2] net: assert that tx packets have nonzero size Oleinik, Alexander
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Oleinik, Alexander @ 2019-07-19 18:52 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: pbonzini@redhat.com, bsd@redhat.com, stefanha@redhat.com,
	Oleinik, Alexander

While fuzzing virtio-net I found that attempting to send
a zero-size packet leads to an assertion failure, when resetting the
device. These patches add an assertion to net/net.c to ensure that
virtual devices do not try to send zero-size packets and change
virtio-net to check that packets have non-zero size, prior to sending.

Alexander Oleinik (2):
  net: assert that tx packets have nonzero size
  virtio-net: check that tx packet has positive size

 hw/net/virtio-net.c | 15 +++++++++------
 net/net.c           |  3 +++
 2 files changed, 12 insertions(+), 6 deletions(-)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-26 14:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-19 18:52 [Qemu-devel] [PATCH 0/2] Avoid sending zero-size packets Oleinik, Alexander
2019-07-19 18:52 ` [Qemu-devel] [PATCH 1/2] net: assert that tx packets have nonzero size Oleinik, Alexander
2019-07-22  7:17   ` Stefan Hajnoczi
2019-07-23  3:38   ` Jason Wang
2019-07-26 14:42     ` Oleinik, Alexander
2019-07-19 18:52 ` [Qemu-devel] [PATCH 2/2] virtio-net: check that tx packet has positive size Oleinik, Alexander
2019-07-22  7:22   ` Stefan Hajnoczi
2019-07-20  1:00 ` [Qemu-devel] [PATCH 0/2] Avoid sending zero-size packets no-reply
2019-07-22 10:47   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).