syzbot


kernel BUG in hfs_write_inode

Status: upstream: reported C repro on 2022/11/26 01:52
Subsystems: hfs
[Documentation on labels]
Reported-by: syzbot+18d7841cd16056041b58@syzkaller.appspotmail.com
First crash: 682d, last: 581d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in hfs_write_inode origin:upstream C 2746 9h19m 553d 0/3 upstream: reported C repro on 2023/04/04 07:01
linux-4.14 kernel BUG in hfs_write_inode hfs C 3 583d 675d 0/1 upstream: reported C repro on 2022/12/02 20:03
linux-5.15 kernel BUG in hfs_write_inode origin:upstream C error 2955 3h21m 547d 0/3 upstream: reported C repro on 2023/04/10 13:50
upstream kernel BUG in hfs_write_inode hfs C error 19807 41m 683d 0/28 upstream: reported C repro on 2022/11/25 09:45

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
------------[ cut here ]------------
kernel BUG at fs/hfs/inode.c:441!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 686 Comm: kworker/u4:3 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: writeback wb_workfn (flush-7:0)
RIP: 0010:hfs_write_inode+0x4f2/0x930 fs/hfs/inode.c:441
Code: ae 7d 88 4c 89 ef e8 ed f7 63 ff 49 83 fd 03 0f 84 95 00 00 00 49 83 fd 04 74 11 49 83 fd 02 0f 84 ed fb ff ff e8 1e f6 63 ff <0f> 0b e8 17 f6 63 ff 48 8d 7d 28 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffff8880b428f7b8 EFLAGS: 00010293
RAX: ffff8880b4280340 RBX: 1ffff11016851ef9 RCX: ffffffff81fe8f33
RDX: 0000000000000000 RSI: ffffffff81fe8f52 RDI: 0000000000000007
RBP: ffff8880953c0700 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff887dcd20 R15: ffff8880953c0728
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4e6e0c8008 CR3: 00000000a11dc000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 write_inode fs/fs-writeback.c:1244 [inline]
 __writeback_single_inode+0x733/0x11d0 fs/fs-writeback.c:1442
 writeback_sb_inodes+0x537/0xef0 fs/fs-writeback.c:1647
 wb_writeback+0x28d/0xcc0 fs/fs-writeback.c:1820
 wb_do_writeback fs/fs-writeback.c:1965 [inline]
 wb_workfn+0x29b/0x1250 fs/fs-writeback.c:2006
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 91554132b03d0b49 ]---
RIP: 0010:hfs_write_inode+0x4f2/0x930 fs/hfs/inode.c:441
Code: ae 7d 88 4c 89 ef e8 ed f7 63 ff 49 83 fd 03 0f 84 95 00 00 00 49 83 fd 04 74 11 49 83 fd 02 0f 84 ed fb ff ff e8 1e f6 63 ff <0f> 0b e8 17 f6 63 ff 48 8d 7d 28 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffff8880b428f7b8 EFLAGS: 00010293
RAX: ffff8880b4280340 RBX: 1ffff11016851ef9 RCX: ffffffff81fe8f33
RDX: 0000000000000000 RSI: ffffffff81fe8f52 RDI: 0000000000000007
RBP: ffff8880953c0700 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff887dcd20 R15: ffff8880953c0728
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4e6e0cd000 CR3: 00000000a11dc000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/27 00:52 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/11/26 01:52 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/03/06 20:53 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/03/04 13:01 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/02/27 12:42 linux-4.19.y 3f8a27f9e27b 9189cb53 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/02/18 15:55 linux-4.19.y 3f8a27f9e27b d02e9a70 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/02/09 22:22 linux-4.19.y 3f8a27f9e27b 07980f9d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/02/02 05:19 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/28 17:17 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/28 12:03 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/19 02:38 linux-4.19.y 3f8a27f9e27b 4620c2d9 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/13 13:43 linux-4.19.y 3f8a27f9e27b 96166539 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/11 07:43 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/11 06:08 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/08 02:53 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/07 18:02 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2023/01/06 23:24 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/12/31 11:29 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/12/27 03:31 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/12/25 02:36 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/12/12 09:47 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/12/10 19:20 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/12/03 10:02 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
2022/12/03 03:01 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in hfs_write_inode
* Struck through repros no longer work on HEAD.