syzbot


WARNING in hfsplus_cat_write_inode

Status: fixed on 2023/06/26 14:47
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+f38e4d4c584d28d53c86@syzkaller.appspotmail.com
Fix commit: 48960a503fce fs: hfsplus: remove WARN_ON() from hfsplus_cat_{read,write}_inode()
First crash: 609d, last: 549d
Fix bisection: fixed by (bisect log) :
commit 48960a503fcec76d3f72347b7e679dda08ca43be
Author: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Tue Apr 11 10:57:33 2023 +0000

  fs: hfsplus: remove WARN_ON() from hfsplus_cat_{read,write}_inode()

  
Bug presence (2)
Date Name Commit Repro Result
2023/05/08 linux-6.1.y (ToT) ca48fc16c493 C [report] WARNING in hfsplus_cat_write_inode
2023/05/08 upstream (ToT) ac9a78681b92 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in hfsplus_cat_write_inode origin:lts-only C done 9 551d 612d 3/3 fixed on 2023/06/26 14:47
linux-4.14 WARNING in hfsplus_cat_write_inode hfsplus C 1 640d 670d 0/1 upstream: reported C repro on 2023/01/23 02:49
upstream WARNING in hfsplus_cat_write_inode hfs C error 141 561d 728d 22/28 fixed on 2023/06/08 14:41

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 102 at fs/hfsplus/inode.c:616 hfsplus_cat_write_inode+0xb2f/0x1000
Modules linked in:
CPU: 0 PID: 102 Comm: kworker/u4:4 Not tainted 6.1.29-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Workqueue: writeback wb_workfn (flush-7:0)
RIP: 0010:hfsplus_cat_write_inode+0xb2f/0x1000 fs/hfsplus/inode.c:616
Code: 00 0f 85 e8 04 00 00 44 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 2d e9 2d ff 0f 0b e9 d4 f7 ff ff e8 21 e9 2d ff <0f> 0b e9 85 fa ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 0b f6 ff
RSP: 0018:ffffc900015b7140 EFLAGS: 00010293
RAX: ffffffff825bdbaf RBX: 0000000000000058 RCX: ffff888013779dc0
RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00000000000000f8
RBP: ffffc900015b74f0 R08: ffffffff825bd62a R09: ffffed100f79f029
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807bcf81b0
R13: dffffc0000000000 R14: ffffc900015b71a0 R15: ffffc900015b7200
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f77c7c51418 CR3: 000000000cc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 write_inode fs/fs-writeback.c:1443 [inline]
 __writeback_single_inode+0x67d/0x11e0 fs/fs-writeback.c:1655
 writeback_sb_inodes+0xc21/0x1ac0 fs/fs-writeback.c:1881
 wb_writeback+0x49d/0xe10 fs/fs-writeback.c:2055
 wb_do_writeback fs/fs-writeback.c:2198 [inline]
 wb_workfn+0x427/0x1020 fs/fs-writeback.c:2238
 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
 kthread+0x26e/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/22 10:43 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/05/15 02:18 linux-6.1.y bf4ad6fa4e53 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/03/25 08:06 linux-6.1.y e3a87a10f259 9700afae .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/05/23 19:22 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/04/23 05:17 linux-6.1.y f17b0ab65d17 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/04/02 15:02 linux-6.1.y 3b29299e5f60 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/03/25 09:15 linux-6.1.y e3a87a10f259 9700afae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/03/25 04:32 linux-6.1.y e3a87a10f259 9700afae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in hfsplus_cat_write_inode
2023/04/08 08:42 linux-6.1.y 543aff194ab6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_write_inode
* Struck through repros no longer work on HEAD.