Skip to content
Commit ca67881d authored by Jan Kara's avatar Jan Kara Committed by Greg Kroah-Hartman
Browse files

init: Initialize noop_backing_dev_info early

[ Upstream commit 4bca7e80 ]

noop_backing_dev_info is used by superblocks of various
pseudofilesystems such as kdevtmpfs. After commit 10e14073
("writeback: Fix inode->i_io_list not be protected by inode->i_lock
error") this broke because __mark_inode_dirty() started to access more
fields from noop_backing_dev_info and this led to crashes inside
locked_inode_to_wb_and_lock_list() called from __mark_inode_dirty().
Fix the problem by initializing noop_backing_dev_info before the
filesystems get mounted.

Fixes: 10e14073

 ("writeback: Fix inode->i_io_list not be protected by inode->i_lock error")
Reported-and-tested-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Reported-and-tested-by: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
Reported-and-tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 04cdec41
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment