release_pages+0x825/0x1480 mm/swap.c:955 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:1418 [inline] zap_pmd_range mm/memory.c:1467 [inline] zap_pud_range mm/memory.c:1496 [inline] zap_p4d_range mm/memory.c:1517 [inline] unmap_page_range+0x1cac/0x29f0 mm/memory.c:1538 unmap_single_vma+0x198/0x310 mm/memory.c:1583 unmap_vmas+0x16b/0x2f0 mm/memory.c:1615 exit_mmap+0x1d0/0x630 mm/mmap.c:3170 __mmput+0x122/0x4b0 kernel/fork.c:1113 mmput+0x56/0x60 kernel/fork.c:1134 exit_mm kernel/exit.c:507 [inline] do_exit+0xb27/0x2b40 kernel/exit.c:819 do_group_exit+0x125/0x310 kernel/exit.c:929 __do_sys_exit_group kernel/exit.c:940 [inline] __se_sys_exit_group kernel/exit.c:938 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:938 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 include/linux/page-flags.h:785! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 29071 Comm: syz-executor.2 Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:PageDoubleMap include/linux/page-flags.h:785 [inline] RIP: 0010:__page_mapcount+0x2d2/0x350 mm/util.c:744 Code: e8 93 20 d1 ff 48 c7 c6 00 00 b6 89 48 89 ef e8 34 4e 04 00 0f 0b e8 7d 20 d1 ff 48 c7 c6 a0 00 b6 89 48 89 ef e8 1e 4e 04 00 <0f> 0b e8 67 20 d1 ff 48 c7 c6 e0 00 b6 89 4c 89 f7 e8 08 4e 04 00 RSP: 0018:ffffc900182a7590 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000db27000 RDX: 0000000000040000 RSI: ffffffff81a6c772 RDI: 0000000000000003 RBP: ffffea00020703c0 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff8910226c R11: 00000000ffffffff R12: 00000000ffffffff R13: 00000000ffffea00 R14: ffffc900182a7948 R15: ffffea0002070001 FS: 00007f004e677700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2bd29000 CR3: 0000000076e5a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: page_mapcount include/linux/mm.h:837 [inline] smaps_account+0x53c/0x9f0 fs/proc/task_mmu.c:466 smaps_pte_entry fs/proc/task_mmu.c:538 [inline] smaps_pte_range+0x611/0x1250 fs/proc/task_mmu.c:601 walk_pmd_range mm/pagewalk.c:128 [inline] walk_pud_range mm/pagewalk.c:205 [inline] walk_p4d_range mm/pagewalk.c:240 [inline] walk_pgd_range mm/pagewalk.c:277 [inline] __walk_page_range+0xe23/0x1ea0 mm/pagewalk.c:379 walk_page_vma+0x277/0x350 mm/pagewalk.c:530 smap_gather_stats.part.0+0x148/0x260 fs/proc/task_mmu.c:768 smap_gather_stats fs/proc/task_mmu.c:741 [inline] show_smaps_rollup+0x314/0x9b0 fs/proc/task_mmu.c:871 seq_read_iter+0x4f6/0x1240 fs/seq_file.c:230 seq_read+0x3e0/0x5b0 fs/seq_file.c:162 do_loop_readv_writev fs/read_write.c:746 [inline] do_loop_readv_writev fs/read_write.c:733 [inline] do_iter_read+0x501/0x760 fs/read_write.c:788 vfs_readv+0xe5/0x150 fs/read_write.c:906 do_preadv fs/read_write.c:998 [inline] __do_sys_preadv fs/read_write.c:1048 [inline] __se_sys_preadv fs/read_write.c:1043 [inline] __x64_sys_preadv+0x231/0x310 fs/read_write.c:1043 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:0x7f0051122ae9 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:00007f004e677188 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f0051236020 RCX: 00007f0051122ae9 RDX: 0000000000000001 RSI: 0000000020000140 RDI: 0000000000000005 RBP: 00007f005117cf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0051769b2f R14: 00007f004e677300 R15: 0000000000022000 Modules linked in: ---[ end trace 3ceed9fef72ed8be ]--- RIP: 0010:PageDoubleMap include/linux/page-flags.h:785 [inline] RIP: 0010:__page_mapcount+0x2d2/0x350 mm/util.c:744 Code: e8 93 20 d1 ff 48 c7 c6 00 00 b6 89 48 89 ef e8 34 4e 04 00 0f 0b e8 7d 20 d1 ff 48 c7 c6 a0 00 b6 89 48 89 ef e8 1e 4e 04 00 <0f> 0b e8 67 20 d1 ff 48 c7 c6 e0 00 b6 89 4c 89 f7 e8 08 4e 04 00 RSP: 0018:ffffc900182a7590 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000db27000 RDX: 0000000000040000 RSI: ffffffff81a6c772 RDI: 0000000000000003 RBP: ffffea00020703c0 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff8910226c R11: 00000000ffffffff R12: 00000000ffffffff R13: 00000000ffffea00 R14: ffffc900182a7948 R15: ffffea0002070001 FS: 00007f004e677700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2bd29000 CR3: 0000000076e5a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400