[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 11 Nov 2019 09:03:17 -0300
From: Ezequiel Garcia <ezequiel@...labora.com>
To: Pan Bian <bianpan2016@....com>, Jacob Chen <jacob-chen@...wrt.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Heiko Stuebner <heiko@...ech.de>
Cc: linux-media@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] media: rockchip/rga: fix potential use after free
Hi Pan Bian,
Thanks for the patch.
On Mon, 2019-11-11 at 16:28 +0800, Pan Bian wrote:
> The variable vga->vfd is an alias for vfd. Therefore, releasing vfd and
> then unregister vga->vfd will lead to a use after free bug. In fact, the
> free operation and the unregister operation are reversed.
>
Out of curiosity, how did you find this potential bug?
Acked-by: Ezequiel Garcia <ezequiel@...labora.com>
Regards,
Ezequiel
Powered by blists - more mailing lists