mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] media: iris: port two packet size checks from venus
@ 2026-11-17 20:49 Hungyu Lin
  2026-11-17 20:49 ` [PATCH 1/2] media: iris: check the packet size after reading from shared memory Hungyu Lin
  2026-11-17 20:49 ` [PATCH 2/2] media: iris: fix out-of-bounds read in gen1 sequence change event Hungyu Lin
  0 siblings, 2 replies; 3+ messages in thread
From: Hungyu Lin @ 2026-11-17 20:49 UTC (permalink / raw)
  To: vikash.garodia, dikshita.agarwal
  Cc: abhinav.kumar, bod, mchehab, hverkuil, stefan.schmidt,
	linux-media, linux-arm-msm, linux-kernel, dennylin0707

venus got two fixes in May 2025 for packets that the firmware sends
through the shared queues:

  49befc830daa ("media: venus: Add a check for packet size after reading from shared memory")
  06d6770ff0d8 ("media: venus: Fix OOB read due to missing payload bound check")

The iris gen1 code has the same logic and has neither of them.

Patch 1 makes sure that the size field of a packet did not change while
the packet was copied out of the shared queue. Patch 2 uses that size to
bound the walk over the properties of a sequence change event.

Hungyu Lin (2):
  media: iris: check the packet size after reading from shared memory
  media: iris: fix out-of-bounds read in gen1 sequence change event

 .../qcom/iris/iris_hfi_gen1_response.c        | 73 ++++++++++++++-----
 .../media/platform/qcom/iris/iris_hfi_queue.c |  2 +
 2 files changed, 56 insertions(+), 19 deletions(-)


base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
-- 
2.43.0


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

end of thread, other threads:[~2026-11-17 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 20:49 [PATCH 0/2] media: iris: port two packet size checks from venus Hungyu Lin
2026-11-17 20:49 ` [PATCH 1/2] media: iris: check the packet size after reading from shared memory Hungyu Lin
2026-11-17 20:49 ` [PATCH 2/2] media: iris: fix out-of-bounds read in gen1 sequence change event Hungyu Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®