Skip to content
Commit a6ef5dc7 authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

drm/vc4: Prevent load tracking from breaking FKMS



Firmware KMS uses a mixture of VC4 processing and dedicated code. The
load tracking support in VC4 assumes it is dealing with vc4_plane_state
objects when up-casting with container_of, but FKMS uses unadorned
drm_plane_state structures causing the VC4 code to read off the end
into random portions of memory. Work around the problem in a minimally-
invasive way by over-allocating the FKMS plane state structures to be
large enough to contain a vc4_plane_state, filling the remainder with
zeroes.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent 058c5de4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment