[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/2] net: Provide MemReentrancyGuard * to qemu_new_nic()



Hi,

On 1/6/23 05:18, Akihiko Odaki wrote:
Recently MemReentrancyGuard was added to DeviceState to record that the
device is engaging in I/O. The network device backend needs to update it
when delivering a packet to a device.

In preparation for such a change, add MemReentrancyGuard * as a
parameter of qemu_new_nic().

An user on IRC asked if this patch is related/fixing CVE-2021-20255,
any clue?

Signed-off-by: Akihiko Odaki <akihiko.odaki@xxxxxxxxxx>
---
  include/net/net.h             | 1 +
  hw/net/allwinner-sun8i-emac.c | 3 ++-
  hw/net/allwinner_emac.c       | 3 ++-
  hw/net/cadence_gem.c          | 3 ++-
  hw/net/dp8393x.c              | 3 ++-
  hw/net/e1000.c                | 3 ++-
  hw/net/e1000e.c               | 2 +-
  hw/net/eepro100.c             | 4 +++-
  hw/net/etraxfs_eth.c          | 3 ++-
  hw/net/fsl_etsec/etsec.c      | 3 ++-
  hw/net/ftgmac100.c            | 3 ++-
  hw/net/i82596.c               | 2 +-
  hw/net/igb.c                  | 2 +-
  hw/net/imx_fec.c              | 2 +-
  hw/net/lan9118.c              | 3 ++-
  hw/net/mcf_fec.c              | 3 ++-
  hw/net/mipsnet.c              | 3 ++-
  hw/net/msf2-emac.c            | 3 ++-
  hw/net/mv88w8618_eth.c        | 3 ++-
  hw/net/ne2000-isa.c           | 3 ++-
  hw/net/ne2000-pci.c           | 3 ++-
  hw/net/npcm7xx_emc.c          | 3 ++-
  hw/net/opencores_eth.c        | 3 ++-
  hw/net/pcnet.c                | 3 ++-
  hw/net/rocker/rocker_fp.c     | 4 ++--
  hw/net/rtl8139.c              | 3 ++-
  hw/net/smc91c111.c            | 3 ++-
  hw/net/spapr_llan.c           | 3 ++-
  hw/net/stellaris_enet.c       | 3 ++-
  hw/net/sungem.c               | 2 +-
  hw/net/sunhme.c               | 3 ++-
  hw/net/tulip.c                | 3 ++-
  hw/net/virtio-net.c           | 6 ++++--
  hw/net/vmxnet3.c              | 2 +-
  hw/net/xen_nic.c              | 4 ++--
  hw/net/xgmac.c                | 3 ++-
  hw/net/xilinx_axienet.c       | 3 ++-
  hw/net/xilinx_ethlite.c       | 3 ++-
  hw/usb/dev-network.c          | 3 ++-
  net/net.c                     | 1 +
  40 files changed, 75 insertions(+), 41 deletions(-)




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.