Repository navigation
media: apple: avd: check the AV1 tile entries before using them - #1090
Merged
RyanTheTide merged 1 commit intoNov 7, 2026
Merged
RyanTheTide merged 1 commit into
RyanTheTide merged 1 commit into
Conversation
The tile group control is user data. A request with fewer entries than the frame has tiles made avd-av1 read past the array, and an entry past the coded data sent the engine to wild addresses: DART faults, a frame timeout, then recovery. Chromium's VA path hit this with 8 tiles and 1 entry on an M4 Max. Refuse such a request. Signed-off-by: AxxzyWasTaken <[email protected]>
Contributor
|
Merge train 11-07: thanks. The check is right, but the production preamble now calls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The AV1 tile group control is user data. With fewer entries than the frame has tiles, avd-av1 read past the array. An entry past the coded data sent the engine to wild addresses: DART faults, a frame timeout, then recovery. This refuses such a request.
Chromium's VA path hit this on my M4 Max with 8 tiles and 1 entry. The VA driver's own bug is a separate fix.
Tested: on the J616C with Helium AV1 and ffmpeg, as part of the out-of-tree module. This version is compile-tested on
integration/aurora. No KUnit test added.