summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2018-06-20 18:01:19 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-26 11:47:29 +0800
commitf44426346289fee0a5c4bb366583fea71da0b95d (patch)
tree8273e2d44b778bdd29fc87c070e0b2f781b498e8 /tools/perf/scripts/python/bin
parentf62252bf39445d4155c70871a8ce486f872d1442 (diff)
downloadkernel-f44426346289fee0a5c4bb366583fea71da0b95d.tar.gz
staging: rtl8188eu: Fix a possible sleep-in-atomic-context bug in rtw_disassoc_cmd()
The driver may sleep with holding a spinlock. The function call paths (from bottom to top) in Linux-4.16.7 are: [FUNC] kzalloc(GFP_KERNEL) drivers/staging/rtl8188eu/core/rtw_cmd.c, 502: kzalloc in rtw_disassoc_cmd drivers/staging/rtl8188eu/core/rtw_ioctl_set.c, 256: rtw_disassoc_cmd in rtw_set_802_11_ssid drivers/staging/rtl8188eu/core/rtw_ioctl_set.c, 235: spin_lock_bh in rtw_set_802_11_ssid [FUNC] kzalloc(GFP_KERNEL) drivers/staging/rtl8188eu/core/rtw_cmd.c, 502: kzalloc in rtw_disassoc_cmd drivers/staging/rtl8188eu/core/rtw_ioctl_set.c, 352: rtw_disassoc_cmd in rtw_set_802_11_infrastructure_mode drivers/staging/rtl8188eu/core/rtw_ioctl_set.c, 336: spin_lock_bh in rtw_set_802_11_infrastructure_mode To fix this bug, GFP_KERNEL is replaced with GFP_ATOMIC. This bug is found by my static analysis tool (DSAC-2) and checked by my code review. Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
n 2020-02-25docs: add a script to check sysctl docsStephen Kitt 2020-02-25docs: sysctl/kernel: document acpi_video_flagsStephen Kitt 2020-02-19docs: sysctl/kernel: remove rtsig entriesStephen Kitt 2020-02-19docs: document panic fully in sysctl/kernel.rstStephen Kitt 2020-02-19docs: document stop-a in sysctl/kernel.rstStephen Kitt 2020-02-19docs: add missing IPC documentation in sysctl/kernel.rstStephen Kitt 2020-02-19docs: drop l2cr from sysctl/kernel.rstStephen Kitt 2020-02-19docs: merge debugging-modules.txt into sysctl/kernel.rstStephen Kitt 2020-02-19docs: pretty up sysctl/kernel.rstStephen Kitt 2020-02-13docs: admin-guide: Add description of %c corename formatd.hatayama@fujitsu.com 2019-11-07docs: admin-guide: Remove threads-max auto-tuningMasanari Iida 2019-11-07docs: admin-guide: Fix min value of threads-max in kernel.rstMasanari Iida 2019-10-10docs: admin-guide: fix printk_ratelimit explanationOleksandr Natalenko 2019-08-08docs: admin-guide: remove references to IPX and token-ringStephen Hemminger 2019-07-15docs: admin-guide: add a series of orphaned documentsMauro Carvalho Chehab 2019-07-15docs: admin-guide: add laptops documentationMauro Carvalho Chehab 2019-07-15docs: admin-guide: move sysctl directory to itMauro Carvalho Chehab