arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] irqentry_exit_to_user_mode+0x7e/0x250 kernel/entry/common.c:231 exc_page_fault+0x590/0x8b0 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 16277 at ./include/linux/mm_inline.h:265 lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265 Modules linked in: CPU: 0 UID: 0 PID: 16277 Comm: syz.2.2792 Not tainted 6.13.0-rc1-next-20241205-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265 Code: 44 89 c2 ff ba 01 00 00 00 e9 8b fa ff ff e8 35 89 c2 ff 4c 89 ff 48 c7 c6 c0 c8 13 8c e8 c6 41 0c 00 c6 05 f1 32 27 0e 01 90 <0f> 0b 90 e9 82 f6 ff ff 89 d9 80 e1 07 38 c1 0f 8c 19 f7 ff ff 48 RSP: 0000:ffffc900035768e0 EFLAGS: 00010046 RAX: 6b505e640a321a00 RBX: ffffea000112f788 RCX: ffffc90003576403 RDX: 0000000000000004 RSI: ffffffff8c0aa440 RDI: ffffffff8c5fbe80 RBP: ffffc900035769d8 R08: ffffffff9019d9b7 R09: 1ffffffff2033b36 R10: dffffc0000000000 R11: fffffbfff2033b37 R12: 0000000000000000 R13: 1ffffd4000225ef0 R14: 0000020000000000 R15: ffffea000112f780 FS: 00007f8c603ac6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffff80 CR3: 000000001bb16000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lruvec_add_folio include/linux/mm_inline.h:352 [inline] lru_add+0x704/0xdb0 mm/swap.c:154 folio_batch_move_lru+0x26b/0x420 mm/swap.c:168 __folio_batch_add_and_move+0x5bb/0xd70 mm/swap.c:196 shmem_alloc_and_add_folio+0xdd9/0x1090 mm/shmem.c:1956 shmem_get_folio_gfp+0x621/0x1840 mm/shmem.c:2419 shmem_get_folio mm/shmem.c:2525 [inline] shmem_write_begin+0x165/0x350 mm/shmem.c:3181 generic_perform_write+0x346/0x990 mm/filemap.c:4036 shmem_file_write_iter+0xf9/0x120 mm/shmem.c:3357 __kernel_write_iter+0x42a/0x940 fs/read_write.c:612 dump_emit_page fs/coredump.c:884 [inline] dump_user_range+0x4f1/0x970 fs/coredump.c:945 elf_core_dump+0x3e9f/0x4790 fs/binfmt_elf.c:2129 do_coredump+0x242a/0x2ee0 fs/coredump.c:758 get_signal+0x140b/0x1750 kernel/signal.c:3002 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] irqentry_exit_to_user_mode+0x7e/0x250 kernel/entry/common.c:231 exc_page_fault+0x590/0x8b0 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f8c5f57ff21 Code: 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 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:ffffffffffffff80 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f8c5f745fa0 RCX: 00007f8c5f57ff19 RDX: 0000000000000000 RSI: ffffffffffffff80 RDI: 0000000000000000 RBP: 00007f8c5f5f3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8c5f745fa0 R15: 00007fff17434948