hfsplus: new node 4 already hashed? ------------[ cut here ]------------ 1 WARNING: fs/hfsplus/bnode.c:642 at hfsplus_bnode_create+0x45d/0x4f0 fs/hfsplus/bnode.c:642, CPU#0: syz.0.0/5321 Modules linked in: CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:hfsplus_bnode_create+0x45d/0x4f0 fs/hfsplus/bnode.c:642 Code: 29 8c 89 ee e8 64 b1 6d fe e9 cf fc ff ff e8 8a ed 0d ff 4c 89 f7 e8 52 60 31 09 48 c7 c7 80 d6 29 8c 89 ee e8 44 b1 6d fe 90 <0f> 0b 90 49 c7 c5 ef ff ff ff eb a9 44 89 f9 80 e1 07 80 c1 03 38 RSP: 0018:ffffc9000e0bf600 EFLAGS: 00010246 RAX: 0000000000000023 RBX: dffffc0000000000 RCX: 96b42018d4ec7d00 RDX: ffffc90020001000 RSI: 000000000002fdbc RDI: 000000000002fdbd RBP: 0000000000000004 R08: ffffc9000e0bf387 R09: 1ffff92001c17e70 R10: dffffc0000000000 R11: fffff52001c17e71 R12: 0000000000000004 R13: ffff888012caa000 R14: ffff888012caa0d8 R15: ffff888033762f00 FS: 00007f39634816c0(0000) GS:ffff88808c2bc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f289adb168 CR3: 0000000012948000 CR4: 0000000000352ef0 Call Trace: hfs_btree_inc_height+0xf9/0xb50 fs/hfsplus/brec.c:504 hfsplus_brec_insert+0x81b/0xde0 fs/hfsplus/brec.c:158 hfsplus_create_cat+0x437/0x1240 fs/hfsplus/catalog.c:292 hfsplus_mknod+0x184/0x3c0 fs/hfsplus/dir.c:532 hfsplus_mkdir+0x26/0x40 fs/hfsplus/dir.c:573 vfs_mkdir+0x40c/0x620 fs/namei.c:5410 filename_mkdirat+0x285/0x510 fs/namei.c:5443 __do_sys_mkdirat fs/namei.c:5464 [inline] __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f396259cfc7 Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3963480e18 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f3963480ea0 RCX: 00007f396259cfc7 RDX: 00000000000001ff RSI: 00002000000005c0 RDI: 00000000ffffff9c RBP: 0000200000000b00 R08: 0000200000000140 R09: 0000000000000000 R10: 0000200000000b00 R11: 0000000000000246 R12: 00002000000005c0 R13: 00007f3963480e60 R14: 0000000000000000 R15: 0000000000000000