loop0: detected capacity change from 0 to 1024 hfsplus: (loop0): Attributes File (cnid 0x8) map record invalid or bitmap corruption detected, forcing read-only. hfsplus: Run fsck.hfsplus to repair. hfsplus: trying to free the freed bnode 1(1) Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] CPU: 0 UID: 0 PID: 5342 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_cat_write_inode+0xc4/0xb40 fs/hfsplus/inode.c:688 Code: 51 4a 89 44 2b 59 66 42 c7 44 2b 61 f3 f3 42 c6 44 2b 63 f3 e8 3d 7b 0e ff 4d 8d 7c 24 28 4c 89 f8 48 c1 e8 03 48 89 44 24 38 <42> 80 3c 28 00 74 08 4c 89 ff e8 3d 14 81 ff 41 be 78 06 00 00 4c RSP: 0018:ffffc9000f337880 EFLAGS: 00010206 RAX: 0000000000000005 RBX: 1ffff92001e66f18 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 0000000000002ff2 RDI: 0000000000002ff3 RBP: ffffc9000f337c30 R08: ffffc9000f3377e7 R09: 0000000000000000 R10: fffff52001e66f28 R11: fffff52001e66efd R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880543826d8 R15: 0000000000000028 FS: 00007f6d0fb186c0(0000) GS:ffff88808b0a5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcc96980000 CR3: 0000000013e41000 CR4: 0000000000352ef0 Call Trace: hfsplus_unlink+0x5e0/0x8e0 fs/hfsplus/dir.c:429 vfs_unlink+0x27b/0x6d0 fs/namei.c:5659 filename_unlinkat+0x3cd/0x610 fs/namei.c:5729 __do_sys_unlinkat fs/namei.c:5758 [inline] __se_sys_unlinkat+0x83/0x1a0 fs/namei.c:5750 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:0x7f6d0eb9f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6d0fb17fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007f6d0ee25fa0 RCX: 00007f6d0eb9f559 RDX: 0000000000000000 RSI: 0000200000000c40 RDI: ffffffffffffff9c RBP: 00007f6d0ec36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6d0ee26038 R14: 00007f6d0ee25fa0 R15: 00007fffeb2c6698 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_cat_write_inode+0xc4/0xb40 fs/hfsplus/inode.c:688 Code: 51 4a 89 44 2b 59 66 42 c7 44 2b 61 f3 f3 42 c6 44 2b 63 f3 e8 3d 7b 0e ff 4d 8d 7c 24 28 4c 89 f8 48 c1 e8 03 48 89 44 24 38 <42> 80 3c 28 00 74 08 4c 89 ff e8 3d 14 81 ff 41 be 78 06 00 00 4c RSP: 0018:ffffc9000f337880 EFLAGS: 00010206 RAX: 0000000000000005 RBX: 1ffff92001e66f18 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 0000000000002ff2 RDI: 0000000000002ff3 RBP: ffffc9000f337c30 R08: ffffc9000f3377e7 R09: 0000000000000000 R10: fffff52001e66f28 R11: fffff52001e66efd R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880543826d8 R15: 0000000000000028 FS: 00007f6d0fb186c0(0000) GS:ffff88808b0a5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005584fe3b3590 CR3: 0000000013e41000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 51 push %rcx 1: 4a 89 44 2b 59 mov %rax,0x59(%rbx,%r13,1) 6: 66 42 c7 44 2b 61 f3 movw $0xf3f3,0x61(%rbx,%r13,1) d: f3 e: 42 c6 44 2b 63 f3 movb $0xf3,0x63(%rbx,%r13,1) 14: e8 3d 7b 0e ff call 0xff0e7b56 19: 4d 8d 7c 24 28 lea 0x28(%r12),%r15 1e: 4c 89 f8 mov %r15,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 38 mov %rax,0x38(%rsp) * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 3d 14 81 ff call 0xff811476 39: 41 be 78 06 00 00 mov $0x678,%r14d 3f: 4c rex.WR