syzbot


WARNING in hfs_bnode_create

Status: upstream: reported C repro on 2022/12/10 13:46
Reported-by: syzbot+16236d8816ee4580cf69@syzkaller.appspotmail.com
First crash: 474d, last: 392d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in hfs_bnode_create hfs C done error 693 4d11h 2186d 0/26 upstream: reported C repro on 2018/04/04 03:02
linux-4.19 WARNING in hfs_bnode_create hfs C 16 393d 489d 0/1 upstream: reported C repro on 2022/11/26 06:17
linux-5.15 WARNING in hfs_bnode_create origin:upstream C error 26 6d05h 360d 0/3 upstream: reported C repro on 2023/04/04 01:35
linux-6.1 WARNING in hfs_bnode_create origin:upstream C 35 17d 361d 0/3 upstream: reported C repro on 2023/04/02 22:27
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/03/02 14:20 32m bisect fix linux-4.14.y job log (0) log
2023/01/30 04:24 23m bisect fix linux-4.14.y job log (0) log

Sample crash report:
hfs: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7968 at fs/hfs/bnode.c:435 hfs_bnode_create.cold+0x1b/0x42 fs/hfs/bnode.c:434
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7968 Comm: syz-executor289 Not tainted 4.14.301-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:hfs_bnode_create.cold+0x1b/0x42 fs/hfs/bnode.c:435
RSP: 0018:ffff888095f573d8 EFLAGS: 00010286
RAX: 000000000000001f RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bd020 RDI: ffffed1012beae71
RBP: 0000000000000000 R08: 000000000000001f R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809aeaad00
R13: ffff8880b32365c0 R14: ffff8880b3236690 R15: 0000000000000000
 hfs_bmap_alloc+0x42c/0x530 fs/hfs/btree.c:288
 hfs_btree_inc_height.isra.0+0xbf/0x870 fs/hfs/brec.c:471
 hfs_brec_insert+0x84c/0xa70 fs/hfs/brec.c:77
 __hfs_ext_write_extent+0x3b4/0x4d0 fs/hfs/extent.c:124
 __hfs_ext_cache_extent fs/hfs/extent.c:174 [inline]
 hfs_ext_read_extent+0x73f/0x930 fs/hfs/extent.c:202
 hfs_extend_file+0x439/0xa40 fs/hfs/extent.c:401
 hfs_get_block+0x159/0x6d0 fs/hfs/extent.c:353
 __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038
 __block_write_begin fs/buffer.c:2088 [inline]
 block_write_begin+0x58/0x270 fs/buffer.c:2147
 cont_write_begin+0x4a3/0x740 fs/buffer.c:2497
 hfs_write_begin+0x87/0x130 fs/hfs/inode.c:58
 generic_perform_write+0x1d5/0x430 mm/filemap.c:3055
 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208
 call_write_iter include/linux/fs.h:1780 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fdfdc8577b9
RSP: 002b:00007ffe715bdae8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdfdc8577b9
RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 00007fdfdc817050 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000024c R11: 0000000000000246 R12: 00007fdfdc8170e0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/10 14:05 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in hfs_bnode_create
2022/12/10 13:45 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in hfs_bnode_create
* Struck through repros no longer work on HEAD.