Skip to content

drm: Fix UB in drm_plane_mask() for >32 planes#48

Open
USAVault wants to merge 1 commit into
cixtech:mainfrom
USAVault:drm-plain-mask-u64
Open

drm: Fix UB in drm_plane_mask() for >32 planes#48
USAVault wants to merge 1 commit into
cixtech:mainfrom
USAVault:drm-plain-mask-u64

Conversation

@USAVault

@USAVault USAVault commented Jul 14, 2026

Copy link
Copy Markdown

When linlondp driver registers 40 planes, a plane with index >= 32 triggers shift-out-of-bounds UB

Patch 00101-drm-linlondp-merge-updates-from-26q2.patch already attempted a partial fix, but never changed the struct field or the mask function itself
Patch 1009-linlondp-fix-WERROR.patch then reverted %llx back to %x, likely to suppress a -Wformat -Werror since plane_mask was still u32, leaving the UB unfixed

@USAVault USAVault changed the title Fix undefined behaviour in drm_plane_mask() for >32 planes drm: Fix undefined behaviour in drm_plane_mask() for >32 planes Jul 14, 2026
@USAVault USAVault changed the title drm: Fix undefined behaviour in drm_plane_mask() for >32 planes drm: Fix UB in drm_plane_mask() for >32 planes Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant