OpenCloudOS-Kernel/drivers/isdn/hardware/mISDN
Zou Wei 009fc857c5 mISDN: fix possible use-after-free in HFC_cleanup()
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>
2021-05-11 16:12:46 -07:00
..
Kconfig isdn: Fix Kconfig indentation 2019-11-20 12:30:47 -08:00
Makefile isdn: hdlc: move into mISDN 2019-05-31 11:13:10 +02:00
avmfritz.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
hfc_multi.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hfc_multi_8xx.h treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
hfc_pci.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 153 2019-05-30 11:26:32 -07:00
hfcmulti.c mISDN: Use DEFINE_SPINLOCK() for spinlock 2021-03-30 13:34:42 -07:00
hfcpci.c mISDN: fix possible use-after-free in HFC_cleanup() 2021-05-11 16:12:46 -07:00
hfcsusb.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
hfcsusb.h isdn: hfcsusb: Spelling and grammar fixes 2019-10-28 13:42:36 -07:00
iohelper.h isdn: remove extra spaces in the header file 2021-03-11 18:23:55 -08:00
ipac.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 176 2019-05-30 11:29:19 -07:00
isar.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 176 2019-05-30 11:29:19 -07:00
isdnhdlc.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
isdnhdlc.h isdn: deprecate non-mISDN drivers 2019-06-02 17:48:58 -07:00
mISDNinfineon.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mISDNipac.c mISDN: fix crash in fritzpci 2021-03-11 18:23:13 -08:00
mISDNisar.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
netjet.c mISDN: switch from 'pci_' to 'dma_' API 2020-07-20 18:32:14 -07:00
netjet.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 176 2019-05-30 11:29:19 -07:00
speedfax.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 176 2019-05-30 11:29:19 -07:00
w6692.c Printk changes for 5.5 2019-11-25 19:40:40 -08:00
w6692.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 176 2019-05-30 11:29:19 -07:00