syzbot


WARNING in hfsplus_bnode_create

Status: upstream: reported C repro on 2023/05/13 19:31
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+b9a11951980cf86e1899@syzkaller.appspotmail.com
First crash: 349d, last: 4d16h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/05/19 upstream (ToT) 2d1bcbc6cd70 C [report] WARNING in hfsplus_bnode_create
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in hfsplus_bnode_create hfs C error 295 1d18h 511d 0/26 upstream: reported C repro on 2022/12/02 04:34
linux-4.14 WARNING in hfsplus_bnode_create hfsplus C 1 446d 484d 0/1 upstream: reported C repro on 2022/12/29 14:39
linux-4.19 WARNING in hfsplus_bnode_create hfsplus C error 5 445d 513d 0/1 upstream: reported C repro on 2022/11/30 07:43
linux-6.1 WARNING in hfsplus_bnode_create origin:upstream C 14 3d15h 367d 0/3 upstream: reported C repro on 2023/04/25 07:57

Sample crash report:
loop0: detected capacity change from 0 to 1024
hfsplus: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3963 at fs/hfsplus/bnode.c:584 hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
Modules linked in:
CPU: 0 PID: 3963 Comm: syz-executor163 Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 60401005 (nZCv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--)
pc : hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
lr : hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
sp : ffff800018e46c90
x29: ffff800018e46ca0 x28: ffff00016805f0f8 x27: ffff00016805f000
x26: 00000000000000f8 x25: dfff800000000000 x24: 0000000000000000
x23: 0000000000000000 x22: ffff0000c83d00e0 x21: ffff0000c83d0000
x20: 0000000000000000 x19: ffff0000c0fdd200 x18: 0000000000000001
x17: 0000000000000000 x16: ffff8000119967f4 x15: 00000000ffffffff
x14: ffff0000c8751b40 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 6d1fcdf0a50b4a00
x8 : 6d1fcdf0a50b4a00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800018e463f8 x4 : ffff800014a1f7c0 x3 : ffff80000a974cc0
x2 : ffff0001b47ebd10 x1 : 0000000100000000 x0 : 0000000000000023
Call trace:
 hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
 hfsplus_bmap_alloc+0x5a4/0x698 fs/hfsplus/btree.c:414
 hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245
 hfsplus_brec_insert+0x2d4/0xaa0 fs/hfsplus/brec.c:100
 hfsplus_create_cat+0x3ac/0x1330 fs/hfsplus/catalog.c:292
 hfsplus_fill_super+0xf64/0x167c fs/hfsplus/super.c:560
 mount_bdev+0x274/0x370 fs/super.c:1387
 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1517
 do_new_mount+0x278/0x8fc fs/namespace.c:3005
 path_mount+0x594/0x101c fs/namespace.c:3335
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount fs/namespace.c:3533 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 17118
hardirqs last  enabled at (17117): [<ffff80000832c48c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (17118): [<ffff800011991e80>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (16188): [<ffff8000080310b0>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (16186): [<ffff80000803107c>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 1851caf7974749b5 ]---
hfsplus: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3963 at fs/hfsplus/bnode.c:584 hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
Modules linked in:
CPU: 1 PID: 3963 Comm: syz-executor163 Tainted: G        W         5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 60401005 (nZCv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--)
pc : hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
lr : hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
sp : ffff800018e46cd0
x29: ffff800018e46ce0 x28: ffff00016805f222 x27: ffff00016805f000
x26: 0000000000000222 x25: dfff800000000000 x24: 0000000000000000
x23: 0000000000000000 x22: ffff0000c83d00e0 x21: ffff0000c83d0000
x20: 0000000000000000 x19: ffff0000c0fdd200 x18: 0000000000000001
x17: 0000000000000000 x16: ffff800008336840 x15: 00000000ffffffff
x14: ffff0000c8751b40 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 6d1fcdf0a50b4a00
x8 : 6d1fcdf0a50b4a00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800018e46438 x4 : ffff800014a1f7c0 x3 : ffff80000833698c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023
Call trace:
 hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583
 hfsplus_bmap_alloc+0x5a4/0x698 fs/hfsplus/btree.c:414
 hfs_btree_inc_height+0xf8/0xa60 fs/hfsplus/brec.c:475
 hfsplus_brec_insert+0x594/0xaa0 fs/hfsplus/brec.c:148
 hfsplus_create_cat+0x3ac/0x1330 fs/hfsplus/catalog.c:292
 hfsplus_fill_super+0xf64/0x167c fs/hfsplus/super.c:560
 mount_bdev+0x274/0x370 fs/super.c:1387
 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1517
 do_new_mount+0x278/0x8fc fs/namespace.c:3005
 path_mount+0x594/0x101c fs/namespace.c:3335
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount fs/namespace.c:3533 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 17224
hardirqs last  enabled at (17223): [<ffff80000832c48c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (17224): [<ffff800011991e80>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (17140): [<ffff800008021c64>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (17140): [<ffff800008021c64>] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587
softirqs last disabled at (17121): [<ffff8000081b6568>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (17121): [<ffff8000081b6568>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (17121): [<ffff8000081b6568>] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637
---[ end trace 1851caf7974749b6 ]---
------------[ cut here ]------------
kernel BUG at fs/hfsplus/bnode.c:631!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3963 Comm: syz-executor163 Tainted: G        W         5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--)
pc : hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631
lr : hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631
sp : ffff800018e46de0
x29: ffff800018e46de0 x28: dfff800000000000 x27: ffff7000031c8dd4
x26: 1fffe0001907a003 x25: ffff0000c83d0000 x24: 1fffe000181fba40
x23: dfff800000000000 x22: ffff0000c0fdd200 x21: ffff0000c0fdd280
x20: 0000000000000000 x19: ffff0000c0fdd200 x18: 0000000000000001
x17: 0000000000000000 x16: ffff80000824daf4 x15: 00000000ffffffff
x14: 1ffff0000292806a x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c8751b40
x8 : ffff800008fbc9cc x7 : ffff80000ab424f4 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008fbc4a0
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631
 hfs_btree_inc_height+0x4fc/0xa60 fs/hfsplus/brec.c:530
 hfsplus_brec_insert+0x594/0xaa0 fs/hfsplus/brec.c:148
 hfsplus_create_cat+0x3ac/0x1330 fs/hfsplus/catalog.c:292
 hfsplus_fill_super+0xf64/0x167c fs/hfsplus/super.c:560
 mount_bdev+0x274/0x370 fs/super.c:1387
 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1517
 do_new_mount+0x278/0x8fc fs/namespace.c:3005
 path_mount+0x594/0x101c fs/namespace.c:3335
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount fs/namespace.c:3533 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: aa1403e0 97e44374 17ffff77 97d41e5e (d4210000) 
---[ end trace 1851caf7974749b7 ]---

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/19 18:59 linux-5.15.y c52b9710c83d af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2024/01/13 06:13 linux-5.15.y 26c690eff0a5 551587c1 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2023/05/13 19:31 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-arm64 WARNING in hfsplus_bnode_create
2023/06/27 17:56 linux-5.15.y f67653019430 4cd5bb25 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in hfsplus_bnode_create
2023/05/30 05:30 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in hfsplus_bnode_create
2023/06/07 05:44 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2024/04/01 19:19 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_bnode_create
2024/02/20 15:53 linux-5.15.y 6139f2a02fe0 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_bnode_create
2023/10/01 06:32 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hfsplus_bnode_create
2024/04/22 06:37 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2024/04/13 07:44 linux-5.15.y cdfd0a7f0139 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2024/04/01 11:26 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2024/01/12 20:05 linux-5.15.y 26c690eff0a5 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2023/09/22 03:21 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
2023/05/30 05:23 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hfsplus_bnode_create
* Struck through repros no longer work on HEAD.