]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
lan78xx: Crash in lan78xx_writ_reg (Workqueue: events lan78xx_deferred_multicast_write)
authorRaghuram Chary J <raghuramchary.jallipalli@microchip.com>
Tue, 27 Mar 2018 09:21:16 +0000 (14:51 +0530)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 12 Apr 2018 13:06:44 +0000 (10:06 -0300)
commit2868f10a2acfcadaefe260f303b221c79c649207
tree411ed5e2e2e69a830d29ac9b0b12a37d23c04e64
parent56244bf89ece43cd86dd98b4b7c33784195fd719
lan78xx: Crash in lan78xx_writ_reg (Workqueue: events lan78xx_deferred_multicast_write)

BugLink: http://bugs.launchpad.net/bugs/1763366
[ Upstream commit 2d2d99ec13f62d5d2cecb6169dfdb6bbe05356d0 ]

Description:
Crash was reported with syzkaller pointing to lan78xx_write_reg routine.

Root-cause:
Proper cleanup of workqueues and init/setup routines was not happening
in failure conditions.

Fix:
Handled the error conditions by cleaning up the queues and init/setup
routines.

Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Raghuram Chary J <raghuramchary.jallipalli@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/usb/lan78xx.c