diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2018-07-15 21:53:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-16 14:12:56 -0700 |
commit | dea39aca1d7aef1e2b95b07edeacf04cc8863a2e (patch) | |
tree | db097b90902be7acd610d3064edea3f10b67c826 /tools/perf/scripts/python/stackcollapse.py | |
parent | b5d2d75e079a918be686957b1a8d2f6c5cc95a0a (diff) |
net: lan78xx: Fix race in tx pending skb size calculation
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: 55d7de9de6c3 ("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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions