msf2-mac: switch to use qemu_receive_packet() for loopback
authorJason Wang <jasowang@redhat.com>
Wed, 24 Feb 2021 05:00:01 +0000 (13:00 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Tue, 23 Nov 2021 04:45:36 +0000 (13:45 +0900)
commit025aec1d138c0d9b286c65b4be4ee1a6e716499c
tree2336c225f8add3c51af207df3f268cc7910e2a78
parenta78de570f133fa6591222415c6edb699db233030
msf2-mac: switch to use qemu_receive_packet() for loopback

Git-commit: 26194a58f4eb83c5bdf4061a1628508084450ba1

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>
Signed-off-by: Bruce Rogers <brogers@suse.com>
hw/net/msf2-emac.c