mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
vfs: show filesystem name at dump_inode()
Commit8b17e54096("vfs: add initial support for CONFIG_DEBUG_VFS") added dump_inode(), but dump_inode() currently reports only raw pointer address. Comment says that adding a proper inode dumping routine is a TODO. However, syzkaller concurrently tests multiple filesystems, and several filesystems started calling dump_inode() due to hitting VFS_BUG_ON_INODE() added by commitaf153bb63a("vfs: catch invalid modes in may_open()") before a proper inode dumping routine is implemented. Show filesystem name at dump_inode() so that we can find which filesystem has passed an invalid mode to may_open() from syzkaller's crash reports. Link: https://syzkaller.appspot.com/bug?extid=895c23f6917da440ed0d Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Link: https://lore.kernel.org/ceaf4021-65cc-422e-9d0e-6afa18dd8276@I-love.SAKURA.ne.jp Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner
parent
708c04a5c2
commit
ecb0605364
@@ -2913,7 +2913,7 @@ EXPORT_SYMBOL(mode_strip_sgid);
|
||||
*/
|
||||
void dump_inode(struct inode *inode, const char *reason)
|
||||
{
|
||||
pr_warn("%s encountered for inode %px", reason, inode);
|
||||
pr_warn("%s encountered for inode %px (%s)\n", reason, inode, inode->i_sb->s_type->name);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(dump_inode);
|
||||
|
||||
Reference in New Issue
Block a user