folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x593/0x1820 mm/shmem.c:1108 shmem_truncate_range mm/shmem.c:1220 [inline] shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1348 evict+0x4e8/0x9a0 fs/inode.c:796 __dentry_kill+0x20d/0x630 fs/dcache.c:625 dput+0x19f/0x2b0 fs/dcache.c:867 __fput+0x5ba/0xa50 fs/file_table.c:458 task_work_run+0x24f/0x310 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6775 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: 6775 Comm: udevd 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:ffffc9000623f1a0 EFLAGS: 00010046 RAX: 9b1a86e1d9f7f700 RBX: ffffea00016c3208 RCX: ffffc9000623ed03 RDX: 0000000000000003 RSI: ffffffff8c0aa440 RDI: ffffffff8c5fbe80 RBP: ffffc9000623f298 R08: ffffffff9019d9b7 R09: 1ffffffff2033b36 R10: dffffc0000000000 R11: fffffbfff2033b37 R12: 0000000000000000 R13: 1ffffd40002d8640 R14: 0000020000000000 R15: ffffea00016c3200 FS: 00007f81c8490c80(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f81c7c30a38 CR3: 000000009a4b2000 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 filemap_add_folio+0x24e/0x380 mm/filemap.c:987 page_cache_ra_unbounded+0x32c/0x720 mm/readahead.c:263 do_sync_mmap_readahead+0x499/0x970 filemap_fault+0x8a9/0x1490 mm/filemap.c:3325 __do_fault+0x135/0x390 mm/memory.c:4978 do_read_fault mm/memory.c:5393 [inline] do_fault mm/memory.c:5527 [inline] do_pte_missing mm/memory.c:4048 [inline] handle_pte_fault+0x39eb/0x5ee0 mm/memory.c:5872 __handle_mm_fault mm/memory.c:6015 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6183 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x459/0x8b0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x559c4d2a1780 Code: 28 00 00 00 48 89 84 24 18 08 00 00 31 c0 48 c7 84 24 08 08 00 00 00 00 00 00 48 c7 84 24 10 08 00 00 00 00 00 00 48 03 6d 38 <48> 8b 45 00 48 85 c0 74 6c 49 03 84 24 a8 00 00 00 4d 8d 44 1d 00 RSP: 002b:00007ffd37ef6020 EFLAGS: 00010202 RAX: 00007f81c7c30a38 RBX: 0000000000000006 RCX: 0000000000000010 RDX: 0000000000000000 RSI: 00007f81c7cc2380 RDI: 00007ffd37ef5ff8 RBP: 00007f81c7c30a38 R08: 0000559c4d2a14ea R09: 00007ffd37ef5698 R10: 0000000000000000 R11: 0000000000000000 R12: 0000559c5a6b6ca0 R13: 00007ffd37ef6918 R14: 00007ffd37ef691d R15: 00007ffd37ef6028