]> git.ipfire.org Git - thirdparty/qemu.git/commit
cadence_gem: switch to use qemu_receive_packet() for loopback
authorAlexander Bulekov <alxndr@bu.edu>
Mon, 1 Mar 2021 19:33:43 +0000 (14:33 -0500)
committerJason Wang <jasowang@redhat.com>
Mon, 15 Mar 2021 08:41:22 +0000 (16:41 +0800)
commite73adfbeec9d4e008630c814759052ed945c3fed
treef78236017b4824abb2e54f439f94ff4505f3503a
parent99ccfaa1edafd79f7a3a0ff7b58ae4da7c514928
cadence_gem: 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: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/cadence_gem.c