<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/block/bdev.c, branch v5.15</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.15</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.15'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2021-10-02T13:29:20Z</updated>
<entry>
<title>block: genhd: fix double kfree() in __alloc_disk_node()</title>
<updated>2021-10-02T13:29:20Z</updated>
<author>
<name>Tetsuo Handa</name>
<email>penguin-kernel@i-love.sakura.ne.jp</email>
</author>
<published>2021-10-02T09:23:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=06cc978d3ff226072780f74897800b33e78abb57'/>
<id>urn:sha1:06cc978d3ff226072780f74897800b33e78abb57</id>
<content type='text'>
syzbot is reporting use-after-free read at bdev_free_inode() [1], for
kfree() from __alloc_disk_node() is called before bdev_free_inode()
(which is called after RCU grace period) reads bdev-&gt;bd_disk and calls
kfree(bdev-&gt;bd_disk).

Fix use-after-free read followed by double kfree() problem
by making sure that bdev-&gt;bd_disk is NULL when calling iput().

Link: https://syzkaller.appspot.com/bug?extid=8281086e8a6fbfbd952a [1]
Reported-by: syzbot &lt;syzbot+8281086e8a6fbfbd952a@syzkaller.appspotmail.com&gt;
Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/e6dd13c5-8db0-4392-6e78-a42ee5d2a1c4@i-love.sakura.ne.jp
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: move fs/block_dev.c to block/bdev.c</title>
<updated>2021-09-07T14:39:40Z</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2021-09-07T14:13:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0dca4462ed0681649fdcd5700a6ddfbaa65fa178'/>
<id>urn:sha1:0dca4462ed0681649fdcd5700a6ddfbaa65fa178</id>
<content type='text'>
Move it together with the rest of the block layer.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/20210907141303.1371844-3-hch@lst.de
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
