Re: bdi: fix use-after-free for dev_name(bdi->dev) v3 (resend)

From: Ming Lei
Date: Thu May 07 2020 - 03:44:50 EST


On Mon, May 04, 2020 at 02:47:52PM +0200, Christoph Hellwig wrote:
> Hi Jens,
>
> can you pick up this series?
>
> the first three patches are my take on the proposal from Yufen Yu
> to fix the use after free of the device name of the bdi device.
>
> The rest is vaguely related cleanups.
>
> Changes since v2:
> - switch vboxsf to a shorter bdi name
>
> Changes since v1:
> - use a static dev_name buffer inside struct backing_dev_info
>

Looks fine:

Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx>

--
Ming