do_group_exit+0xd3/0x2a0 kernel/exit.c:1025 __do_sys_exit_group kernel/exit.c:1036 [inline] __se_sys_exit_group kernel/exit.c:1034 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:162! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 PID: 5201 Comm: syz-executor108 Not tainted 6.10.0-rc7-syzkaller-00076-g9d9a2f29aefd #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:filemap_unaccount_folio+0x3d1/0x870 mm/filemap.c:162 Code: 4c 8d 6b 30 31 ff 89 ee e8 4c c6 ce ff 85 ed 0f 8e 04 fd ff ff e8 3f cb ce ff 48 c7 c6 20 93 37 8b 48 89 df e8 20 17 11 00 90 <0f> 0b e8 28 cb ce ff 48 89 df e8 70 be ff ff be 08 00 00 00 48 89 RSP: 0018:ffffc9000337f708 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea000047fdc0 RCX: ffffc9000337f5b0 RDX: ffff88801c2dc880 RSI: ffffffff81bf19f0 RDI: ffff88801c2dccc4 RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff1fc8762 R10: ffffffff8fe43b17 R11: 0000000000000003 R12: ffff88802eeff9c8 R13: ffffea000047fdf0 R14: 000000000003d90c R15: ffffea000047fdd8 FS: 0000555586cda380(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe8e94b60e0 CR3: 000000002f4a8000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __filemap_remove_folio+0x115/0x750 mm/filemap.c:231 filemap_remove_folio+0xc8/0x210 mm/filemap.c:264 truncate_inode_folio+0x49/0x70 mm/truncate.c:195 shmem_undo_range+0x378/0x1160 mm/shmem.c:1012 shmem_truncate_range mm/shmem.c:1125 [inline] shmem_evict_inode+0x3a3/0xbb0 mm/shmem.c:1253 evict+0x2ed/0x6c0 fs/inode.c:667 iput_final fs/inode.c:1741 [inline] iput.part.0+0x5a8/0x7f0 fs/inode.c:1767 iput+0x5c/0x80 fs/inode.c:1757 dentry_unlink_inode+0x295/0x480 fs/dcache.c:400 __dentry_kill+0x1d0/0x600 fs/dcache.c:603 dput.part.0+0x4b1/0x9b0 fs/dcache.c:845 dput+0x1f/0x30 fs/dcache.c:835 __fput+0x54e/0xbb0 fs/file_table.c:430 __fput_sync+0x47/0x50 fs/file_table.c:507 __do_sys_close fs/open.c:1563 [inline] __se_sys_close fs/open.c:1548 [inline] __x64_sys_close+0x86/0x100 fs/open.c:1548 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe8e943dd10 Code: ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 80 3d 91 93 07 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c RSP: 002b:00007ffee73fee58 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fe8e943dd10 RDX: 0000000000000000 RSI: 0000000000002000 RDI: 0000000000000004 RBP: 00007fe8e94880e3 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000202 R12: 00007fe8e948d09c R13: 00007fe8e94880a3 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x3d1/0x870 mm/filemap.c:162 Code: 4c 8d 6b 30 31 ff 89 ee e8 4c c6 ce ff 85 ed 0f 8e 04 fd ff ff e8 3f cb ce ff 48 c7 c6 20 93 37 8b 48 89 df e8 20 17 11 00 90 <0f> 0b e8 28 cb ce ff 48 89 df e8 70 be ff ff be 08 00 00 00 48 89 RSP: 0018:ffffc9000337f708 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea000047fdc0 RCX: ffffc9000337f5b0 RDX: ffff88801c2dc880 RSI: ffffffff81bf19f0 RDI: ffff88801c2dccc4 RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff1fc8762 R10: ffffffff8fe43b17 R11: 0000000000000003 R12: ffff88802eeff9c8 R13: ffffea000047fdf0 R14: 000000000003d90c R15: ffffea000047fdd8 FS: 0000555586cda380(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe8e94b60e0 CR3: 000000002f4a8000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400