kernel_optimize_test/drivers/atm
Zou Wei a7f7c42e31 atm: nicstar: Fix possible use-after-free in nicstar_cleanup()
[ Upstream commit 34e7434ba4e97f4b85c1423a59b2922ba7dff2ea ]

This module's remove path calls del_timer(). However, that function
does not wait until the timer handler finishes. This means that the
timer handler may still be running after the driver's remove function
has finished, which would result in a use-after-free.

Fix by calling del_timer_sync(), which makes sure the timer handler
has finished, and unable to re-schedule itself.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-19 09:44:38 +02:00
..
.gitignore
adummy.c
ambassador.c
ambassador.h
atmtcp.c atm: atmtcp: Constify atmtcp_v_dev_ops 2020-09-28 16:03:30 -07:00
eni.c atm: eni: dont release is never initialized 2021-03-30 14:31:48 +02:00
eni.h
firestream.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-09-03 18:50:48 -07:00
firestream.h
fore200e.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
fore200e.h
he.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
he.h
horizon.c
horizon.h
idt77105.c atm: idt77252: fix null-ptr-dereference 2021-03-30 14:31:50 +02:00
idt77105.h
idt77252_tables.h
idt77252.c atm: idt77252: call pci_disable_device() on error path 2021-01-12 20:18:09 +01:00
idt77252.h
iphase.c atm: iphase: fix possible use-after-free in ia_module_exit() 2021-07-19 09:44:38 +02:00
iphase.h
Kconfig
lanai.c atm: lanai: dont run lanai_dev_close if not open 2021-03-30 14:31:48 +02:00
Makefile
midway.h
nicstar.c atm: nicstar: Fix possible use-after-free in nicstar_cleanup() 2021-07-19 09:44:38 +02:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c atm: uPD98402: fix incorrect allocation 2021-03-30 14:31:50 +02:00
uPD98402.h
zatm.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
zatm.h
zeprom.h