Re: [PATCH] btrfs: use after free when closing devices

From: David Sterba
Date: Wed May 13 2015 - 12:25:16 EST


On Tue, May 12, 2015 at 07:31:37PM -0400, Sasha Levin wrote:
> __btrfs_close_devices() would call_rcu to free the device, which is racy with
> list_for_each_entry() accessing the memory to retrieve the next device on the
> list.
>
> Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/