Re: [PATCH] Fix use after free in get_tree_bdev()

2020-04-29 Thread Linus Torvalds
On Tue, Apr 28, 2020 at 11:06 PM Lukas Czerner wrote: > > This fixes the problem I was seeing. Thanks David. > > Reviewed-by: Lukas Czerner Well, it got applied as obvious before this, so the commit log won't show your testing. Commit dd7bc8158b41 ("Fix use after free in get_tree_bdev()") in

Re: [PATCH] Fix use after free in get_tree_bdev()

2020-04-29 Thread Lukas Czerner
On Tue, Apr 28, 2020 at 09:27:48PM +0100, David Howells wrote: > Commit 6fcf0c72e4b9, a fix to get_tree_bdev() put a missing blkdev_put() in > the wrong place, before a warnf() that displays the bdev under > consideration rather after it. > > This results in a silent lockup in printk("%pg")

[PATCH] Fix use after free in get_tree_bdev()

2020-04-28 Thread David Howells
Commit 6fcf0c72e4b9, a fix to get_tree_bdev() put a missing blkdev_put() in the wrong place, before a warnf() that displays the bdev under consideration rather after it. This results in a silent lockup in printk("%pg") called via warnf() from get_tree_bdev() under some circumstances when there's