loop0: detected capacity change from 0 to 1024 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 UID: 0 PID: 5317 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_rename_cat+0x438/0x1000 fs/hfsplus/catalog.c:480 Code: 0f b7 84 24 60 01 00 00 66 89 44 24 50 4c 8b b4 24 00 01 00 00 48 8b 44 24 38 4c 8d 60 40 4c 89 e0 48 c1 e8 03 48 89 44 24 70 <42> 80 3c 38 00 74 08 4c 89 e7 e8 69 d1 83 ff 4c 89 64 24 78 45 8b RSP: 0018:ffffc9000e147760 EFLAGS: 00010202 RAX: 0000000000000008 RBX: fffff52001c28efc RCX: ffff888012654900 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000e147bb0 R08: 0000000006000200 R09: 6d33a5df14000000 R10: 6d33a5df14000000 R11: 6d33a5df6d33a5df R12: 0000000000000040 R13: ffffc9000e147800 R14: ffff88804425b000 R15: dffffc0000000000 FS: 00007fa0f18476c0(0000) GS:ffff88808ca59000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3ef061b000 CR3: 0000000012460000 CR4: 0000000000352ef0 Call Trace: hfsplus_link+0x380/0x8a0 fs/hfsplus/dir.c:326 vfs_link+0x518/0x6e0 fs/namei.c:5746 filename_linkat+0x273/0x600 fs/namei.c:5814 __do_sys_link fs/namei.c:5847 [inline] __se_sys_link+0x55/0x2c0 fs/namei.c:5843 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa0f099c799 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:00007fa0f1847028 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007fa0f0c15fa0 RCX: 00007fa0f099c799 RDX: 0000000000000000 RSI: 0000200000000240 RDI: 0000200000000940 RBP: 00007fa0f0a32bd9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa0f0c16038 R14: 00007fa0f0c15fa0 R15: 00007ffcc2d4b3e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_rename_cat+0x438/0x1000 fs/hfsplus/catalog.c:480 Code: 0f b7 84 24 60 01 00 00 66 89 44 24 50 4c 8b b4 24 00 01 00 00 48 8b 44 24 38 4c 8d 60 40 4c 89 e0 48 c1 e8 03 48 89 44 24 70 <42> 80 3c 38 00 74 08 4c 89 e7 e8 69 d1 83 ff 4c 89 64 24 78 45 8b RSP: 0018:ffffc9000e147760 EFLAGS: 00010202 RAX: 0000000000000008 RBX: fffff52001c28efc RCX: ffff888012654900 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000e147bb0 R08: 0000000006000200 R09: 6d33a5df14000000 R10: 6d33a5df14000000 R11: 6d33a5df6d33a5df R12: 0000000000000040 R13: ffffc9000e147800 R14: ffff88804425b000 R15: dffffc0000000000 FS: 00007fa0f18476c0(0000) GS:ffff88808ca59000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7465255d20 CR3: 0000000012460000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 0f b7 84 24 60 01 00 movzwl 0x160(%rsp),%eax 7: 00 8: 66 89 44 24 50 mov %ax,0x50(%rsp) d: 4c 8b b4 24 00 01 00 mov 0x100(%rsp),%r14 14: 00 15: 48 8b 44 24 38 mov 0x38(%rsp),%rax 1a: 4c 8d 60 40 lea 0x40(%rax),%r12 1e: 4c 89 e0 mov %r12,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 70 mov %rax,0x70(%rsp) * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 e7 mov %r12,%rdi 34: e8 69 d1 83 ff call 0xff83d1a2 39: 4c 89 64 24 78 mov %r12,0x78(%rsp) 3e: 45 rex.RB 3f: 8b .byte 0x8b