general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 4351 Comm: syz.3.7 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305 Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24 RSP: 0018:ffffc9000346e1e0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff888062835008 RCX: 0000000000080000 RDX: ffffc9000d851000 RSI: 000000000000c447 RDI: 0000000000000008 RBP: ffffc9000346e910 R08: ffffc9000346eb70 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000009 R15: ffff888062834fb8 FS: 00007efe9193e6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe7e52fe000 CR3: 000000007a6ae000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __ocfs2_prepare_orphan_dir+0x142/0x2c0 fs/ocfs2/namei.c:2164 ocfs2_prepare_orphan_dir+0xf6/0x3f0 fs/ocfs2/namei.c:2207 ocfs2_add_inode_to_orphan+0x1d3/0x700 fs/ocfs2/namei.c:2655 ocfs2_dio_wr_get_block+0x7d9/0x17a0 fs/ocfs2/aops.c:2211 get_more_blocks fs/direct-io.c:673 [inline] do_direct_IO fs/direct-io.c:959 [inline] do_blockdev_direct_IO fs/direct-io.c:1276 [inline] __blockdev_direct_IO+0x146d/0x3c90 fs/direct-io.c:1368 ocfs2_direct_IO+0x23e/0x2b0 fs/ocfs2/aops.c:2468 generic_file_direct_write+0x22c/0x490 mm/filemap.c:3687 __generic_file_write_iter+0x2b1/0x4e0 mm/filemap.c:3869 ocfs2_file_write_iter+0x1578/0x1cf0 fs/ocfs2/file.c:2472 do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1 do_iter_write+0x205/0x7b0 fs/read_write.c:855 iter_file_splice_write+0x665/0xc50 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:956 splice_direct_to_actor+0x4de/0xbd0 fs/splice.c:902 do_splice_direct+0x1b6/0x2c0 fs/splice.c:1008 do_sendfile+0x5d5/0xec0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x13b/0x190 fs/read_write.c:1303 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7efe936d7749 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:00007efe9193e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007efe9392dfa0 RCX: 00007efe936d7749 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007efe9375bf91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efe9392e038 R14: 00007efe9392dfa0 R15: 00007ffdc1894228 Modules linked in: ---[ end trace 630359344015dce1 ]--- RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305 Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24 RSP: 0018:ffffc9000346e1e0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff888062835008 RCX: 0000000000080000 RDX: ffffc9000d851000 RSI: 000000000000c447 RDI: 0000000000000008 RBP: ffffc9000346e910 R08: ffffc9000346eb70 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000009 R15: ffff888062834fb8 FS: 00007efe9193e6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558da54808 CR3: 000000007a6ae000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: e8 3a f2 61 fe call 0xfe61f23f 5: e9 40 01 00 00 jmp 0x14a a: e8 30 f2 61 fe call 0xfe61f23f f: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 16: fc ff df 19: 49 8d 7c 24 08 lea 0x8(%r12),%rdi 1e: 4d 8d 74 24 09 lea 0x9(%r12),%r14 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 48 8b 5c 24 20 mov 0x20(%rsp),%rbx 36: 0f 85 e6 1f 00 00 jne 0x2022 3c: 48 rex.W 3d: 2b .byte 0x2b 3e: 9c pushf 3f: 24 .byte 0x24