]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: ena: fix surprise unplug NULL dereference kernel crash
authorNetanel Belgazal <netanel@amazon.com>
Sun, 9 Sep 2018 08:15:20 +0000 (08:15 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:40:02 +0000 (14:40 +0200)
commit90e2cffe00ed29da1416459feca084903888d99e
tree05b5700575975be28e4188c1ba7c10d651fe3f10
parent17a4c637f60d5536483c4c5a53dec88bdbead263
net: ena: fix surprise unplug NULL dereference kernel crash

BugLink: http://bugs.launchpad.net/bugs/1792044
Starting with driver version 1.5.0, in case of a surprise device
unplug, there is a race caused by invoking ena_destroy_device()
from two different places. As a result, the readless register might
be accessed after it was destroyed.

Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 772ed869f535b4ec2b134645c951ff22de4d3f79 linux-next)
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/net/ethernet/amazon/ena/ena_netdev.c