[lvc-project] [PATCH] drm/meson: fix NULL pointer dereference in meson_drv_bind_master()

Fedor Pchelkin pchelkin at ispras.ru
Sat Nov 14 13:17:07 MSK 2026


On Wed, 11. Nov 12:16, Rand Deeb wrote:
> If the allocation of priv fails, meson_drv_bind_master() jumps to the
> free_drm label, which calls meson_encoder_{dsi,hdmi,cvbs}_remove() with
> a NULL priv. These functions dereference priv, so the error path oopses
> instead of returning -ENOMEM.
> 
> Only the drm device has been allocated at that point, so put it and
> return directly.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> Compile tested only.
> 
> Fixes: 6a044642988b ("drm/meson: fix unbind path if HDMI fails to bind")
> Signed-off-by: Rand Deeb <rand.sec96 at gmail.com>
> ---

В lvc-ветках это должно быть исправлено коммитом с названием

  drm/meson: add check to prevent dereference of NULL

Для текущих релизов это
https://git.linuxtesting.ru/pub/scm/linux/kernel/git/lvc/linux-stable.git/commit/?h=linux-6.1-lvc&id=c6f8847e3a2de211396b9e43e559db8a46abf869
https://git.linuxtesting.ru/pub/scm/linux/kernel/git/lvc/linux-stable.git/commit/?h=linux-6.12-lvc&id=c2c1819f57e0eb601c257d5e3e89a54e3c2b4b08

Отразить в свейсере статус исправления, принятого только в lvc-ветки, и
таким образом закрыть для себя задачу можете согласно
https://gitlab.linuxtesting.ru/lvc/guides/-/blob/master/lvc_kernel/lvc_patch_process.md#отражение-статуса-исправлений-в-svacer




More information about the lvc-project mailing list