exit_mm kernel/exit.c:507 [inline] do_exit+0x909/0x2500 kernel/exit.c:793 do_group_exit+0xb2/0x2a0 kernel/exit.c:935 get_signal+0x3aa/0x2130 kernel/signal.c:2862 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ kernel BUG at include/linux/page-flags.h:796! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5915 Comm: syz-executor450 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:PageDoubleMap include/linux/page-flags.h:796 [inline] RIP: 0010:__page_mapcount+0x1fd/0x280 mm/util.c:737 Code: 5b 44 89 e0 5d 41 5c 41 5d c3 48 c7 c6 00 28 f5 88 48 89 ef e8 44 c0 03 00 0f 0b 48 c7 c6 a0 28 f5 88 48 89 ef e8 33 c0 03 00 <0f> 0b 48 c7 c6 e0 28 f5 88 4c 89 ef e8 22 c0 03 00 0f 0b 4c 89 e7 RSP: 0018:ffffc90002a9f820 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffea00 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888012674faa RBP: ffffea0001a9bf80 R08: 0000000000000029 R09: ffffc90002a9f3d7 R10: fffff52000553e7a R11: 0000000000000001 R12: 00000000ffffffff R13: ffffea0001a9bfd4 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fa9f06b0700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa9f0789d93 CR3: 000000001e6ee000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: page_mapcount include/linux/mm.h:817 [inline] smaps_account+0x225/0x800 fs/proc/task_mmu.c:477 smaps_pte_entry fs/proc/task_mmu.c:549 [inline] smaps_pte_range+0x412/0xc20 fs/proc/task_mmu.c:612 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+0x621/0x17b0 mm/pagewalk.c:379 walk_page_vma+0x216/0x2d0 mm/pagewalk.c:530 smap_gather_stats fs/proc/task_mmu.c:752 [inline] show_smap+0xaf/0x3d0 fs/proc/task_mmu.c:833 seq_read_iter+0x98b/0x1040 fs/seq_file.c:272 seq_read+0x31c/0x4f0 fs/seq_file.c:162 vfs_read+0x122/0x4c0 fs/read_write.c:479 ksys_read+0xf4/0x1d0 fs/read_write.c:619 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:0x7fa9f071f959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa9f06b0288 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fa9f07a7418 RCX: 00007fa9f071f959 RDX: 0000000000002025 RSI: 0000000020000100 RDI: 0000000000000003 RBP: 00007fa9f07a7410 R08: 00007fa9f06b0700 R09: 0000000000000000 R10: 00007fa9f06b0700 R11: 0000000000000246 R12: 00007fa9f077509c R13: 00007ffe71c45e9f R14: 00007fa9f06b0400 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:PageDoubleMap include/linux/page-flags.h:796 [inline] RIP: 0010:__page_mapcount+0x1fd/0x280 mm/util.c:737 Code: 5b 44 89 e0 5d 41 5c 41 5d c3 48 c7 c6 00 28 f5 88 48 89 ef e8 44 c0 03 00 0f 0b 48 c7 c6 a0 28 f5 88 48 89 ef e8 33 c0 03 00 <0f> 0b 48 c7 c6 e0 28 f5 88 4c 89 ef e8 22 c0 03 00 0f 0b 4c 89 e7 RSP: 0018:ffffc90002a9f820 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffea00 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888012674faa RBP: ffffea0001a9bf80 R08: 0000000000000029 R09: ffffc90002a9f3d7 R10: fffff52000553e7a R11: 0000000000000001 R12: 00000000ffffffff R13: ffffea0001a9bfd4 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fa9f06b0700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa9f0789d93 CR3: 000000001e6ee000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400