linux_dsm_epyc7002/drivers/media/platform
Stanimir Varbanov a200c72195 media: venus: hfi_parser: fix a regression in parser
This fixes the following data abort:

 Unable to handle kernel paging request at virtual address 0000078000000040
 Mem abort info:
   ESR = 0x96000004
   Exception class = DABT (current EL), IL = 32 bits
   SET = 0, FnV = 0
   EA = 0, S1PTW = 0
 Data abort info:
   ISV = 0, ISS = 0x00000004
   CM = 0, WnR = 0
 user pgtable: 4k pages, 48-bit VAs, pgdp = (____ptrval____)
 [0000078000000040] pgd=0000000000000000
 Internal error: Oops: 96000004 [#1] PREEMPT SMP
 Process irq/28-venus (pid: 292, stack limit = 0x(____ptrval____))
 CPU: 0 PID: 292 Comm: irq/28-venus Not tainted 5.2.0-rc1+ #60
 Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
 pstate: 60000005 (nZCv daif -PAN -UAO)
 pc : __memcpy+0x100/0x180
 lr : parse_caps+0x94/0xc0 [venus_core]
 sp : ffff0000114e3990
 x29: ffff0000114e3990 x28: ffff80003a7d0148
 x27: 00000000000df018 x26: ffff000008bd4618
 x25: 0000000000020003 x24: 0000078000000040
 x23: 0000000000000002 x22: 0000000000000002
 x21: ffff80003b9b8080 x20: 0000000000000008
 x19: ffff000010f59000 x18: 0000000000000000
 x17: 0000000000000000 x16: ffff80003c0f9b80
 x15: 0000000000000000 x14: 0100000100000002
 x13: 000000010020100b x12: 000000010000100a
 x11: 0000100000000040 x10: 0000100000000004
 x9 : 0000000000000000 x8 : ffff0000114e3bd8
 x7 : 0000000000000000 x6 : ffff0000114e39d8
 x5 : 0000000000000040 x4 : 0000000000000000
 x3 : 0000000000000010 x2 : 0000000000000000
 x1 : 0000078000000040 x0 : ffff0000114e39d8
 Call trace:
  __memcpy+0x100/0x180
  hfi_parser+0x23c/0x3b8 [venus_core]
  hfi_session_init_done+0x40/0x60 [venus_core]
  hfi_process_msg_packet+0xd4/0x1d8 [venus_core]
  venus_isr_thread+0x1e0/0x230 [venus_core]
  hfi_isr_thread+0x18/0x20 [venus_core]
  irq_thread_fn+0x28/0x78
  irq_thread+0x124/0x1c0
  kthread+0x124/0x128
  ret_from_fork+0x10/0x18
 Code: d503201f d503201f d503201f d503201f (a8c12027)
 ---[ end trace fd253ebaeea05ffc ]---
 genirq: exiting task "irq/28-venus" (292) is an active IRQ thread (irq 28)

by modifying structure members to flexible array members.

Fixes: ded7162671 media: hfi_parser: don't trick gcc with a wrong expected size

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-29 10:20:06 -04:00
..
am437x media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
atmel media: atmel: atmel-isc: fix asd memory allocation 2019-05-08 13:57:56 -04:00
cadence media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
cec-gpio media: cec-gpio: support 5v testing 2018-07-25 07:12:36 -04:00
coda media: coda: fix unset field and fail on invalid field in buf_prepare 2019-05-08 13:58:20 -04:00
cros-ec-cec media: cros-ec-cec: decrement HDMI device refcount 2019-04-22 13:14:44 -04:00
davinci media: davinci/vpbe: array underflow in vpbe_enum_outputs() 2019-05-08 14:02:25 -04:00
exynos4-is media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
exynos-gsc media: exynos-gsc: replace v4l2_crop by v4l2_selection 2018-11-20 13:46:06 -05:00
marvell-ccic media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
meson media: platform: meson: Add Amlogic Meson G12A AO CEC Controller driver 2019-04-22 13:16:05 -04:00
mtk-jpeg media: mtk-jpeg: Correct return type for mem2mem buffer helpers 2019-02-18 15:28:43 -05:00
mtk-mdp media: platform: fix several typos 2019-03-01 09:35:21 -05:00
mtk-vcodec media: mtk-vcodec: fix vp9 content playback error with show exist frame 2019-04-22 11:42:19 -04:00
mtk-vpu media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
omap media: omap_vout: potential buffer overflow in vidioc_dqbuf() 2019-05-08 13:58:49 -04:00
omap3isp media: platform: fix several typos 2019-03-01 09:35:21 -05:00
qcom media: venus: hfi_parser: fix a regression in parser 2019-05-29 10:20:06 -04:00
rcar-vin media: rcar-csi2: Propagate the FLD signal for NTSC and PAL 2019-05-08 13:59:49 -04:00
rockchip/rga media: platform: fix several typos 2019-03-01 09:35:21 -05:00
s3c-camif media: platform: fix several typos 2019-03-01 09:35:21 -05:00
s5p-cec media: s5p_cec: use new cec_notifier_parse_hdmi_phandle helper 2019-04-22 13:12:07 -04:00
s5p-g2d media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
s5p-jpeg media: platform: fix several typos 2019-03-01 09:35:21 -05:00
s5p-mfc Devicetree updates for v5.1: 2019-03-10 10:58:43 -07:00
seco-cec media: seco-cec: decrement HDMI device refcount 2019-04-22 13:14:24 -04:00
sti media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
stm32 media: stm32-dcmi: return appropriate error codes during probe 2019-04-30 13:48:14 -04:00
sunxi/sun6i-csi media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
tegra-cec media: tegra-cec: fix cec_notifier_parse_hdmi_phandle return check 2019-05-08 14:02:45 -04:00
ti-vpe media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
vicodec media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
vimc media: vimc: propagate pixel format in the stream 2019-04-22 10:58:51 -04:00
vivid media: vivid: use vfree() instead of kfree() for dev->bitmap_cap 2019-04-22 11:43:50 -04:00
vsp1 drm pull request for 5.2 2019-05-08 21:35:19 -07:00
xilinx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
aspeed-video.c media: platform: Aspeed: Make reserved memory optional 2019-04-30 13:50:47 -04:00
fsl-viu.c media: videobuf: use u64 for the timestamp internally 2019-02-07 12:11:19 -05:00
imx-pxp.c media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
imx-pxp.h media: imx-pxp: add i.MX Pixel Pipeline driver 2018-09-11 13:32:17 -04:00
Kconfig media: platform: meson: Add Amlogic Meson G12A AO CEC Controller driver 2019-04-22 13:16:05 -04:00
m2m-deinterlace.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
Makefile media: soc_camera: Move to the staging tree 2019-02-18 12:09:19 -05:00
mx2_emmaprp.c media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
pxa_camera.c media: pxa-camera: Match with device node, not the port node 2019-03-20 06:35:41 -04:00
rcar_drif.c media: rcar_drif: Remove devm_ioremap_resource() error printing 2019-03-19 13:44:38 -04:00
rcar_fdp1.c media: v4l: rcar_fdp1: Fix indentation oddities 2019-03-25 14:14:56 -04:00
rcar_jpu.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
rcar-fcp.c Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
renesas-ceu.c media: renesas-ceu: Use default mbus settings 2018-10-04 16:25:33 -04:00
sh_veu.c media: platform/sh_veu.c: remove redundant NULL pointer checks 2019-03-19 13:49:19 -04:00
sh_vou.c media: doc-rst: Fix broken references 2018-11-23 05:42:49 -05:00
via-camera.c media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
via-camera.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
video-mux.c media: video-mux: fix null pointer dereferences 2019-03-29 07:42:37 -04:00
vim2m.c media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00