linux-hardened/drivers/media
Jia-Ju Bai df8ab4c601 media: bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_save_request
The driver may sleep under a spinlock.
The function call path is:
bdisp_device_run (acquire the spinlock)
  bdisp_hw_update
    bdisp_hw_save_request
      devm_kzalloc(GFP_KERNEL) --> may sleep

To fix it, GFP_KERNEL is replaced with GFP_ATOMIC.

This bug is found by my static analysis tool(DSAC) and checked by my code review.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-18 15:02:48 -05:00
..
cec media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
common media: v4l2-tpg.h: rename color structs 2017-12-18 12:29:05 -05:00
dvb-core media: dvb_demux: describe nested structs 2017-12-18 09:05:04 -05:00
dvb-frontends media: dvb-frontends: fix i2c access helpers for KASAN 2017-12-15 11:53:50 -05:00
firewire
i2c media: v4l2-subdev: better document IO pin configuration flags 2017-12-18 14:14:29 -05:00
mmc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci media: v4l2-subdev: better document IO pin configuration flags 2017-12-18 14:14:29 -05:00
platform media: bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_save_request 2017-12-18 15:02:48 -05:00
radio media: radio-si476x: fix behavior when seek->range* are defined 2017-12-11 13:04:51 -05:00
rc media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: r820t: fix r820t_write_reg for KASAN 2017-12-15 11:53:45 -05:00
usb media: pvrusb2: correctly return V4L2_PIX_FMT_MPEG in enum_fmt 2017-12-18 15:01:23 -05:00
v4l2-core media: vb2: unify calling of set_page_dirty_lock 2017-12-18 15:02:08 -05:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00