syzbot


WARNING in hfsplus_bnode_create

Status: upstream: reported C repro on 2022/11/30 07:43
Subsystems: hfsplus
[Documentation on labels]
Reported-by: syzbot+c236c9b8ce6562e4b2eb@syzkaller.appspotmail.com
First crash: 484d, last: 416d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in hfsplus_bnode_create hfs C error 278 11h01m 482d 0/26 upstream: reported C repro on 2022/12/02 04:34
linux-5.15 WARNING in hfsplus_bnode_create origin:upstream C error 10 37d 319d 0/3 upstream: reported C repro on 2023/05/13 19:31
linux-4.14 WARNING in hfsplus_bnode_create hfsplus C 1 416d 455d 0/1 upstream: reported C repro on 2022/12/29 14:39
linux-6.1 WARNING in hfsplus_bnode_create origin:upstream C 11 28d 338d 0/3 upstream: reported C repro on 2023/04/25 07:57

Sample crash report:
audit: type=1800 audit(1672539516.741:2): pid=8090 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor756" name="file1" dev="loop0" ino=20 res=0
hfsplus: xattr searching failed
hfsplus: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8090 at fs/hfsplus/bnode.c:584 hfsplus_bnode_create.cold+0x27/0x4e fs/hfsplus/bnode.c:584
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8090 Comm: syz-executor756 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:hfsplus_bnode_create.cold+0x27/0x4e fs/hfsplus/bnode.c:584
Code: b3 05 fa e8 8b 3f 6c f9 4c 89 ef e8 13 0a 23 00 89 ee 48 c7 c7 20 85 7d 88 e8 e0 70 fd ff 48 c7 c7 80 85 7d 88 e8 d4 70 fd ff <0f> 0b e9 47 c6 05 fa e8 5d 3f 6c f9 89 ee 48 c7 c7 c0 82 7d 88 e8
RSP: 0018:ffff8880b2d1f068 EFLAGS: 00010286
RAX: 0000000000000024 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10165a3dff
RBP: 0000000000000000 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b4ee8a00
R13: ffff8880b248e0d0 R14: ffff8880b248e000 R15: 0000000000000000
 hfsplus_bmap_alloc+0x70b/0x800 fs/hfsplus/btree.c:414
 hfs_btree_inc_height.isra.0+0xe6/0x9e0 fs/hfsplus/brec.c:475
 hfsplus_brec_insert+0x9e1/0xc20 fs/hfsplus/brec.c:75
 __hfsplus_ext_write_extent+0x489/0x5a0 fs/hfsplus/extents.c:107
 __hfsplus_ext_cache_extent fs/hfsplus/extents.c:186 [inline]
 hfsplus_ext_read_extent+0x910/0xab0 fs/hfsplus/extents.c:218
 hfsplus_file_extend+0x672/0xf40 fs/hfsplus/extents.c:461
 hfsplus_get_block+0x196/0x960 fs/hfsplus/extents.c:245
 get_more_blocks fs/direct-io.c:717 [inline]
 do_direct_IO fs/direct-io.c:1003 [inline]
 do_blockdev_direct_IO fs/direct-io.c:1333 [inline]
 __blockdev_direct_IO+0x424b/0xef40 fs/direct-io.c:1419
 blockdev_direct_IO include/linux/fs.h:3059 [inline]
 hfsplus_direct_IO+0x10a/0x2c0 fs/hfsplus/inode.c:134
 generic_file_direct_write+0x208/0x4a0 mm/filemap.c:3073
 __generic_file_write_iter+0x2d0/0x610 mm/filemap.c:3252
 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323
 call_write_iter include/linux/fs.h:1821 [inline]
 do_iter_readv_writev+0x668/0x790 fs/read_write.c:681
 do_iter_write+0x182/0x5d0 fs/read_write.c:960
 vfs_writev+0x153/0x2e0 fs/read_write.c:1005
 do_pwritev+0x1b6/0x270 fs/read_write.c:1094
 __do_sys_pwritev2 fs/read_write.c:1153 [inline]
 __se_sys_pwritev2 fs/read_write.c:1144 [inline]
 __x64_sys_pwritev2+0xeb/0x150 fs/read_write.c:1144
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1971ca07d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe7201bb08 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1971ca07d9
RDX: 0000000000000001 RSI: 0000000020000680 RDI: 0000000000000004
RBP: 00007f1971c60070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000600 R11: 0000000000000246 R12: 00007f1971c60100
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/01 02:20 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in hfsplus_bnode_create
2022/12/07 13:27 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in hfsplus_bnode_create
2022/11/30 07:43 linux-4.19.y 3f8a27f9e27b 579a3740 .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in hfsplus_bnode_create
2023/02/06 15:53 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in hfsplus_bnode_create
2022/12/07 13:13 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in hfsplus_bnode_create
* Struck through repros no longer work on HEAD.