qemu/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
..
authz
block nbd patches for 2021-03-09 2021-03-11 13:57:08 +00:00
chardev
crypto
disas Hexagon (disas) disassembler 2021-02-18 07:48:22 -08:00
exec Pull request 2021-03-11 18:55:27 +00:00
fpu
hw target-arm queue: 2021-03-14 13:18:49 +00:00
io
libdecnumber
migration
monitor
net net: introduce qemu_receive_packet() 2021-03-15 16:41:22 +08:00
qapi error: Fix "Converting to ERRP_GUARD()" doc on "valid at return" 2021-03-05 15:40:42 +01:00
qemu ppc patch queue for 2021-03-10 2021-03-12 11:30:55 +00:00
qom
scsi scsi: inline sg_io_sense_from_errno() into the callers. 2021-03-06 11:42:56 +01:00
semihosting semihosting: Move include/hw/semihosting/ -> include/semihosting/ 2021-03-10 15:34:12 +00:00
standard-headers
sysemu dma: Introduce dma_aligned_pow2_mask() 2021-03-12 12:40:10 +00:00
tcg
ui ui/console: Add placeholder flag to message surface 2021-03-04 09:35:36 +01:00
user
elf.h Remove deprecated target tilegx 2021-03-09 11:26:32 +01:00
glib-compat.h
qemu-common.h qemu-common.h: Update copyright string to 2021 2021-03-09 22:19:24 +01:00
qemu-io.h
trace-tcg.h