Re: [PATCH v2] media: rockchip/rga: fix potential use after free
From: Ezequiel Garcia
Date: Mon Nov 11 2019 - 07:03:29 EST
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@xxxxxxxxxxxxx>
Regards,
Ezequiel