RBP: 00007f2d0de601d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffdf50bc6af R14: 00007f2d0de60300 R15: 0000000000022000 general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 0 PID: 7405 Comm: syz-executor.4 Not tainted 6.3.0-rc7-next-20230418-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:folio_get_private include/linux/mm_types.h:419 [inline] RIP: 0010:ext4_write_begin+0x2e3/0x1020 fs/ext4/inode.c:1186 Code: f0 00 00 00 e8 6e 9d 83 ff 48 85 c0 49 89 c5 0f 84 36 0b 00 00 e8 fd cf 56 ff 49 8d 45 28 48 89 84 24 80 00 00 00 48 c1 e8 03 <42> 80 3c 30 00 0f 85 eb 0c 00 00 49 83 7d 28 00 0f 84 ba 09 00 00 RSP: 0018:ffffc9000c65f9b0 EFLAGS: 00010207 RAX: 0000000000000003 RBX: 0000000000000000 RCX: ffffc9000c7f1000 RDX: 0000000000040000 RSI: ffffffff822cb553 RDI: ffffffff8c8eef10 RBP: ffff888077610380 R08: 0000000000000001 R09: ffffffff8c8eef13 R10: fffffbfff191dde2 R11: 0000000000000000 R12: 0000000000001000 R13: fffffffffffffff4 R14: dffffc0000000000 R15: ffff8880358316b0 FS: 00007f2d0de60700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000201d2030 CR3: 000000002acc0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: generic_perform_write+0x256/0x570 mm/filemap.c:3927 ext4_buffered_write_iter+0x15b/0x460 fs/ext4/file.c:289 ext4_file_write_iter+0xbe0/0x1740 fs/ext4/file.c:710 call_write_iter include/linux/fs.h:1854 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xa1d/0xe40 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2d0d08c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2d0de60168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2d0d1abf80 RCX: 00007f2d0d08c169 RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f2d0de601d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffdf50bc6af R14: 00007f2d0de60300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_get_private include/linux/mm_types.h:419 [inline] RIP: 0010:ext4_write_begin+0x2e3/0x1020 fs/ext4/inode.c:1186 Code: f0 00 00 00 e8 6e 9d 83 ff 48 85 c0 49 89 c5 0f 84 36 0b 00 00 e8 fd cf 56 ff 49 8d 45 28 48 89 84 24 80 00 00 00 48 c1 e8 03 <42> 80 3c 30 00 0f 85 eb 0c 00 00 49 83 7d 28 00 0f 84 ba 09 00 00 RSP: 0018:ffffc9000c65f9b0 EFLAGS: 00010207 RAX: 0000000000000003 RBX: 0000000000000000 RCX: ffffc9000c7f1000 RDX: 0000000000040000 RSI: ffffffff822cb553 RDI: ffffffff8c8eef10 RBP: ffff888077610380 R08: 0000000000000001 R09: ffffffff8c8eef13 R10: fffffbfff191dde2 R11: 0000000000000000 R12: 0000000000001000 R13: fffffffffffffff4 R14: dffffc0000000000 R15: ffff8880358316b0 FS: 00007f2d0de60700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd21c718fc CR3: 000000002acc0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f0 00 00 lock add %al,(%rax) 3: 00 e8 add %ch,%al 5: 6e outsb %ds:(%rsi),(%dx) 6: 9d popfq 7: 83 ff 48 cmp $0x48,%edi a: 85 c0 test %eax,%eax c: 49 89 c5 mov %rax,%r13 f: 0f 84 36 0b 00 00 je 0xb4b 15: e8 fd cf 56 ff callq 0xff56d017 1a: 49 8d 45 28 lea 0x28(%r13),%rax 1e: 48 89 84 24 80 00 00 mov %rax,0x80(%rsp) 25: 00 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 0f 85 eb 0c 00 00 jne 0xd20 35: 49 83 7d 28 00 cmpq $0x0,0x28(%r13) 3a: 0f 84 ba 09 00 00 je 0x9fa