1
0
Fork 0
alistair23-linux/drivers/net/ethernet/amd/xgbe
Sebastian Andrzej Siewior ced57064a0 amd-xgbe: Use __napi_schedule() in BH context
[ Upstream commit d518691cbd ]

The driver uses __napi_schedule_irqoff() which is fine as long as it is
invoked with disabled interrupts by everybody. Since the commit
mentioned below the driver may invoke xgbe_isr_task() in tasklet/softirq
context. This may lead to list corruption if another driver uses
__napi_schedule_irqoff() in IRQ context.

Use __napi_schedule() which safe to use from IRQ and softirq context.

Fixes: 85b85c8534 ("amd-xgbe: Re-issue interrupt if interrupt status not cleared")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-21 09:04:43 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xgbe-common.h amd-xgbe: Fix mdio access for non-zero ports and clause 45 PHYs 2019-01-17 22:06:54 -08:00
xgbe-dcb.c amd-xgbe: Do traffic class setup when called through dcbnl 2016-02-17 15:22:20 -05:00
xgbe-debugfs.c xgbe: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
xgbe-desc.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
xgbe-dev.c net: move skb->xmit_more hint to softnet data 2019-04-01 18:35:02 -07:00
xgbe-drv.c amd-xgbe: Use __napi_schedule() in BH context 2020-04-21 09:04:43 +02:00
xgbe-ethtool.c amd-xgbe: Add ethtool show/set channels support 2018-05-23 16:33:00 -04:00
xgbe-i2c.c amd-xgbe: Re-issue interrupt if interrupt status not cleared 2017-06-29 15:14:18 -04:00
xgbe-main.c amd-xgbe: Fix error path in xgbe_mod_init() 2019-08-30 14:15:31 -07:00
xgbe-mdio.c net: fix amd-xgbe flow-control issue 2018-07-26 09:29:59 -07:00
xgbe-pci.c amd-xgbe: Read and save the port property registers during probe 2018-05-23 16:33:00 -04:00
xgbe-phy-v1.c amd-xgbe: Convert to using the new link mode settings 2017-08-18 16:30:17 -07:00
xgbe-phy-v2.c net: ethernet: Convert phydev advertize and supported from u32 to link mode 2018-11-11 10:10:01 -08:00
xgbe-platform.c amd-xgbe: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:42:12 -07:00
xgbe-ptp.c amd-xgbe: Use the proper register during PTP initialization 2017-06-29 15:14:16 -04:00
xgbe.h amd-xgbe: Improve SFP 100Mbps auto-negotiation 2018-05-23 16:33:01 -04:00