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+377f8341676334784aa6@syzkaller.appspotmail.com
Fix commit: 37cab61a52d6 fs: hfsplus: remove WARN_ON() from hfsplus_cat_{read,write}_inode()
First crash: 612d, last: 551d
Fix bisection: fixed by (bisect log) :
commit 37cab61a52d6f42b2d961c51bcf369f09e235fb5
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-5.15.y (ToT) 8a7f2a5c5aa1 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-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
linux-6.1 WARNING in hfsplus_cat_write_inode origin:lts-only C done 9 549d 609d 3/3 fixed on 2023/06/26 14:47

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 144 at fs/hfsplus/inode.c:614 hfsplus_cat_write_inode+0xb2f/0x1000
Modules linked in:
CPU: 0 PID: 144 Comm: kworker/u4:1 Not tainted 5.15.111-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:614
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 bd 83 41 ff 0f 0b e9 d4 f7 ff ff e8 b1 83 41 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:ffffc9000135f140 EFLAGS: 00010293
RAX: ffffffff823e602f RBX: 0000000000000058 RCX: ffff888012b43b80
RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00000000000000f8
RBP: ffffc9000135f4f0 R08: ffffffff823e5aaa R09: ffffed100f0bb2b1
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880785d95f0
R13: dffffc0000000000 R14: ffffc9000135f1a0 R15: ffffc9000135f200
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005622fc59e4a8 CR3: 0000000021bca000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 write_inode fs/fs-writeback.c:1478 [inline]
 __writeback_single_inode+0x644/0xe30 fs/fs-writeback.c:1683
 writeback_sb_inodes+0xbf0/0x1a50 fs/fs-writeback.c:1908
 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2082
 wb_do_writeback fs/fs-writeback.c:2225 [inline]
 wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2266
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/15 04:04 linux-5.15.y b0ece631f84a 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/03/21 15:56 linux-5.15.y 8020ae3c051d 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/05/21 16:50 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/04/29 23:08 linux-5.15.y f48aeeaaa64c 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/04/01 14:16 linux-5.15.y c957cbb87315 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/03/25 09:16 linux-5.15.y 115472395b0a 9700afae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/03/25 01:24 linux-5.15.y 115472395b0a 9700afae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/03/21 14:09 linux-5.15.y 8020ae3c051d 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_cat_write_inode
2023/04/10 17:16 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_cat_write_inode
* Struck through repros no longer work on HEAD.