Dmitry Fleytman df8bf7a7fe NetRxPkt: Fix memory corruption on VLAN header stripping
This patch fixed a problem that was introduced in commit eb700029.

When net_rx_pkt_attach_iovec() calls eth_strip_vlan()
this can result in pkt->ehdr_buf being overflowed, because
ehdr_buf is only sizeof(struct eth_header) bytes large
but eth_strip_vlan() can write
sizeof(struct eth_header) + sizeof(struct vlan_header)
bytes into it.

Devices affected by this problem: vmxnet3.

Cc: qemu-stable@nongnu.org
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2017-03-06 11:46:02 +08:00
..
2017-03-03 10:09:03 +00:00
2017-01-27 18:08:00 +01:00
2017-03-02 17:39:12 +00:00
2017-02-28 16:22:41 +00:00
2017-03-03 10:09:03 +00:00
2017-02-28 20:40:36 +01:00
2017-02-02 16:08:28 +00:00
2017-03-02 13:50:55 +00:00
2017-02-06 12:33:21 +11:00
2017-01-27 18:07:59 +01:00
2017-02-24 10:37:21 +00:00
2017-02-28 20:40:36 +01:00
2017-02-02 18:48:06 +00:00
2017-02-24 10:13:57 +00:00
2017-03-03 11:30:59 +11:00
2017-02-28 12:04:48 +01:00
2017-02-28 20:40:36 +01:00
2017-03-01 23:09:46 +00:00
2017-02-28 16:18:49 +00:00
2017-03-02 17:39:12 +00:00
2017-02-03 12:31:40 +00:00