Re: [PATCH] drm/vc4: hvs: Fix buffer overflow with the dlist handling

2021-02-03 Thread Maxime Ripard
On Fri, Jan 29, 2021 at 05:06:47PM +0100, Maxime Ripard wrote: > Commit 0a038c1c29a7 ("drm/vc4: Move LBM creation out of > vc4_plane_mode_set()") changed the LBM allocation logic from first > allocating the LBM memory for the plane to running mode_set, > adding a gap in the LBM, and then running th

Re: [PATCH] drm/vc4: hvs: Fix buffer overflow with the dlist handling

2021-02-02 Thread Dave Stevenson
Hi Maxime On Fri, 29 Jan 2021 at 16:07, Maxime Ripard wrote: > > Commit 0a038c1c29a7 ("drm/vc4: Move LBM creation out of > vc4_plane_mode_set()") changed the LBM allocation logic from first > allocating the LBM memory for the plane to running mode_set, > adding a gap in the LBM, and then running

Re: [PATCH] drm/vc4: hvs: Fix buffer overflow with the dlist handling

2021-02-02 Thread Thomas Zimmermann
Am 29.01.21 um 17:06 schrieb Maxime Ripard: Commit 0a038c1c29a7 ("drm/vc4: Move LBM creation out of vc4_plane_mode_set()") changed the LBM allocation logic from first allocating the LBM memory for the plane to running mode_set, adding a gap in the LBM, and then running the dlist allocation fill

[PATCH] drm/vc4: hvs: Fix buffer overflow with the dlist handling

2021-01-30 Thread Maxime Ripard
Commit 0a038c1c29a7 ("drm/vc4: Move LBM creation out of vc4_plane_mode_set()") changed the LBM allocation logic from first allocating the LBM memory for the plane to running mode_set, adding a gap in the LBM, and then running the dlist allocation filling that gap. The gap was introduced by increme