All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] media: iris: Fix out-of-bounds read in timestamp metadata fallback
@ 2026-10-17 14:57 Birk Skyum
  0 siblings, 0 replies; 4+ messages in thread
From: Birk Skyum @ 2026-10-17 14:57 UTC (permalink / raw)
  To: Vishnu Reddy
  Cc: Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Hans Verkuil,
	Stefan Schmidt, linux-media, linux-arm-msm, linux-kernel, stable

On Sat, 17 Oct 2026 08:55:04 +0530, Vishnu Reddy wrote:
> If iris_get_ts_metadata() finds no matching timestamp in that window,
> its fallback reads inst->tss[32], one entry past the end of the array.

I hit the same report on a Lenovo Yoga Slim 7x (X1E80100) while playing
video in Chromium, and it reproduces on demand: decoding a 64-frame
H.264 clip with ffmpeg's h264_v4l2m2m triggers it at the end of the
stream, while clips of 30 to 63 frames do not:

  UBSAN: array-index-out-of-bounds in drivers/media/platform/qcom/iris/iris_buffer.c:932:26
  index 32 is out of range for type 'iris_ts_metadata [32]'

With this patch on 7.2.8, 22 decodes of 30 to 192 frames (64, 96, 128,
160 and 192 among them) gave no report, and the 64- and 96-frame
decodes match a software decode frame for frame, timestamps included.

Tested-by: Birk Skyum <birk.skyum@pm.me> # Lenovo Yoga Slim 7x (X1E80100)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-15 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <MHYjgQwKyl4g6PykXAKsc_qby-VHmaZ8ZyKEoTM1Fpmve-Cg_dUJaQT0a2MReqplHxr4JLS7xunPQ6qB5AlxVg==@protonmail.internalid>
2026-10-17  3:25 ` [PATCH] media: iris: Fix out-of-bounds read in timestamp metadata fallback Vishnu Reddy
2026-11-13 18:17   ` Deepa Guthyappa Madivalara
2026-11-15 12:54   ` Bryan O'Donoghue
2026-10-17 14:57 Birk Skyum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.