msf2-mac: switch to use qemu_receive_packet() for loopback
commit26194a58f4eb83c5bdf4061a1628508084450ba1
authorJason Wang <jasowang@redhat.com>
Wed, 24 Feb 2021 05:00:01 +0000 (24 13:00 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 15 Mar 2021 08:41:22 +0000 (15 16:41 +0800)
tree002ff34f25c1586823e4e4e950c8c4993b0f9fa2
parent331d2ac9ea307c990dc86e6493e8f0c48d14bb33
msf2-mac: switch to use qemu_receive_packet() for loopback

This patch switches to use qemu_receive_packet() which can detect
reentrancy and return early.

This is intended to address CVE-2021-3416.

Cc: Prasad J Pandit <ppandit@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/msf2-emac.c