public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <aa9SERLWzDdfA9Ih@Bertha>]
[parent not found: <aQGA0rVKnoH3PDXh@Bertha>]
[parent not found: <aQGALTpEwjtSrAJD@Bertha>]
* Re: [syzbot] kernel BUG in hfs_write_inode
@ 2025-10-02 16:16 George Anthony Vernon
  2025-10-02 16:31 ` [syzbot] [hfs?] " syzbot
  0 siblings, 1 reply; 10+ messages in thread
From: George Anthony Vernon @ 2025-10-02 16:16 UTC (permalink / raw)
  To: syzbot
  Cc: damien.lemoal, jlayton, linux-fsdevel, linux-kernel,
	syzkaller-bugs, willy

On Fri, Nov 25, 2022 at 01:45:41AM -0800, syzbot wrote:
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    65762d97e6fa Merge branch 'for-next/perf' into for-kernelci
> git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
> console output: https://syzkaller.appspot.com/x/log.txt?x=14e324e3880000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=56d0c7c3a2304e8f
> dashboard link: https://syzkaller.appspot.com/bug?extid=97e301b4b82ae803d21b
> compiler:       Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
> userspace arch: arm64
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=10983553880000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13315ebb880000
> 
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/52f702197b30/disk-65762d97.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/72189c2789ce/vmlinux-65762d97.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/ec0349196c98/Image-65762d97.gz.xz
> mounted in repro: https://storage.googleapis.com/syzbot-assets/6bfea2266b7f/mount_0.gz
> 
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+97e301b4b82ae803d21b@syzkaller.appspotmail.com
> 

I simplified the reproducer previously while working on a patch for this bug and found it no longer reproduces on mainline. I just want to sanity check this by testing mainline with syzbot's repro:

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.17

Thanks,

George

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: kernel BUG in hfs_write_inode
@ 2024-11-23 11:55 Tetsuo Handa
  2024-11-23 12:32 ` [syzbot] [hfs?] " syzbot
  0 siblings, 1 reply; 10+ messages in thread
From: Tetsuo Handa @ 2024-11-23 11:55 UTC (permalink / raw)
  To: syzbot+97e301b4b82ae803d21b, syzkaller-bugs, LKML

#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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-03-11 21:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <abHVInyhvToCSWjV@Bertha>
2026-03-11 21:11 ` [syzbot] [hfs?] kernel BUG in hfs_write_inode syzbot
     [not found] <aa9SERLWzDdfA9Ih@Bertha>
2026-03-09 23:28 ` syzbot
     [not found] <aQGA0rVKnoH3PDXh@Bertha>
2025-10-29  4:00 ` syzbot
     [not found] <aQGALTpEwjtSrAJD@Bertha>
2025-10-29  2:47 ` syzbot
2025-10-02 16:16 [syzbot] " George Anthony Vernon
2025-10-02 16:31 ` [syzbot] [hfs?] " syzbot
2025-10-02 23:55   ` George Anthony Vernon
2025-10-03  0:18     ` syzbot
2025-10-03  1:03       ` George Anthony Vernon
2025-10-03  1:27         ` syzbot
  -- strict thread matches above, loose matches on Subject: below --
2024-11-23 11:55 Tetsuo Handa
2024-11-23 12:32 ` [syzbot] [hfs?] " syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox