do_group_exit+0x144/0x310 kernel/exit.c:994 __do_sys_exit_group kernel/exit.c:1005 [inline] __se_sys_exit_group kernel/exit.c:1003 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:166! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3501 Comm: syz-executor898 Not tainted 5.15.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:unaccount_page_cache_page+0x79d/0x8b0 mm/filemap.c:166 Code: e8 68 75 d8 ff 4c 89 f7 48 c7 c6 a0 13 93 8a e8 39 c8 0e 00 0f 0b e8 52 75 d8 ff 4c 89 f7 48 c7 c6 e0 13 93 8a e8 23 c8 0e 00 <0f> 0b 48 85 ed 75 62 e8 37 75 d8 ff 4c 89 eb eb 60 e8 2d 75 d8 ff RSP: 0018:ffffc90002ca76d0 EFLAGS: 00010046 RAX: c3dc3c702c3cab00 RBX: 0000000000000000 RCX: ffff8880248a1dc0 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: 0000000000000000 R08: ffffffff81d0f8f4 R09: ffffed1017364f24 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffd4000397ab1 R13: ffffea0001cbd588 R14: ffffea0001cbd580 R15: dffffc0000000000 FS: 0000555556486380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f582126c0e0 CR3: 0000000075911000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __delete_from_page_cache+0xd1/0x860 mm/filemap.c:231 delete_from_page_cache+0x126/0x190 mm/filemap.c:266 truncate_inode_page+0x8d/0xb0 mm/truncate.c:219 shmem_undo_range+0x535/0x1b50 mm/shmem.c:960 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x21b/0xa00 mm/shmem.c:1145 evict+0x2a4/0x620 fs/inode.c:587 __dentry_kill+0x436/0x650 fs/dcache.c:582 dentry_kill+0xbb/0x290 dput+0xd8/0x1a0 fs/dcache.c:889 __fput+0x5ec/0x890 fs/file_table.c:288 task_work_run+0x129/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f58211f4ad0 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 d1 85 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:00007ffd1d018248 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f58211f4ad0 RDX: 0000000000000000 RSI: 0000000000002000 RDI: 0000000000000004 RBP: 00007ffd1d018260 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000202 R12: 00007f58212685f0 R13: 00007ffd1d018448 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 052039a45aae83b3 ]--- RIP: 0010:unaccount_page_cache_page+0x79d/0x8b0 mm/filemap.c:166 Code: e8 68 75 d8 ff 4c 89 f7 48 c7 c6 a0 13 93 8a e8 39 c8 0e 00 0f 0b e8 52 75 d8 ff 4c 89 f7 48 c7 c6 e0 13 93 8a e8 23 c8 0e 00 <0f> 0b 48 85 ed 75 62 e8 37 75 d8 ff 4c 89 eb eb 60 e8 2d 75 d8 ff RSP: 0018:ffffc90002ca76d0 EFLAGS: 00010046 RAX: c3dc3c702c3cab00 RBX: 0000000000000000 RCX: ffff8880248a1dc0 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: 0000000000000000 R08: ffffffff81d0f8f4 R09: ffffed1017364f24 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffd4000397ab1 R13: ffffea0001cbd588 R14: ffffea0001cbd580 R15: dffffc0000000000 FS: 0000555556486380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f582126c0e0 CR3: 0000000075911000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400