Re: [PATCH] drm/kmb: Avoid warnings on impossible plane_id

2021-09-07 Thread Kees Cook
On Tue, Sep 07, 2021 at 05:32:53PM +, Chrisanthus, Anitha wrote: > Hi Kees, > This patch > https://patchwork.kernel.org/project/dri-devel/patch/20210728003126.1425028-13-anitha.chrisant...@intel.com/ > is pushed to drm-misc-fixes. This change should fix the below warnings. > > I apologize fo

RE: [PATCH] drm/kmb: Avoid warnings on impossible plane_id

2021-09-07 Thread Chrisanthus, Anitha
ednesday, August 25, 2021 11:18 AM > > To: Chrisanthus, Anitha > > Cc: Kees Cook ; Dea, Edmund J > > ; David Airlie ; Daniel Vetter > > ; dri-devel@lists.freedesktop.org; Sam Ravnborg > > ; linux-ker...@vger.kernel.org; linux- > > harden...@vger

RE: [PATCH] drm/kmb: Avoid warnings on impossible plane_id

2021-08-25 Thread Chrisanthus, Anitha
tter > ; dri-devel@lists.freedesktop.org; Sam Ravnborg > ; linux-ker...@vger.kernel.org; linux- > harden...@vger.kernel.org > Subject: [PATCH] drm/kmb: Avoid warnings on impossible plane_id > > KMB_MAX_PLANES is defined as 1, yet kmb_plane_atomic_disable() had code > for wri

[PATCH] drm/kmb: Avoid warnings on impossible plane_id

2021-08-25 Thread Kees Cook
KMB_MAX_PLANES is defined as 1, yet kmb_plane_atomic_disable() had code for writing beyond 1. It is gated by a WARN_ON() that would skip it, though, but under some compiler versions, poor Dead Code Elimination wasn't optimizing away the unused switch cases, leading to array bounds warnings when bui