syzbot


BUG: unable to handle kernel paging request in free_pages_and_swap_cache

Status: closed as invalid on 2018/09/05 12:51
Subsystems: mm
[Documentation on labels]
First crash: 2604d, last: 2552d

Sample crash report:
BUG: unable to handle kernel paging request at 0000000007da1208
PGD 800000013fcd0067 P4D 800000013fcd0067 PUD 13fcd3067 PMD 0 
Oops: 0000 [#1] SMP PTI
CPU: 0 PID: 12223 Comm: syz-executor2 Not tainted 4.19.0-rc1+ #40
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:197 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:PageSwapCache include/linux/page-flags.h:338 [inline]
RIP: 0010:free_swap_cache mm/swap_state.c:290 [inline]
RIP: 0010:free_pages_and_swap_cache+0xff/0x570 mm/swap_state.c:318
Code: ff 4c 8b 38 48 89 85 60 ff ff ff 48 89 c7 e8 c8 d6 0c 00 4c 8b 20 44 8b 32 49 8d 5f 08 4d 85 e4 0f 85 f8 01 00 00 44 89 75 d0 <4d> 8b 77 08 48 89 9d 68 ff ff ff 48 89 df e8 9e d6 0c 00 4c 8b 28
RSP: 0018:ffff880116e1f1d0 EFLAGS: 00010246
RAX: ffff880127f1cf90 RBX: 0000000007da1208 RCX: ffff8801a8fa4f90
RDX: ffff8801a8fa4f90 RSI: aaaaaaaaaaaab000 RDI: ffffea0006a9a9a0
RBP: ffff880116e1f270 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 00000000000001f1 R14: 000000008ee000ab R15: 0000000007da1200
FS:  00007f292fbc9700(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000007da1208 CR3: 000000013fef2000 CR4: 00000000001406f0
DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 tlb_flush_mmu_free mm/memory.c:250 [inline]
 zap_pte_range mm/memory.c:1406 [inline]
 zap_pmd_range mm/memory.c:1441 [inline]
 zap_pud_range mm/memory.c:1470 [inline]
 zap_p4d_range mm/memory.c:1491 [inline]
 unmap_page_range+0x37b8/0x4170 mm/memory.c:1512
 unmap_single_vma+0x445/0x5e0 mm/memory.c:1557
 unmap_vmas+0x251/0x380 mm/memory.c:1587
 exit_mmap+0x4b7/0x940 mm/mmap.c:3093
 __mmput+0x154/0x5f0 kernel/fork.c:1003
 mmput+0xa7/0xe0 kernel/fork.c:1024
 exit_mm+0x6dd/0x790 kernel/exit.c:546
 do_exit+0xbf7/0x3890 kernel/exit.c:856
 do_group_exit+0x1a0/0x350 kernel/exit.c:972
 get_signal+0x1425/0x1ef0 kernel/signal.c:2513
 do_signal+0x11d/0x2060 arch/x86/kernel/signal.c:816
 exit_to_usermode_loop arch/x86/entry/common.c:162 [inline]
 prepare_exit_to_usermode+0x273/0x410 arch/x86/entry/common.c:197
 syscall_return_slowpath+0xdb/0x700 arch/x86/entry/common.c:268
 do_syscall_64+0xde/0x100 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x457099
Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f292fbc8cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000000 RBX: 00000000009300a8 RCX: 0000000000457099
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000009300a8
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000009300ac
R13: 0000000000a3fb9f R14: 00007f292fbc99c0 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: 0000000007da1208
---[ end trace 89e4fc6ee41c6da1 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:197 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:PageSwapCache include/linux/page-flags.h:338 [inline]
RIP: 0010:free_swap_cache mm/swap_state.c:290 [inline]
RIP: 0010:free_pages_and_swap_cache+0xff/0x570 mm/swap_state.c:318
Code: ff 4c 8b 38 48 89 85 60 ff ff ff 48 89 c7 e8 c8 d6 0c 00 4c 8b 20 44 8b 32 49 8d 5f 08 4d 85 e4 0f 85 f8 01 00 00 44 89 75 d0 <4d> 8b 77 08 48 89 9d 68 ff ff ff 48 89 df e8 9e d6 0c 00 4c 8b 28
RSP: 0018:ffff880116e1f1d0 EFLAGS: 00010246
RAX: ffff880127f1cf90 RBX: 0000000007da1208 RCX: ffff8801a8fa4f90
RDX: ffff8801a8fa4f90 RSI: aaaaaaaaaaaab000 RDI: ffffea0006a9a9a0
RBP: ffff880116e1f270 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 00000000000001f1 R14: 000000008ee000ab R15: 0000000007da1200
FS:  00007f292fbc9700(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000007da1208 CR3: 000000013fef2000 CR4: 00000000001406f0
DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/02 04:52 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
2018/08/30 20:21 https://github.com/google/kmsan.git master 25114c64b719 938220fd .config console log report ci-upstream-kmsan-gce
2018/08/30 06:31 https://github.com/google/kmsan.git master 2dca2cbde67a 6c7e9d3d .config console log report ci-upstream-kmsan-gce
2018/08/24 12:40 https://github.com/google/kmsan.git master 0cc51dc9a291 95b5c82b .config console log report ci-upstream-kmsan-gce
2018/08/23 19:48 https://github.com/google/kmsan.git master 0cc51dc9a291 95b5c82b .config console log report ci-upstream-kmsan-gce
2018/08/20 13:34 https://github.com/google/kmsan.git master 0cc51dc9a291 2dc4378f .config console log report ci-upstream-kmsan-gce
2018/08/19 13:35 https://github.com/google/kmsan.git master 0cc51dc9a291 2dc4378f .config console log report ci-upstream-kmsan-gce
2018/08/18 20:44 https://github.com/google/kmsan.git master 0cc51dc9a291 de20bcbb .config console log report ci-upstream-kmsan-gce
2018/08/16 04:09 https://github.com/google/kmsan.git master 0cc51dc9a291 9ccc1d45 .config console log report ci-upstream-kmsan-gce
2018/08/15 05:40 https://github.com/google/kmsan.git master 0cc51dc9a291 0e6dcb88 .config console log report ci-upstream-kmsan-gce
2018/08/11 22:55 https://github.com/google/kmsan.git master 0cc51dc9a291 7a88b141 .config console log report ci-upstream-kmsan-gce
2018/07/24 09:12 https://github.com/google/kmsan.git master d1c2a46a46f6 912c93d7 .config console log report ci-upstream-kmsan-gce
2018/07/23 16:48 https://github.com/google/kmsan.git master d1c2a46a46f6 f69c5fcd .config console log report ci-upstream-kmsan-gce
2018/07/22 23:57 https://github.com/google/kmsan.git master d1c2a46a46f6 8cc079c3 .config console log report ci-upstream-kmsan-gce
2018/07/21 11:22 https://github.com/google/kmsan.git master d1c2a46a46f6 8cc079c3 .config console log report ci-upstream-kmsan-gce
2018/07/18 23:07 https://github.com/google/kmsan.git master 80ecacc456c1 49f35839 .config console log report ci-upstream-kmsan-gce
2018/07/17 16:29 https://github.com/google/kmsan.git master 80ecacc456c1 6d5bd5b5 .config console log report ci-upstream-kmsan-gce
2018/07/16 08:32 https://github.com/google/kmsan.git master 80ecacc456c1 92a49505 .config console log report ci-upstream-kmsan-gce
2018/07/16 04:06 https://github.com/google/kmsan.git master 80ecacc456c1 92a49505 .config console log report ci-upstream-kmsan-gce
2018/07/12 07:39 https://github.com/google/kmsan.git master b64f7ec04e12 2e0e3130 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.