All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 00/10] Detect reentrant RX casued by loopback
@ 2021-03-02  5:54 Jason Wang
  2021-03-02  5:54 ` [PATCH V3 01/10] net: introduce qemu_receive_packet() Jason Wang
                   ` (10 more replies)
  0 siblings, 11 replies; 19+ messages in thread
From: Jason Wang @ 2021-03-02  5:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: alxndr, Jason Wang, philmd, qemu-security, ppandit

Hi All:

Followed by commit 22dc8663d9 ("net: forbid the reentrant RX"), we
still need to fix the issues casued by loopback mode where the NIC
usually it via calling nc->info->receive() directly.

The fix is to introduce new network helper and check the
queue->delivering.

Thanks

Changes since V2:
- add more fixes from Alexander

Changes since V1:

- Fix dp8393x compiling
- Add rtl8139 fix
- Tweak the commit log
- Silent patchew warning

Alexander Bulekov (4):
  rtl8139: switch to use qemu_receive_packet() for loopback
  pcnet: switch to use qemu_receive_packet() for loopback
  cadence_gem: switch to use qemu_receive_packet() for loopback
  lan9118: switch to use qemu_receive_packet() for loopback

Jason Wang (6):
  net: introduce qemu_receive_packet()
  e1000: switch to use qemu_receive_packet() for loopback
  dp8393x: switch to use qemu_receive_packet() for loopback packet
  msf2-mac: switch to use qemu_receive_packet() for loopback
  sungem: switch to use qemu_receive_packet() for loopback
  tx_pkt: switch to use qemu_receive_packet_iov() for loopback

 hw/net/cadence_gem.c |  2 +-
 hw/net/dp8393x.c     |  2 +-
 hw/net/e1000.c       |  2 +-
 hw/net/lan9118.c     |  2 +-
 hw/net/msf2-emac.c   |  2 +-
 hw/net/net_tx_pkt.c  |  2 +-
 hw/net/pcnet.c       |  2 +-
 hw/net/rtl8139.c     |  2 +-
 hw/net/sungem.c      |  2 +-
 include/net/net.h    |  5 +++++
 include/net/queue.h  |  8 ++++++++
 net/net.c            | 38 +++++++++++++++++++++++++++++++-------
 net/queue.c          | 22 ++++++++++++++++++++++
 13 files changed, 75 insertions(+), 16 deletions(-)

-- 
2.24.3 (Apple Git-128)



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2021-03-02  7:14 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02  5:54 [PATCH V3 00/10] Detect reentrant RX casued by loopback Jason Wang
2021-03-02  5:54 ` [PATCH V3 01/10] net: introduce qemu_receive_packet() Jason Wang
2021-03-02  5:54 ` [PATCH V3 02/10] e1000: switch to use qemu_receive_packet() for loopback Jason Wang
2021-03-02  5:54 ` [PATCH V3 03/10] dp8393x: switch to use qemu_receive_packet() for loopback packet Jason Wang
2021-03-02  7:00   ` Philippe Mathieu-Daudé
2021-03-02  5:54 ` [PATCH V3 04/10] msf2-mac: switch to use qemu_receive_packet() for loopback Jason Wang
2021-03-02  5:54 ` [PATCH V3 05/10] sungem: " Jason Wang
2021-03-02  7:13   ` Mark Cave-Ayland
2021-03-02  5:54 ` [PATCH V3 06/10] tx_pkt: switch to use qemu_receive_packet_iov() " Jason Wang
2021-03-02  5:54 ` [PATCH V3 07/10] rtl8139: switch to use qemu_receive_packet() " Jason Wang
2021-03-02  6:59   ` Philippe Mathieu-Daudé
2021-03-02  5:54 ` [PATCH V2 7/7] rtl8193: " Jason Wang
2021-03-02  6:39   ` P J P
2021-03-02  6:52     ` Jason Wang
2021-03-02  5:54 ` [PATCH V3 08/10] pcnet: " Jason Wang
2021-03-02  5:54 ` [PATCH V3 09/10] cadence_gem: " Jason Wang
2021-03-02  6:59   ` Philippe Mathieu-Daudé
2021-03-02  5:55 ` [PATCH V3 10/10] lan9118: " Jason Wang
2021-03-02  7:00   ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.