linux/drivers/staging
Ricardo Ribalda 4121def7df media: staging/intel-ipu3: Fix race condition during set_fmt
commit dccfe25487 upstream.

Do not modify imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp, until the
format has been correctly validated.

Otherwise, even if we use a backup variable, there is a period of time
where imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp might have an invalid
value that can be used by other functions.

Cc: stable@vger.kernel.org
Fixes: ad91849996 ("media: staging/intel-ipu3: Fix set_fmt error handling")
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-11 14:47:38 +02:00
..
android
axis-fifo
board
clocking-wizard
comedi staging: comedi: cb_pcidas64: fix request_irq() warn 2021-04-07 15:00:05 +02:00
emxx_udc
fbtft
fieldbus staging: fieldbus: anybuss: jump to correct label in an error path 2020-10-27 13:24:51 +01:00
fsl-dpaa2
fwserial staging: fwserial: Fix error handling in fwserial_create 2021-03-07 12:34:08 +01:00
gasket staging: gasket: interrupt: fix the missed eventfd_ctx_put() in gasket_interrupt.c 2020-12-30 11:53:10 +01:00
gdm724x staging: gdm724x: Fix DMA from stack 2021-03-04 11:38:33 +01:00
goldfish
greybus staging: greybus: audio: Fix possible leak free widgets in gbaudio_dapm_free_controls 2020-12-30 11:53:39 +01:00
gs_fpgaboot
hikey9xx staging: spmi: hisi-spmi-controller: Fix some error handling paths 2021-01-19 18:27:25 +01:00
iio
kpc2000
ks7010 staging: ks7010: prevent buffer overflow in ks_wlan_set_scan() 2021-03-17 17:06:32 +01:00
media media: staging/intel-ipu3: Fix race condition during set_fmt 2021-05-11 14:47:38 +02:00
most staging: most: sound: add sanity check for function argument 2021-03-07 12:34:10 +01:00
mt7621-dma staging/mt7621-dma: mtk-hsdma.c->hsdma-mt7621.c 2021-03-04 11:38:33 +01:00
mt7621-dts
mt7621-pci staging: mt7621-pci: avoid to request pci bus resources 2020-11-06 11:11:28 +01:00
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon staging: octeon: Drop on uncorrectable alignment or FCS error 2020-10-27 13:18:50 +01:00
octeon-usb
olpc_dcon
pi433
qlge Staging / IIO driver updates for 5.10-rc1 2020-10-15 09:46:23 -07:00
ralink-gdma staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK 2020-11-06 11:12:49 +01:00
rtl8188eu staging: rtl8188eu: fix potential memory corruption in rtw_check_beacon_data() 2021-03-17 17:06:31 +01:00
rtl8192e staging: rtl8192e: Change state information from u16 to u8 2021-04-07 15:00:13 +02:00
rtl8192u staging: rtl8192u: fix ->ssid overflow in r8192_wx_set_scan() 2021-03-17 17:06:31 +01:00
rtl8712 staging: rtl8712: Fix possible buffer overflow in r8712_sitesurvey_cmd 2021-03-17 17:06:32 +01:00
rtl8723bs staging: rtl8723bs: wifi_regd.c: Fix incorrect number of regulatory rules 2021-03-04 11:37:26 +01:00
rts5208
sm750fb
unisys
vc04_services staging: bcm2835-audio: Replace unsafe strcpy() with strscpy() 2021-03-07 12:34:10 +01:00
vme
vt6655
vt6656
wfx staging: wfx: fix possible panic with re-queued frames 2021-03-04 11:37:28 +01:00
wlan-ng
Kconfig
Makefile