loop8: rw=524288, sector=165, nr_sectors = 1 limit=64 syz.8.26: attempt to access beyond end of device loop8: rw=524288, sector=166, nr_sectors = 1 limit=64 syz.8.26: attempt to access beyond end of device loop8: rw=524288, sector=167, nr_sectors = 1 limit=64 syz.8.26: attempt to access beyond end of device loop8: rw=0, sector=161, nr_sectors = 1 limit=64 BUG: kernel NULL pointer dereference, address: 0000000000000028 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 800000010b7be067 P4D 800000010b7be067 PUD 10eba5067 PMD 0 Oops: Oops: 0000 [#1] PREEMPT SMP PTI CPU: 0 UID: 0 PID: 5232 Comm: syz.8.26 Not tainted 6.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:exfat_get_dentry_cached fs/exfat/dir.c:727 [inline] RIP: 0010:exfat_init_ext_entry+0xba/0x140 fs/exfat/dir.c:498 Code: c0 41 39 f0 0f 84 92 00 00 00 44 89 c0 c1 e0 05 03 47 08 4c 8b 0f 41 0f b6 49 14 4c 63 d0 d3 f8 48 8b 4f 28 48 98 48 8b 04 c1 <48> 8b 40 28 49 8b 49 18 48 ff c9 4c 21 d1 4c 8d 0c 08 66 c7 04 08 RSP: 0018:ffffc9000260b908 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 000000000000007b RCX: ffffc9000260b958 RDX: ffffc9000260bb24 RSI: 0000000000000013 RDI: ffffc9000260b948 RBP: 0000000000000013 R08: 0000000000000010 R09: ffff8881092a4000 R10: 0000000000000200 R11: 000000000000e7e9 R12: ffff888174882ae8 R13: ffffc9000260b948 R14: ffffc9000260bbc8 R15: 000000000000011f FS: 00007fbc23bdb6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000028 CR3: 000000010cb2e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: exfat_add_entry+0x1cc/0x310 fs/exfat/namei.c:517 exfat_create+0xf2/0x200 fs/exfat/namei.c:565 lookup_open fs/namei.c:3649 [inline] open_last_lookups fs/namei.c:3748 [inline] path_openat+0x641/0xdf0 fs/namei.c:3984 do_filp_open+0xc5/0x180 fs/namei.c:4014 do_sys_openat2+0x7e/0xe0 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_creat fs/open.c:1495 [inline] __se_sys_creat fs/open.c:1489 [inline] __x64_sys_creat+0x46/0x70 fs/open.c:1489 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbc22d80809 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:00007fbc23bdb058 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007fbc22f46080 RCX: 00007fbc22d80809 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000e00 RBP: 00007fbc22df393e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fbc22f46080 R15: 00007ffc698917c8 Modules linked in: CR2: 0000000000000028 ---[ end trace 0000000000000000 ]--- RIP: 0010:exfat_get_dentry_cached fs/exfat/dir.c:727 [inline] RIP: 0010:exfat_init_ext_entry+0xba/0x140 fs/exfat/dir.c:498 Code: c0 41 39 f0 0f 84 92 00 00 00 44 89 c0 c1 e0 05 03 47 08 4c 8b 0f 41 0f b6 49 14 4c 63 d0 d3 f8 48 8b 4f 28 48 98 48 8b 04 c1 <48> 8b 40 28 49 8b 49 18 48 ff c9 4c 21 d1 4c 8d 0c 08 66 c7 04 08 RSP: 0018:ffffc9000260b908 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 000000000000007b RCX: ffffc9000260b958 RDX: ffffc9000260bb24 RSI: 0000000000000013 RDI: ffffc9000260b948 RBP: 0000000000000013 R08: 0000000000000010 R09: ffff8881092a4000 R10: 0000000000000200 R11: 000000000000e7e9 R12: ffff888174882ae8 R13: ffffc9000260b948 R14: ffffc9000260bbc8 R15: 000000000000011f FS: 00007fbc23bdb6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000028 CR3: 000000010cb2e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c0 41 39 f0 rolb $0xf0,0x39(%rcx) 4: 0f 84 92 00 00 00 je 0x9c a: 44 89 c0 mov %r8d,%eax d: c1 e0 05 shl $0x5,%eax 10: 03 47 08 add 0x8(%rdi),%eax 13: 4c 8b 0f mov (%rdi),%r9 16: 41 0f b6 49 14 movzbl 0x14(%r9),%ecx 1b: 4c 63 d0 movslq %eax,%r10 1e: d3 f8 sar %cl,%eax 20: 48 8b 4f 28 mov 0x28(%rdi),%rcx 24: 48 98 cltq 26: 48 8b 04 c1 mov (%rcx,%rax,8),%rax * 2a: 48 8b 40 28 mov 0x28(%rax),%rax <-- trapping instruction 2e: 49 8b 49 18 mov 0x18(%r9),%rcx 32: 48 ff c9 dec %rcx 35: 4c 21 d1 and %r10,%rcx 38: 4c 8d 0c 08 lea (%rax,%rcx,1),%r9 3c: 66 data16 3d: c7 .byte 0xc7 3e: 04 08 add $0x8,%al