[PATCH v2] drm: nv04: Fix out of bounds access

2024-04-11 Thread Mikhail Kobuk
DCB entry on a GeForce3 Ti 200.") Signed-off-by: Mikhail Kobuk --- Changes in v2: - Instead of checking ffs(dcb->or), adjust function calls to match argument semantics - Link to v1: https://lore.kernel.org/all/20240331064552.6112-1-m.ko...@ispras.ru/ drivers/gpu/drm/nouveau/nouveau_b

Re: [PATCH] drm: nv04: Add check to avoid out of bounds access

2024-04-10 Thread Mikhail Kobuk
On 08/04/2024 16:23, Danilo Krummrich wrote: On 4/5/24 22:05, Lyude Paul wrote: On Fri, 2024-04-05 at 17:53 +0200, Danilo Krummrich wrote: On 3/31/24 08:45, Mikhail Kobuk wrote: Output Resource (dcb->or) value is not guaranteed to be non-zero (i.e. in drivers/gpu/drm/nouveau/nouveau_bio

[PATCH] drm: nv04: Add check to avoid out of bounds access

2024-03-31 Thread Mikhail Kobuk
ification Center (linuxtesting.org) with SVACE. Fixes: 2e5702aff395 ("drm/nouveau: fabricate DCB encoder table for iMac G4") Signed-off-by: Mikhail Kobuk --- drivers/gpu/drm/nouveau/dispnv04/dac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/d