tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:242 [inline] tlb_flush_mmu+0xe9/0x6b0 mm/mmu_gather.c:249 zap_pte_range mm/memory.c:1432 [inline] zap_pmd_range mm/memory.c:1481 [inline] zap_pud_range mm/memory.c:1510 [inline] zap_p4d_range mm/memory.c:1531 [inline] unmap_page_range+0x1c58/0x2a10 mm/memory.c:1552 unmap_single_vma+0x198/0x310 mm/memory.c:1597 unmap_vmas+0x16d/0x2f0 mm/memory.c:1629 exit_mmap+0x1d0/0x630 mm/mmap.c:3171 __mmput+0x122/0x4b0 kernel/fork.c:1115 mmput+0x58/0x60 kernel/fork.c:1136 exit_mm kernel/exit.c:501 [inline] do_exit+0xabc/0x2a30 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 __do_sys_exit_group kernel/exit.c:933 [inline] __se_sys_exit_group kernel/exit.c:931 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:931 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ kernel BUG at mm/filemap.c:2096! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 21866 Comm: syz-executor.4 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:find_lock_entries+0xcd9/0x13d0 mm/filemap.c:2096 Code: f6 ff ff e8 59 c5 d9 ff 4c 8b 7c 24 30 49 83 ef 01 e9 07 f7 ff ff e8 46 c5 d9 ff 48 c7 c6 40 1e 95 89 48 89 ef e8 37 93 0d 00 <0f> 0b e8 30 c5 d9 ff 48 c7 c6 40 14 95 89 48 89 ef e8 21 93 0d 00 RSP: 0018:ffffc9000a83f9a0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc90010ce9000 RDX: 0000000000040000 RSI: ffffffff819c3639 RDI: 0000000000000003 RBP: ffffea00024d0000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f49be9 R11: 00000000ffffffff R12: ffffea00024d0008 R13: 0000000000000200 R14: ffffea00024d0020 R15: 0000000000000240 FS: 00007f80cf5c6700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcc15eba108 CR3: 0000000077339000 CR4: 0000000000350ef0 DR0: 0080ffff00000000 DR1: 0080ffff00000000 DR2: 0080ffff00000000 DR3: 0080ffff00000000 DR6: 00000000ffff0ff0 DR7: 00000000d0000680 Call Trace: shmem_undo_range+0x1dd/0x1730 mm/shmem.c:938 shmem_truncate_range mm/shmem.c:1058 [inline] shmem_setattr+0x59f/0x8f0 mm/shmem.c:1117 notify_change+0xaef/0x10c0 fs/attr.c:410 do_truncate+0x13c/0x200 fs/open.c:64 do_sys_ftruncate+0x544/0x740 fs/open.c:192 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f80d20708d9 Code: ff ff c3 66 2e 0f 1f 84 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 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f80cf5c6188 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f80d2175020 RCX: 00007f80d20708d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f80d20cacb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdcc7ad03f R14: 00007f80cf5c6300 R15: 0000000000022000 Modules linked in: ---[ end trace f4b198ce260a4f4c ]--- RIP: 0010:find_lock_entries+0xcd9/0x13d0 mm/filemap.c:2096 Code: f6 ff ff e8 59 c5 d9 ff 4c 8b 7c 24 30 49 83 ef 01 e9 07 f7 ff ff e8 46 c5 d9 ff 48 c7 c6 40 1e 95 89 48 89 ef e8 37 93 0d 00 <0f> 0b e8 30 c5 d9 ff 48 c7 c6 40 14 95 89 48 89 ef e8 21 93 0d 00 RSP: 0018:ffffc9000a83f9a0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc90010ce9000 RDX: 0000000000040000 RSI: ffffffff819c3639 RDI: 0000000000000003 RBP: ffffea00024d0000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f49be9 R11: 00000000ffffffff R12: ffffea00024d0008 R13: 0000000000000200 R14: ffffea00024d0020 R15: 0000000000000240 FS: 00007f80cf5c6700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f982803e0a0 CR3: 0000000077339000 CR4: 0000000000350ef0 DR0: 0080ffff00000000 DR1: 0080ffff00000000 DR2: 0080ffff00000000 DR3: 0080ffff00000000 DR6: 00000000ffff0ff0 DR7: 00000000d0000680