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: 23942 Comm: syz-executor.0 Not tainted 6.7.0-rc5-next-20231218-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:PageTail include/linux/page-flags.h:286 [inline]
RIP: 0010:folio_flags.constprop.0+0x21/0x150 include/linux/page-flags.h:313
Code: 8b 42 00 5b 48 98 5d c3 90 41 54 55 53 48 89 fb e8 94 01 b1 ff 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 01 01 00 00 48 8b 6b 08 31 ff 83 e5 01 48 89 ee
RSP: 0018:ffffc900161bf4a8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90004392000
RDX: 0000000000000001 RSI: ffffffff81d7017c RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000000
R13: 0000000000000258 R14: ffffc900161bf828 R15: ffffffff92a3a840
FS:  00007fbb043296c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000209d0000 CR3: 000000007e2cf000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 folio_test_head include/linux/page-flags.h:785 [inline]
 folio_test_large include/linux/page-flags.h:806 [inline]
 folio_nr_pages include/linux/mm.h:2059 [inline]
 folio_file_page include/linux/pagemap.h:826 [inline]
 swapin_readahead+0x1d5/0xe40 mm/swap_state.c:888
 do_swap_page+0x4a0/0x3150 mm/memory.c:3891
 handle_pte_fault mm/memory.c:5138 [inline]
 __handle_mm_fault+0x139c/0x48f0 mm/memory.c:5276
 handle_mm_fault+0x476/0xa00 mm/memory.c:5441
 do_user_addr_fault+0x3cf/0x1000 arch/x86/mm/fault.c:1413
 handle_page_fault arch/x86/mm/fault.c:1505 [inline]
 exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1561
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71
Code: 75 f1 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 <f3> a4 c3 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 85 c9 75 b3
RSP: 0018:ffffc900161bfa98 EFLAGS: 00050206
RAX: 0000000000000001 RBX: 000000002035d000 RCX: 0000000000001000
RDX: 0000000000000000 RSI: 000000002035d000 RDI: ffff88802ef2f000
RBP: ffffc900161bfdb8 R08: 0000000000000001 R09: ffffed1005de5fff
R10: ffff88802ef2ffff R11: 0000000000000000 R12: 000000002035e000
R13: 0000000000000000 R14: ffff88802ef2f000 R15: 0000000000001000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:109 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:124 [inline]
 copy_from_user_iter lib/iov_iter.c:55 [inline]
 iterate_ubuf include/linux/iov_iter.h:29 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:245 [inline]
 iterate_and_advance include/linux/iov_iter.h:271 [inline]
 __copy_from_iter lib/iov_iter.c:268 [inline]
 _copy_from_iter+0x375/0x10f0 lib/iov_iter.c:279
 copy_page_from_iter lib/iov_iter.c:441 [inline]
 copy_page_from_iter+0xa5/0x120 lib/iov_iter.c:430
 pipe_write+0xd33/0x1b50 fs/pipe.c:550
 call_write_iter include/linux/fs.h:2084 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x64d/0xdf0 fs/read_write.c:590
 ksys_write+0x1f0/0x250 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x62/0x6a
RIP: 0033:0x7fbb0367cba9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbb043290c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fbb0379c050 RCX: 00007fbb0367cba9
RDX: 00000000fffffdef RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007fbb036c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fbb0379c050 R15: 00007ffcff957a88
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:PageTail include/linux/page-flags.h:286 [inline]
RIP: 0010:folio_flags.constprop.0+0x21/0x150 include/linux/page-flags.h:313
Code: 8b 42 00 5b 48 98 5d c3 90 41 54 55 53 48 89 fb e8 94 01 b1 ff 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 01 01 00 00 48 8b 6b 08 31 ff 83 e5 01 48 89 ee
RSP: 0018:ffffc900161bf4a8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90004392000
RDX: 0000000000000001 RSI: ffffffff81d7017c RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000000
R13: 0000000000000258 R14: ffffc900161bf828 R15: ffffffff92a3a840
FS:  00007fbb043296c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31530000 CR3: 000000007e2cf000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 42 00             	mov    0x0(%rdx),%eax
   3:	5b                   	pop    %rbx
   4:	48 98                	cltq
   6:	5d                   	pop    %rbp
   7:	c3                   	ret
   8:	90                   	nop
   9:	41 54                	push   %r12
   b:	55                   	push   %rbp
   c:	53                   	push   %rbx
   d:	48 89 fb             	mov    %rdi,%rbx
  10:	e8 94 01 b1 ff       	call   0xffb101a9
  15:	48 8d 7b 08          	lea    0x8(%rbx),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 01 01 00 00    	jne    0x135
  34:	48 8b 6b 08          	mov    0x8(%rbx),%rbp
  38:	31 ff                	xor    %edi,%edi
  3a:	83 e5 01             	and    $0x1,%ebp
  3d:	48 89 ee             	mov    %rbp,%rsi