Re: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-13 Thread Christian König
Subject: Re: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type On Thu, 12 Nov 2020 at 02:27, Ruhl, Michael J wrote: -Original Message- From: Thomas Zimmermann Sent: Wednesday, November 11, 2020 7:08 AM To: Ruhl, Michael J ; bske...@redhat.com; airl...@linux.ie; dan

RE: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-12 Thread Ruhl, Michael J
;> >; Dave Airlie ; Gerd Hoffmann >> >; Alex Deucher ; >> >VMware Graphics ; Roland >> >Scheidegger ; Huang Rui ; >> >Felix Kuehling ; Hawking Zhang >> >; Jason Gunthorpe ; Likun >Gao >> >; virtualizat...@lists.linux-foundation.org; spice- &g

Re: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-11 Thread Ben Skeggs
king Zhang > >; Jason Gunthorpe ; Likun Gao > >; virtualizat...@lists.linux-foundation.org; spice- > >de...@lists.freedesktop.org; amd-...@lists.freedesktop.org > >Subject: Re: [PATCH] drm/nouveau: Fix out-of-bounds access when > >deferencing MMU type > > > >Hi > >

RE: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-11 Thread Ruhl, Michael J
g; amd-...@lists.freedesktop.org >Subject: Re: [PATCH] drm/nouveau: Fix out-of-bounds access when >deferencing MMU type > >Hi > >Am 10.11.20 um 16:27 schrieb Ruhl, Michael J: >> >> >>> -Original Message- >>> From: Thomas Zimmermann >>>

Re: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-11 Thread Thomas Zimmermann
Hi Am 10.11.20 um 16:27 schrieb Ruhl, Michael J: > > >> -Original Message- >> From: Thomas Zimmermann >> Sent: Tuesday, November 10, 2020 8:37 AM >> To: bske...@redhat.com; airl...@linux.ie; dan...@ffwll.ch; Ruhl, Michael J >> ; christian.koe...@amd.com >> Cc:

RE: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-10 Thread Ruhl, Michael J
>-Original Message- >From: Thomas Zimmermann >Sent: Tuesday, November 10, 2020 8:37 AM >To: bske...@redhat.com; airl...@linux.ie; dan...@ffwll.ch; Ruhl, Michael J >; christian.koe...@amd.com >Cc: nouv...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; Thomas >Zimmermann ;

Re: [PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type

2020-11-10 Thread Christian König
Am 10.11.20 um 14:36 schrieb Thomas Zimmermann: The value of struct drm_device.ttm.type_vram can become -1 for unknown types of memory (see nouveau_ttm_init()). This leads to an out-of-bounds error when accessing struct nvif_mmu.type[]: [ 18.304116]