[PATCH 0/2] media: verisilicon: av1: Fix two reference reads
From: Arun Iyengar via B4 Relay
Date: Sun Nov 15 2026 - 03:59:27 EST
The RK3588 AV1 decoder (VPU981) can read a CAPTURE buffer freed with
VIDIOC_REMOVE_BUFS (patch 1), and reads the segmentation map past the
end of a smaller reference after a switch to a larger CAPTURE format
(patch 2).
Found by code review; neither was reproduced. Tested on an Orange Pi 5
(RK3588S), 7.3-based tree with these patches: fluster AV1 test vectors,
no new failures.
Developed with Claude (Anthropic), which wrote the code and the commit
messages. I reviewed every change.
---
Arun Iyengar (2):
media: verisilicon: av1: Find the reference buffers by timestamp
media: verisilicon: av1: Read the segmentation map at the reference's offset
drivers/media/platform/verisilicon/hantro_hw.h | 1 -
.../verisilicon/rockchip_vpu981_hw_av1_dec.c | 45 +++++++++++++---------
2 files changed, 26 insertions(+), 20 deletions(-)
---
base-commit: 48fe5a7834cc10081887d7bcd9ff0a4cadc3fa8c
change-id: 20261114-b4-vpu981-av1-refs-d9419af12e0d
Best regards,
--
Arun Iyengar <aiyengar1990@xxxxxxxxx>