syzbot


WARNING in hfs_bnode_create

Status: upstream: reported C repro on 2022/11/26 06:17
Reported-by: syzbot+4449b8d6f912a70509bd@syzkaller.appspotmail.com
First crash: 75d, last: 5d12h
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in hfs_bnode_create hfs C done error 50 2d00h 1772d 0/24 upstream: reported C repro on 2018/04/04 03:02
linux-4.14 WARNING in hfs_bnode_create C 2 10d 60d 0/1 upstream: reported C repro on 2022/12/10 13:46

Sample crash report:
RBP: 00007ffdf2fd7c90 R08: 0000000000000001 R09: 00007ffdf2fd7ca0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffdf2fd7cd0 R14: 00007ffdf2fd7cb0 R15: 0000000000000029
hfs: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8380 at fs/hfs/bnode.c:431 hfs_bnode_create.cold+0x27/0x4e fs/hfs/bnode.c:431
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8380 Comm: syz-executor356 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:hfs_bnode_create.cold+0x27/0x4e fs/hfs/bnode.c:431
Code: 14 07 fa e8 e8 39 6c f9 4c 89 ef e8 70 04 23 00 89 ee 48 c7 c7 e0 9c 7d 88 e8 3d 6b fd ff 48 c7 c7 40 9d 7d 88 e8 31 6b fd ff <0f> 0b e9 b1 1c 07 fa e8 ba 39 6c f9 89 ee 48 c7 c7 40 9a 7d 88 e8
RSP: 0018:ffff88808a48f290 EFLAGS: 00010282
RAX: 0000000000000024 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1011491e44
RBP: 0000000000000000 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a9e81000
R13: ffff8880af9ae850 R14: ffff8880af9ae780 R15: 0000000000000000
 hfs_bmap_alloc+0x4d6/0x5e0 fs/hfs/btree.c:288
 hfs_btree_inc_height.isra.0+0xe6/0x950 fs/hfs/brec.c:471
 hfs_brec_insert+0x84d/0xbb0 fs/hfs/brec.c:148
 __hfs_ext_write_extent+0x3ec/0x510 fs/hfs/extent.c:124
 __hfs_ext_cache_extent fs/hfs/extent.c:174 [inline]
 hfs_ext_read_extent+0x810/0xa20 fs/hfs/extent.c:202
 hfs_extend_file+0x4a0/0xac0 fs/hfs/extent.c:401
 hfs_get_block+0x17b/0x7e0 fs/hfs/extent.c:353
 __block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978
 __block_write_begin fs/buffer.c:2028 [inline]
 block_write_begin+0x58/0x2e0 fs/buffer.c:2087
 cont_write_begin+0x55a/0x820 fs/buffer.c:2440
 hfs_write_begin+0x87/0x150 fs/hfs/inode.c:58
 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fca845269e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007ffdf2fd7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fca845269e9
RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 00007ffdf2fd7c90 R08: 0000000000000001 R09: 00007ffdf2fd7ca0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffdf2fd7cd0 R14: 00007ffdf2fd7cb0 R15: 0000000000000029
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (12):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2023/01/02 16:10 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in hfs_bnode_create
ci2-linux-4-19 2022/12/22 20:53 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in hfs_bnode_create
ci2-linux-4-19 2022/12/14 01:18 linux-4.19.y 3f8a27f9e27b f6511626 .config console log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in hfs_bnode_create
ci2-linux-4-19 2022/11/26 06:17 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in hfs_bnode_create
ci2-linux-4-19 2023/02/03 18:15 linux-4.19.y 3f8a27f9e27b 1b2f701a .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
ci2-linux-4-19 2023/01/30 02:28 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
ci2-linux-4-19 2023/01/25 02:24 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
ci2-linux-4-19 2023/01/19 14:00 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
ci2-linux-4-19 2023/01/05 21:05 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
ci2-linux-4-19 2023/01/05 11:25 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
ci2-linux-4-19 2022/12/21 18:39 linux-4.19.y 3f8a27f9e27b 4067838e .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
ci2-linux-4-19 2022/12/17 19:05 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] WARNING in hfs_bnode_create
* Struck through repros no longer work on HEAD.