Files
linux/drivers
Stefan Wahren f6ed63bc39 net: lan78xx: Fix race in tx pending skb size calculation
commit dea39aca1d upstream.

The skb size calculation in lan78xx_tx_bh is in race with the start_xmit,
which could lead to rare kernel oopses. So protect the whole skb walk with
a spin lock. As a benefit we can unlink the skb directly.

This patch was tested on Raspberry Pi 3B+

Link: https://github.com/raspberrypi/linux/issues/2608
Fixes: 55d7de9de6 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-22 14:27:39 +02:00
..
2018-07-22 14:27:36 +02:00
2018-06-16 09:52:33 +02:00
2018-07-17 11:37:53 +02:00
2018-02-25 11:05:55 +01:00
2018-06-13 16:16:42 +02:00
2017-09-09 17:39:41 +02:00
2016-09-20 20:57:12 +10:00
2018-07-11 16:26:43 +02:00