Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.15.0-rc3-syzkaller-00244-gc3137514f1f1 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3424 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f41/0x5450 fs/ocfs2/dir.c:4288 Code: a9 8b e8 b2 87 19 00 e9 fd 11 00 00 e8 f8 ec 2a fe e9 a7 02 00 00 e8 ee ec 2a fe 49 8d 7f 08 4d 8d 77 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 41 20 00 00 4c 89 f0 48 c1 e8 03 42 0f RSP: 0018:ffffc9000d1f70a0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff888010eede48 RCX: 0000000000100000 RDX: ffffc9000e9c3000 RSI: 00000000000006d4 RDI: 0000000000000008 RBP: ffffc9000d1f77b0 R08: ffffc9000d1f7ac0 R09: 608b7c562adf3b03 R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000 R13: ffff888010eeddf8 R14: 0000000000000009 R15: 0000000000000000 FS: 00007f5ba06436c0(0000) GS:ffff88808d6cd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000025c0 CR3: 0000000041404000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __ocfs2_prepare_orphan_dir+0x145/0x2c0 fs/ocfs2/namei.c:2176 ocfs2_prepare_orphan_dir+0xf9/0x3f0 fs/ocfs2/namei.c:2221 ocfs2_unlink+0x90d/0x1940 fs/ocfs2/namei.c:959 vfs_rmdir+0x3b7/0x520 fs/namei.c:4454 do_rmdir+0x2ac/0x630 fs/namei.c:4509 __do_sys_rmdir fs/namei.c:4528 [inline] __se_sys_rmdir fs/namei.c:4526 [inline] __x64_sys_rmdir+0x47/0x50 fs/namei.c:4526 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5b9f78e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5ba0643038 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007f5b9f9b6080 RCX: 00007f5b9f78e969 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000000 RBP: 00007f5b9f810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5b9f9b6080 R15: 00007fff526815d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3424 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f41/0x5450 fs/ocfs2/dir.c:4288 Code: a9 8b e8 b2 87 19 00 e9 fd 11 00 00 e8 f8 ec 2a fe e9 a7 02 00 00 e8 ee ec 2a fe 49 8d 7f 08 4d 8d 77 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 41 20 00 00 4c 89 f0 48 c1 e8 03 42 0f RSP: 0018:ffffc9000d1f70a0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff888010eede48 RCX: 0000000000100000 RDX: ffffc9000e9c3000 RSI: 00000000000006d4 RDI: 0000000000000008 RBP: ffffc9000d1f77b0 R08: ffffc9000d1f7ac0 R09: 608b7c562adf3b03 R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000 R13: ffff888010eeddf8 R14: 0000000000000009 R15: 0000000000000000 FS: 00007f5ba06436c0(0000) GS:ffff88808d6cd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000080 CR3: 0000000041404000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: a9 8b e8 b2 87 test $0x87b2e88b,%eax 5: 19 00 sbb %eax,(%rax) 7: e9 fd 11 00 00 jmp 0x1209 c: e8 f8 ec 2a fe call 0xfe2aed09 11: e9 a7 02 00 00 jmp 0x2bd 16: e8 ee ec 2a fe call 0xfe2aed09 1b: 49 8d 7f 08 lea 0x8(%r15),%rdi 1f: 4d 8d 77 09 lea 0x9(%r15),%r14 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 41 20 00 00 jne 0x2078 37: 4c 89 f0 mov %r14,%rax 3a: 48 c1 e8 03 shr $0x3,%rax 3e: 42 rex.X 3f: 0f .byte 0xf