syzbot


WARNING in hfsplus_cat_read_inode

Status: fixed on 2023/06/26 14:47
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+635edbe33f60fd0034c2@syzkaller.appspotmail.com
Fix commit: 48960a503fce fs: hfsplus: remove WARN_ON() from hfsplus_cat_{read,write}_inode()
First crash: 605d, last: 563d
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/07 linux-6.1.y (ToT) ca48fc16c493 C [report] WARNING in hfsplus_cat_read_inode
2023/05/07 upstream (ToT) fc4354c6e5c2 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_read_inode origin:lts-only C error 15 571d 628d 0/3 auto-obsoleted due to no activity on 2024/10/04 04:01
linux-4.14 WARNING in hfsplus_cat_read_inode hfsplus 3 665d 689d 0/1 upstream: reported on 2023/01/18 13:05
upstream WARNING in hfsplus_cat_read_inode hfs C error 599 573d 737d 22/28 fixed on 2023/06/08 14:41

Sample crash report:
loop0: detected capacity change from 0 to 1024
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4218 at fs/hfsplus/inode.c:534 hfsplus_cat_read_inode+0x864/0xc38 fs/hfsplus/inode.c:534
Modules linked in:
CPU: 1 PID: 4218 Comm: syz-executor116 Not tainted 6.1.27-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfsplus_cat_read_inode+0x864/0xc38 fs/hfsplus/inode.c:534
lr : hfsplus_cat_read_inode+0x864/0xc38 fs/hfsplus/inode.c:534
sp : ffff80001d997120
x29: ffff80001d997420 x28: 1ffff00003b32e9b x27: 1ffff00003b32e9d
x26: dfff800000000000 x25: ffff700003b32e28 x24: 0000000000000002
x23: 000000000000004e x22: ffff80001d9974d8 x21: ffff80001d9974ec
x20: ffff80001d997160 x19: ffff0000d60a1cb0 x18: ffff80001d996a40
x17: ffff80001558d000 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000002 x12: ffff0000c6313680
x11: ff80800009061c58 x10: 0000000000000000 x9 : ffff800009061c58
x8 : ffff0000c6313680 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff80001d997082 x4 : ffff000176947032 x3 : ffff8000090747c8
x2 : 0000000000000002 x1 : 000000000000004e x0 : 00000000000000f8
Call trace:
 hfsplus_cat_read_inode+0x864/0xc38 fs/hfsplus/inode.c:534
 hfsplus_iget+0x4ac/0x570 fs/hfsplus/super.c:84
 hfsplus_fill_super+0x9c0/0x166c fs/hfsplus/super.c:503
 mount_bdev+0x26c/0x368 fs/super.c:1423
 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610
 vfs_get_tree+0x90/0x274 fs/super.c:1553
 do_new_mount+0x25c/0x8c8 fs/namespace.c:3040
 path_mount+0x590/0xe58 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 19116
hardirqs last  enabled at (19115): [<ffff8000121c463c>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (19115): [<ffff8000121c463c>] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194
hardirqs last disabled at (19116): [<ffff8000120e200c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (16548): [<ffff800008020d74>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last  enabled at (16548): [<ffff800008020d74>] __do_softirq+0xc14/0xea0 kernel/softirq.c:600
softirqs last disabled at (16531): [<ffff80000802a948>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/07 08:37 linux-6.1.y ca48fc16c493 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/14 19:00 linux-6.1.y bf4ad6fa4e53 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in hfsplus_cat_read_inode
2023/04/16 21:39 linux-6.1.y 0102425ac76b ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in hfsplus_cat_read_inode
2023/05/24 13:50 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/23 05:21 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/21 04:52 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/20 13:44 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/19 20:05 linux-6.1.y fa74641fb6b9 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/19 17:54 linux-6.1.y fa74641fb6b9 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/18 02:36 linux-6.1.y fa74641fb6b9 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/17 21:28 linux-6.1.y fa74641fb6b9 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/17 19:17 linux-6.1.y fa74641fb6b9 eaac4681 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/17 14:24 linux-6.1.y fa74641fb6b9 eaac4681 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/17 08:47 linux-6.1.y bf4ad6fa4e53 eaac4681 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/16 21:40 linux-6.1.y bf4ad6fa4e53 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/16 18:21 linux-6.1.y bf4ad6fa4e53 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/16 06:31 linux-6.1.y bf4ad6fa4e53 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/16 02:33 linux-6.1.y bf4ad6fa4e53 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/15 14:06 linux-6.1.y bf4ad6fa4e53 c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/15 12:48 linux-6.1.y bf4ad6fa4e53 c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/05/14 18:30 linux-6.1.y bf4ad6fa4e53 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/04/22 00:12 linux-6.1.y f17b0ab65d17 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/04/21 21:23 linux-6.1.y f17b0ab65d17 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
2023/04/13 06:45 linux-6.1.y 543aff194ab6 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in hfsplus_cat_read_inode
* Struck through repros no longer work on HEAD.