general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 PID: 5065 Comm: syz-executor.0 Not tainted 6.3.0-rc6-next-20230413-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 0e 9b 83 ff 48 85 c0 49 89 c5 0f 84 36 0b 00 00 e8 3d d6 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:ffffc90014a9f8c8 EFLAGS: 00010207 RAX: 0000000000000003 RBX: 0000000000000000 RCX: ffffc90003ba1000 RDX: 0000000000040000 RSI: ffffffff822ca3a3 RDI: ffffffff8c8f09b0 RBP: ffff88803b84c380 R08: 0000000000000001 R09: ffffffff8c8f09b3 R10: fffffbfff191e136 R11: 0000000000000000 R12: ffff88803b84c000 R13: fffffffffffffff4 R14: dffffc0000000000 R15: ffff88803b53c8b0 FS: 00007f426267c700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa6dd186058 CR3: 000000001cd9c000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_da_write_begin+0x223/0x8b0 fs/ext4/inode.c:2917 generic_perform_write+0x256/0x570 mm/filemap.c:3921 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+0xa17/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:0x7f426188c169 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:00007f426267c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f42619abf80 RCX: 00007f426188c169 RDX: 000000000001040c RSI: 0000000020000380 RDI: 0000000000000007 RBP: 00007f426267c1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffd44f4c7af R14: 00007f426267c300 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 0e 9b 83 ff 48 85 c0 49 89 c5 0f 84 36 0b 00 00 e8 3d d6 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:ffffc90014a9f8c8 EFLAGS: 00010207 RAX: 0000000000000003 RBX: 0000000000000000 RCX: ffffc90003ba1000 RDX: 0000000000040000 RSI: ffffffff822ca3a3 RDI: ffffffff8c8f09b0 RBP: ffff88803b84c380 R08: 0000000000000001 R09: ffffffff8c8f09b3 R10: fffffbfff191e136 R11: 0000000000000000 R12: ffff88803b84c000 R13: fffffffffffffff4 R14: dffffc0000000000 R15: ffff88803b53c8b0 FS: 00007f426267c700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2271dad988 CR3: 000000001cd9c000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 00 00 add %al,(%rax) 2: e8 0e 9b 83 ff callq 0xff839b15 7: 48 85 c0 test %rax,%rax a: 49 89 c5 mov %rax,%r13 d: 0f 84 36 0b 00 00 je 0xb49 13: e8 3d d6 56 ff callq 0xff56d655 18: 49 8d 45 28 lea 0x28(%r13),%rax 1c: 48 89 84 24 80 00 00 mov %rax,0x80(%rsp) 23: 00 24: 48 c1 e8 03 shr $0x3,%rax * 28: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2d: 0f 85 eb 0c 00 00 jne 0xd1e 33: 49 83 7d 28 00 cmpq $0x0,0x28(%r13) 38: 0f 84 ba 09 00 00 je 0x9f8