general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 6006 Comm: syz-executor.5 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:PagePoisoned include/linux/page-flags.h:304 [inline] RIP: 0010:PageHead include/linux/page-flags.h:787 [inline] RIP: 0010:PageHeadHuge+0x1d/0x200 mm/hugetlb.c:1892 Code: ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 41 54 55 48 89 fd 53 e8 64 af b9 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 a2 01 00 00 48 8b 5d 00 48 c7 c7 ff ff ff ff 48 RSP: 0018:ffffc9000adef5e0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffc9000adef7c8 RCX: ffffc9000c30c000 RDX: 0000000000000000 RSI: ffffffff81c2e49c RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc9000adef7d8 R13: 0000000000000000 R14: 0000000000000000 R15: 00000000000000e2 FS: 00007f01ba288700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200e2000 CR3: 0000000074351000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_test_hugetlb include/linux/page-flags.h:831 [inline] folio_file_page include/linux/pagemap.h:683 [inline] shmem_fault+0x27c/0x8a0 mm/shmem.c:2130 __do_fault+0x107/0x600 mm/memory.c:4191 do_read_fault mm/memory.c:4542 [inline] do_fault mm/memory.c:4671 [inline] handle_pte_fault mm/memory.c:4943 [inline] __handle_mm_fault+0x2184/0x3a40 mm/memory.c:5085 handle_mm_fault+0x1c8/0x780 mm/memory.c:5206 do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1428 handle_page_fault arch/x86/mm/fault.c:1519 [inline] exc_page_fault+0x94/0x170 arch/x86/mm/fault.c:1575 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:fault_in_readable+0x175/0x290 mm/gup.c:1839 Code: 69 c9 ff 49 39 dd 0f 84 06 01 00 00 45 31 f6 eb 11 e8 8f 69 c9 ff 48 81 c3 00 10 00 00 4c 39 eb 74 1d e8 7e 69 c9 ff 45 89 f7 <8a> 03 31 ff 44 89 fe 88 44 24 28 e8 3b 66 c9 ff 45 85 ff 74 d2 e8 RSP: 0018:ffffc9000adefa40 EFLAGS: 00050246 RAX: 0000000000040000 RBX: 00000000200e2000 RCX: ffffc9000c30c000 RDX: 0000000000040000 RSI: ffffffff81b32a82 RDI: 0000000000000005 RBP: 00000000200e1280 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 000000000008c07e R12: 0000000000001000 R13: 00000000200e3000 R14: 0000000000000000 R15: 0000000000000000 fault_in_iov_iter_readable+0x24e/0x2c0 lib/iov_iter.c:356 generic_perform_write+0x1aa/0x570 mm/filemap.c:3743 ext4_buffered_write_iter+0x15b/0x460 fs/ext4/file.c:285 ext4_file_write_iter+0x8b8/0x1740 fs/ext4/file.c:694 call_write_iter include/linux/fs.h:2190 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:578 ksys_write+0x127/0x250 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f01b908a5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f01ba288168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f01b91abf80 RCX: 00007f01b908a5a9 RDX: 000000000208e24b RSI: 0000000020000280 RDI: 0000000000000004 RBP: 00007f01b90e5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc6b47e16f R14: 00007f01ba288300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:PagePoisoned include/linux/page-flags.h:304 [inline] RIP: 0010:PageHead include/linux/page-flags.h:787 [inline] RIP: 0010:PageHeadHuge+0x1d/0x200 mm/hugetlb.c:1892 Code: ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 41 54 55 48 89 fd 53 e8 64 af b9 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 a2 01 00 00 48 8b 5d 00 48 c7 c7 ff ff ff ff 48 RSP: 0018:ffffc9000adef5e0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffc9000adef7c8 RCX: ffffc9000c30c000 RDX: 0000000000000000 RSI: ffffffff81c2e49c RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc9000adef7d8 R13: 0000000000000000 R14: 0000000000000000 R15: 00000000000000e2 FS: 00007f01ba288700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fce29981058 CR3: 0000000074351000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ff 66 66 jmpq *0x66(%rsi) 3: 2e 0f 1f 84 00 00 00 nopl %cs:0x0(%rax,%rax,1) a: 00 00 c: 90 nop d: 41 54 push %r12 f: 55 push %rbp 10: 48 89 fd mov %rdi,%rbp 13: 53 push %rbx 14: e8 64 af b9 ff callq 0xffb9af7d 19: 48 89 ea mov %rbp,%rdx 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 a2 01 00 00 jne 0x1d6 34: 48 8b 5d 00 mov 0x0(%rbp),%rbx 38: 48 c7 c7 ff ff ff ff mov $0xffffffffffffffff,%rdi 3f: 48 rex.W