xemu/include
Jason Wang 705df5466c net: introduce qemu_receive_packet()
Some NIC supports loopback mode and this is done by calling
nc->info->receive() directly which in fact suppresses the effort of
reentrancy check that is done in qemu_net_queue_send().

Unfortunately we can't use qemu_net_queue_send() here since for
loopback there's no sender as peer, so this patch introduce a
qemu_receive_packet() which is used for implementing loopback mode
for a NIC with this check.

NIC that supports loopback mode will be converted to this helper.

This is intended to address CVE-2021-3416.

Cc: Prasad J Pandit <ppandit@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
2021-03-15 16:41:22 +08:00
..
2021-03-11 13:57:08 +00:00
2021-02-18 07:48:22 -08:00
2021-03-11 18:55:27 +00:00
2021-03-14 13:18:49 +00:00
2020-12-10 17:33:17 -05:00
2021-03-15 16:41:22 +08:00
2021-03-12 11:30:55 +00:00
2021-02-08 16:57:37 +11:00
2021-03-09 11:26:32 +01:00