media: iris: port two packet size checks from venus
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | media: iris: check the packet size after reading from shared memorydrivers/ | +2 | 1 reply | |
| 2/2 | media: iris: fix out-of-bounds read in gen1 sequence change eventdrivers/ | +54 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] media: iris: port two packet size checks from venus
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
Signature · 1 line
2.43.0