[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4fa33a28-7cda-47d8-be4c-238e022406e9@I-love.SAKURA.ne.jp>
Date: Sat, 23 Nov 2024 20:55:45 +0900
From: Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>
To: syzbot+97e301b4b82ae803d21b@...kaller.appspotmail.com,
syzkaller-bugs <syzkaller-bugs@...glegroups.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: kernel BUG in hfs_write_inode
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.12
fs/hfs/inode.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c
index a81ce7a740b9..794d710c3ae0 100644
--- a/fs/hfs/inode.c
+++ b/fs/hfs/inode.c
@@ -81,7 +81,7 @@ static bool hfs_release_folio(struct folio *folio, gfp_t mask)
tree = HFS_SB(sb)->cat_tree;
break;
default:
- BUG();
+ pr_warn("unexpected inode %lu at %s()\n", inode->i_ino, __func__);
return false;
}
@@ -305,7 +305,7 @@ static int hfs_test_inode(struct inode *inode, void *data)
case HFS_CDR_FIL:
return inode->i_ino == be32_to_cpu(rec->file.FlNum);
default:
- BUG();
+ pr_warn("unexpected type %u at %s()\n", rec->type, __func__);
return 1;
}
}
@@ -441,7 +441,7 @@ int hfs_write_inode(struct inode *inode, struct writeback_control *wbc)
hfs_btree_write(HFS_SB(inode->i_sb)->cat_tree);
return 0;
default:
- BUG();
+ pr_warn("unexpected inode %lu at %s()\n", inode->i_ino, __func__);
return -EIO;
}
}
--
2.47.0
Powered by blists - more mailing lists