[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <dfd2f320-4f33-4638-ad5c-891e00eaf45a@kernel.org>
Date: Fri, 13 Jun 2025 17:46:17 +0200
From: Danilo Krummrich <dakr@...nel.org>
To: Zhi Wang <zhiw@...dia.com>
Cc: lyude@...hat.com, airlied@...il.com, simona@...ll.ch,
dri-devel@...ts.freedesktop.org, nouveau@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, acurrid@...dia.com, cjia@...dia.com,
smitra@...dia.com, aniketa@...dia.com, arpitj@...dia.com,
kwankhede@...dia.com, targupta@...dia.com, zhiwang@...nel.org
Subject: Re: [PATCH v2] drm/nouveau: fix a use-after-free in
r535_gsp_rpc_push()
On 5/27/25 6:37 PM, Zhi Wang wrote:
> The RPC container is released after being passed to r535_gsp_rpc_send().
>
> When sending the initial fragment of a large RPC and passing the
> caller's RPC container, the container will be freed prematurely. Subsequent
> attempts to send remaining fragments will therefore result in a
> use-after-free.
>
> Allocate a temporary RPC container for holding the initial fragment of a
> large RPC when sending. Free the caller's container when all fragments
> are successfully sent.
>
> Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
> Signed-off-by: Zhi Wang <zhiw@...dia.com>
Applied to drm-misc-fixes, thanks!
Powered by blists - more mailing lists