WSL2-Linux-Kernel/drivers/net/ethernet
Tony Nguyen 367e1e3399 igb: Initialize mailbox message for VF reset
commit de5dc44370 upstream.

When a MAC address is not assigned to the VF, that portion of the message
sent to the VF is not set. The memory, however, is allocated from the
stack meaning that information may be leaked to the VM. Initialize the
message buffer to 0 so that no information is passed to the VM in this
case.

Fixes: 6ddbc4cf1f ("igb: Indicate failure on vf reset for empty mac address")
Reported-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20221212190031.3983342-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-21 17:36:37 +01:00
..
3com
8390 net:mcf8390: Use platform_get_irq() to get the interrupt 2022-04-08 14:22:47 +02:00
actions
adaptec
aeroflex ethernet: aeroflex: fix potential skb leak in greth_init_rings() 2022-12-14 11:37:29 +01:00
agere
alacritech
allwinner
alteon
altera net: altera: Fix refcount leak in altera_tse_mdio_create 2022-06-14 18:36:19 +02:00
amazon net: ena: Fix error handling in ena_init() 2022-11-26 09:24:40 +01:00
amd amd-xgbe: add the bit rate quirk for Molex cables 2022-11-03 23:59:16 +09:00
apm drivers: net: xgene: disable napi when register irq failed in xgene_enet_open() 2022-11-16 09:58:20 +01:00
apple
aquantia aquantia: Do not purge addresses when setting the number of rings 2022-12-08 11:28:40 +01:00
arc of: net: move of_net under net/ 2022-03-08 19:12:41 +01:00
atheros net: ag71xx: call phylink_disconnect_phy if ag71xx_hw_enable() fail in ag71xx_open() 2022-11-26 09:24:41 +01:00
broadcom net: broadcom: Add PTP_1588_CLOCK_OPTIONAL dependency for BCMGENET under ARCH_BCM2835 2022-12-14 11:37:23 +01:00
brocade
cadence net: macb: Specify PHY PM management done by MAC 2022-11-03 23:59:16 +09:00
calxeda
cavium net: thunderx: Fix missing destroy_workqueue of nicvf_rx_mode_wq 2022-12-14 11:37:27 +01:00
chelsio cxgb4vf: shut down the adapter when t4vf_update_port_info() failed in cxgb4vf_open() 2022-11-16 09:58:22 +01:00
cirrus
cisco
cortina net: Use u64_stats_fetch_begin_irq() for stats fetch. 2022-09-08 12:28:07 +02:00
davicom
dec ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one() 2022-05-25 09:57:35 +02:00
dlink
emulex be2net: Fix buffer overflow in be_get_module_eeprom 2022-07-29 17:25:21 +02:00
ezchip of: net: move of_net under net/ 2022-03-08 19:12:41 +01:00
faraday net: ftgmac100: Hold reference returned by of_get_child_by_name() 2022-07-21 21:24:28 +02:00
freescale net: fec: properly guard irq coalesce setup 2022-12-19 12:36:45 +01:00
fujitsu
google net: Use u64_stats_fetch_begin_irq() for stats fetch. 2022-09-08 12:28:07 +02:00
hisilicon net: hisilicon: Fix potential use-after-free in hix5hd2_rx() 2022-12-14 11:37:28 +01:00
huawei net: hinic: Fix error handling in hinic_module_init() 2022-11-26 09:24:38 +01:00
i825xx lib82596: Fix IRQ check in sni_82596_probe 2022-01-27 11:05:43 +01:00
ibm ibmvnic: Free rwi on reset success 2022-11-10 18:15:31 +01:00
intel igb: Initialize mailbox message for VF reset 2022-12-21 17:36:37 +01:00
litex net: ethernet: litex: Add the dependency on HAS_IOMEM 2022-03-08 19:12:41 +01:00
marvell net: mvneta: Fix an out of bounds check 2022-12-14 11:37:30 +01:00
mediatek net: ethernet: mtk_eth_soc: fix error handling in mtk_open() 2022-12-02 17:41:05 +01:00
mellanox net/mlx5e: Fix use-after-free when reverting termination table 2022-12-08 11:28:40 +01:00
micrel net: ksz884x: fix missing pci_disable_device() on error in pcidev_init() 2022-11-03 23:59:18 +09:00
microchip net: microchip: sparx5: Fix missing destroy_workqueue of mact_queue 2022-12-14 11:37:27 +01:00
microsoft net: mana: Fix race on per-CQ variable napi work_done 2022-12-14 11:37:20 +01:00
moxa net: moxa: get rid of asymmetry in DMA mapping/unmapping 2022-08-31 17:16:39 +02:00
mscc net: mscc: ocelot: allow unregistered IP multicast flooding to CPU 2022-07-02 16:41:18 +02:00
myricom myri10ge: fix an incorrect free for skb in myri10ge_sw_tso 2022-04-20 09:34:16 +02:00
natsemi natsemi: xtensa: fix section mismatch warnings 2021-12-08 09:04:46 +01:00
neterion ethernet: s2io: disable napi when start nic failed in s2io_card_up() 2022-11-16 09:58:23 +01:00
netronome nfp: fix use-after-free in area_cache_get() 2022-12-19 12:36:39 +01:00
ni net: ethernet: nixge: fix NULL dereference 2022-12-08 11:28:41 +01:00
nvidia
nxp net: ethernet: lpc_eth: Handle error for clk_enable 2022-03-16 14:23:38 +01:00
oki-semi net: pch_gbe: fix pci device refcount leak while module exiting 2022-12-02 17:41:05 +01:00
packetengines
pasemi
pensando net: ionic: Fix error handling in ionic_init_module() 2022-11-26 09:24:40 +01:00
qlogic qlcnic: fix sleep-in-atomic-context bugs caused by msleep 2022-12-08 11:28:40 +01:00
qualcomm
rdc
realtek r8169: fix accessing unset transport header 2022-07-12 16:35:16 +02:00
renesas net: ethernet: renesas: ravb: Fix promiscuous mode after system resumed 2022-12-08 11:28:41 +01:00
rocker ethernet: rocker: fix sleep in atomic context bug in neigh_timer_handler 2022-09-08 12:28:02 +02:00
samsung net: sxgbe: fix return value of __setup handler 2022-03-08 19:12:46 +01:00
seeq
sfc sfc: fix potential memleak in __ef100_hard_start_xmit() 2022-12-02 17:41:06 +01:00
sgi
silan
sis
smsc net: smsc911x: Stop and start PHY during suspend and resume 2022-09-08 12:28:02 +02:00
socionext net: ethernet: ave: Fix MAC to be in charge of PHY PM 2022-11-03 23:59:18 +09:00
stmicro net: stmmac: fix "snps,axi-config" node property parsing 2022-12-14 11:37:27 +01:00
sun net: sunhme: Fix packet reception for len < RX_COPY_THRESHOLD 2022-09-28 11:11:53 +02:00
synopsys
tehuti
ti net: ethernet: ti: am65-cpsw: fix error handling in am65_cpsw_nuss_probe() 2022-12-08 11:28:40 +01:00
toshiba
tundra ethernet: tundra: free irq when alloc ring failed in tsi108_open() 2022-11-16 09:58:23 +01:00
via
wiznet
xilinx net: emaclite: Don't advertise 1000BASE-T and do auto negotiation 2022-05-18 10:26:52 +02:00
xircom
xscale ixp4xx_eth: fix error check return value of platform_get_irq() 2022-06-09 10:22:46 +02:00
Kconfig net: restore alpha order to Ethernet devices in config 2022-04-27 14:38:53 +02:00
Makefile
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
korina.c
lantiq_etop.c net: lantiq_etop: don't free skb when returning NETDEV_TX_BUSY 2022-11-03 23:59:16 +09:00
lantiq_xrx200.c net: lantiq_xrx200: fix statistics of received bytes 2022-01-05 12:42:35 +01:00