qemu-e2k/hw/net
Thomas Huth 90a0778421 hw/net/vmxnet3: Fix guest-triggerable assert()
The assert() that checks for valid MTU sizes can be triggered by
the guest (e.g. with the reproducer code from the bug ticket
https://gitlab.com/qemu-project/qemu/-/issues/517 ). Let's avoid
this problem by simply logging the error and refusing to activate
the device instead.

Fixes: d05dcd94ae ("net: vmxnet3: validate configuration values during activate")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
[Mjt: change format specifier from %d to %u for uint32_t argument]
2023-09-08 13:08:52 +03:00
..
can meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
fsl_etsec
rocker
allwinner_emac.c
allwinner-sun8i-emac.c hw/net/allwinner-sun8i-emac: Correctly byteswap descriptor fields 2023-05-02 15:47:41 +01:00
cadence_gem.c
dp8393x.c hw/net/dp8393x.c: move TYPE_DP8393X and dp8393xState into dp8393x.h 2023-06-22 09:25:40 +02:00
e1000_common.h
e1000_regs.h
e1000.c hw/net: e1000: Remove the logic of padding short frames in the receive path 2023-07-07 16:35:12 +08:00
e1000e_core.c e1000e: Add ICR clearing by corresponding IMS bit 2023-07-07 16:35:12 +08:00
e1000e_core.h e1000e: Notify only new interrupts 2023-05-23 15:20:15 +08:00
e1000e.c
e1000x_common.c e1000x: Take CRC into consideration for size check 2023-05-23 15:20:15 +08:00
e1000x_common.h e1000x: Share more Rx filtering logic 2023-05-23 15:20:15 +08:00
e1000x_regs.h e1000x: Rename TcpIpv6 into TcpIpv6Ex 2023-05-23 15:20:15 +08:00
eepro100.c
etraxfs_eth.c
ftgmac100.c hw/net: ftgmac100: Drop the small packet check in the receive path 2023-07-07 16:35:12 +08:00
i82596.c hw/net/i82596: Include missing 'exec/address-spaces.h' header 2023-08-31 19:47:43 +02:00
i82596.h
igb_common.h igb: Implement Rx PTP2 timestamp 2023-05-23 15:20:15 +08:00
igb_core.c igb: Remove obsolete workaround for Windows 2023-07-07 16:35:12 +08:00
igb_core.h
igb_regs.h igb: Implement Tx timestamp 2023-05-23 15:20:15 +08:00
igb.c pcie: Use common ARI next function number 2023-07-10 18:59:32 -04:00
igbvf.c pcie: Use common ARI next function number 2023-07-10 18:59:32 -04:00
imx_fec.c
Kconfig kconfig: Add PCIe devices to s390x machines 2023-07-14 11:10:57 +02:00
lan9118.c
lance.c
lasi_i82596.c
mcf_fec.c
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
mipsnet.c
msf2-emac.c
mv88w8618_eth.c
ne2000-isa.c
ne2000-pci.c
ne2000.c hw/net: ne2000: Remove the logic of padding short frames in the receive path 2023-07-07 16:35:12 +08:00
ne2000.h
net_rx_pkt.c igb: Strip the second VLAN tag for extended VLAN 2023-05-23 15:20:15 +08:00
net_rx_pkt.h igb: Strip the second VLAN tag for extended VLAN 2023-05-23 15:20:15 +08:00
net_tx_pkt.c igb: Implement Tx SCTP CSO 2023-05-23 15:20:15 +08:00
net_tx_pkt.h igb: Implement Tx SCTP CSO 2023-05-23 15:20:15 +08:00
npcm7xx_emc.c
opencores_eth.c
pcnet-pci.c
pcnet.c hw/net: pcnet: Remove the logic of padding short frames in the receive path 2023-07-07 16:35:12 +08:00
pcnet.h
rtl8139.c hw/net: rtl8139: Remove the logic of padding short frames in the receive path 2023-07-07 16:35:12 +08:00
smc91c111.c
spapr_llan.c
stellaris_enet.c
sungem.c ppc patch queue for 2023-07-07: 2023-07-07 22:23:17 +01:00
sunhme.c hw/net: sunhme: Remove the logic of padding short frames in the receive path 2023-07-07 16:35:12 +08:00
trace-events ppc patch queue for 2023-07-07: 2023-07-07 22:23:17 +01:00
trace.h
tulip.c
tulip.h
vhost_net-stub.c
vhost_net.c net/vhost-net: do not assert on null pointer return from tap_get_vhost_net() 2023-06-28 07:53:14 -04:00
virtio-net.c hw/virtio: fix typo in VIRTIO_CONFIG_IRQ_IDX comments 2023-07-10 18:59:32 -04:00
vmware_utils.h
vmxnet3_defs.h
vmxnet3.c hw/net/vmxnet3: Fix guest-triggerable assert() 2023-09-08 13:08:52 +03:00
vmxnet3.h
vmxnet_debug.h
xen_nic.c
xgmac.c
xilinx_axienet.c
xilinx_ethlite.c hw/net: Move xilinx_ethlite.c to the target-independent source set 2023-05-16 09:14:18 +02:00