diff options
| author | Michael Bommarito <michael.bommarito@gmail.com> | 2026-06-16 22:19:03 -0400 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-09-07 09:01:05 +0200 |
| commit | b84f6533a8ed2fd7b282fc7ab4b8efadc745a89c (patch) | |
| tree | 33a591b1955c0612a6c93e023f3fb6df98bc43ec /scripts/Makefile.thinlto | |
| parent | 06236b094c899c22c12ac5097935eb6719293de8 (diff) | |
| download | linux-b84f6533a8ed2fd7b282fc7ab4b8efadc745a89c.tar.gz linux-b84f6533a8ed2fd7b282fc7ab4b8efadc745a89c.zip | |
media: verisilicon: rockchip: guard VPU981 AV1 divisor and tile buffer
rockchip_vpu981_av1_dec_set_tile_info() divides context_update_tile_id by
tile_info->tile_cols and writes one descriptor per tile into the tile_info
DMA buffer, which holds AV1_MAX_TILES entries; tile_cols and tile_rows
come from the bitstream. Guard the division against a zero tile_cols by
initialising the context-update values to zero and computing them only
when tile_cols is non-zero, and stop the descriptor writes once the
tile_info buffer is full. The tile geometry written to the hardware
registers is left unmodified; the per-dimension and total tile bounds are
enforced by the control validation.
Fixes: 727a400686a2 ("media: verisilicon: Add Rockchip AV1 decoder")
Assisted-by: Claude:claude-opus-4-8
Cc: stable@vger.kernel.org
Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
