Files
Pengpeng Hou 45585c3aa2 drm/imagination: clamp freelist reconstruction requests
The firmware reconstruction count controls accesses to the request's
fixed freelist ID array and the copy into the fixed response array.
Neither access currently bounds the count to those protocol arrays.

Clamp the count to the request capacity, which is shared by the response
layout, and use that count consistently for reconstruction and response
publication. Keep the firmware recovery exchange instead of dropping an
oversized request without a response, as discussed with the firmware
maintainer.

The issue was found by our static-analysis tool.

Fixes: 6eedddab73 ("drm/imagination: Implement free list and HWRT create and destroy ioctls")
Assisted-by: gpt 5
Signed-off-by: Pengpeng Hou <[email protected]>
Reviewed-by: Alessio Belle <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Brajesh Gupta <[email protected]>
2026-09-24 14:59:22 +05:30
..
…
…
…
…
2026-08-20 10:58:44 +10:00
…