syzbot


BUG: Bad page map (2)

Status: auto-closed as invalid on 2022/05/13 11:22
Reported-by: syzbot+d29e9c9012717a2d6f3f@syzkaller.appspotmail.com
First crash: 1012d, last: 832d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: Bad page map 1 413d 413d 0/2 auto-obsoleted due to no activity on 2023/06/05 15:46
linux-4.19 BUG: Bad page map (3) 1 645d 645d 0/1 auto-obsoleted due to no activity on 2022/11/15 21:40
upstream BUG: Bad page map (5) mm io-uring C 35 466d 724d 22/26 fixed on 2023/02/24 13:50
upstream BUG: Bad page map (2) mm syz 127 2058d 2114d 0/26 closed as invalid on 2018/09/05 12:51
android-5-10 BUG: Bad page map (2) 1 195d 195d 0/2 auto-obsoleted due to no activity on 2024/01/10 02:50
upstream BUG: Bad page map mm 1 2117d 2117d 0/26 closed as invalid on 2018/07/08 13:28
upstream BUG: Bad page map (3) kernel 4 1927d 2053d 0/26 auto-closed as invalid on 2019/07/13 00:02
linux-4.19 BUG: Bad page map 2 1329d 1387d 0/1 auto-closed as invalid on 2021/01/01 08:20
upstream BUG: Bad page map (7) mm C done 19 205d 227d 25/26 fixed on 2023/12/21 03:45
android-54 BUG: Bad page map (2) 7 194d 313d 0/2 auto-obsoleted due to no activity on 2024/01/10 18:32
upstream BUG: Bad page map (4) mm 39 873d 1509d 0/26 auto-closed as invalid on 2022/04/02 04:25
linux-4.14 BUG: Bad page map 1 1374d 1374d 0/1 auto-closed as invalid on 2020/11/16 16:05
upstream BUG: Bad page map (6) mm 1 380d 376d 0/26 auto-obsoleted due to no activity on 2023/07/09 13:20
android-54 BUG: Bad page map 1 608d 608d 0/2 auto-obsoleted due to no activity on 2022/12/23 04:05

Sample crash report:
swap_dup: Bad swap file entry 2003ffffffffffff
swap_dup: Bad swap file entry 2003ffffffffffff
swap_dup: Bad swap file entry 2003ffffffffffff
swap_dup: Bad swap file entry 2003ffffffffffff
swap_info_get: Bad swap file entry 2003ffffffffffff
BUG: Bad page map in process syz-executor.0  pte:8000000000000000 pmd:1bf565067
addr:00000000264be4b7 vm_flags:180400fb anon_vma:          (null) mapping:00000000f8e42803 index:89
file:kcov fault:          (null) mmap:kcov_mmap readpage:          (null)
CPU: 1 PID: 28979 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_bad_pte.cold+0x1c5/0x222 mm/memory.c:785
 zap_pte_range mm/memory.c:1397 [inline]
 zap_pmd_range mm/memory.c:1463 [inline]
 zap_pud_range mm/memory.c:1492 [inline]
 zap_p4d_range mm/memory.c:1513 [inline]
 unmap_page_range+0x1cbb/0x2c50 mm/memory.c:1534
 unmap_single_vma+0x198/0x300 mm/memory.c:1579
 unmap_vmas+0xa9/0x180 mm/memory.c:1609
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 copy_process.part.0+0x57e4/0x8260 kernel/fork.c:2119
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f28da08feb9
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:00007f28d89a2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000039
RAX: ffffffffffffffda RBX: 00007f28da1a31d0 RCX: 00007f28da08feb9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f28da0ea08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffede8677ff R14: 00007f28d89a2300 R15: 0000000000022000
swap_info_get: Bad swap file entry 2003ffffffffffff
BUG: Bad page map in process syz-executor.0  pte:8000000000000000 pmd:1bf565067
addr:00000000b2ef642f vm_flags:180400fb anon_vma:          (null) mapping:00000000f8e42803 index:100
file:kcov fault:          (null) mmap:kcov_mmap readpage:          (null)
CPU: 1 PID: 28979 Comm: syz-executor.0 Tainted: G    B             4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_bad_pte.cold+0x1c5/0x222 mm/memory.c:785
 zap_pte_range mm/memory.c:1397 [inline]
 zap_pmd_range mm/memory.c:1463 [inline]
 zap_pud_range mm/memory.c:1492 [inline]
 zap_p4d_range mm/memory.c:1513 [inline]
 unmap_page_range+0x1cbb/0x2c50 mm/memory.c:1534
 unmap_single_vma+0x198/0x300 mm/memory.c:1579
 unmap_vmas+0xa9/0x180 mm/memory.c:1609
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 copy_process.part.0+0x57e4/0x8260 kernel/fork.c:2119
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f28da08feb9
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:00007f28d89a2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000039
RAX: ffffffffffffffda RBX: 00007f28da1a31d0 RCX: 00007f28da08feb9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f28da0ea08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffede8677ff R14: 00007f28d89a2300 R15: 0000000000022000
swap_info_get: Bad swap file entry 2003ffffffffffff
BUG: Bad page map in process syz-executor.0  pte:8000000000000000 pmd:1bf565067
addr:00000000eb3ded83 vm_flags:180400fb anon_vma:          (null) mapping:00000000f8e42803 index:177
file:kcov fault:          (null) mmap:kcov_mmap readpage:          (null)
CPU: 1 PID: 28979 Comm: syz-executor.0 Tainted: G    B             4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_bad_pte.cold+0x1c5/0x222 mm/memory.c:785
 zap_pte_range mm/memory.c:1397 [inline]
 zap_pmd_range mm/memory.c:1463 [inline]
 zap_pud_range mm/memory.c:1492 [inline]
 zap_p4d_range mm/memory.c:1513 [inline]
 unmap_page_range+0x1cbb/0x2c50 mm/memory.c:1534
 unmap_single_vma+0x198/0x300 mm/memory.c:1579
 unmap_vmas+0xa9/0x180 mm/memory.c:1609
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 copy_process.part.0+0x57e4/0x8260 kernel/fork.c:2119
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f28da08feb9
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:00007f28d89a2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000039
RAX: ffffffffffffffda RBX: 00007f28da1a31d0 RCX: 00007f28da08feb9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f28da0ea08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffede8677ff R14: 00007f28d89a2300 R15: 0000000000022000
swap_info_get: Bad swap file entry 2003ffffffffffff
BUG: Bad page map in process syz-executor.0  pte:8000000000000000 pmd:1bf565067
addr:000000007bc52276 vm_flags:180400fb anon_vma:          (null) mapping:00000000f8e42803 index:1ee
file:kcov fault:          (null) mmap:kcov_mmap readpage:          (null)
CPU: 1 PID: 28979 Comm: syz-executor.0 Tainted: G    B             4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_bad_pte.cold+0x1c5/0x222 mm/memory.c:785
 zap_pte_range mm/memory.c:1397 [inline]
 zap_pmd_range mm/memory.c:1463 [inline]
 zap_pud_range mm/memory.c:1492 [inline]
 zap_p4d_range mm/memory.c:1513 [inline]
 unmap_page_range+0x1cbb/0x2c50 mm/memory.c:1534
 unmap_single_vma+0x198/0x300 mm/memory.c:1579
 unmap_vmas+0xa9/0x180 mm/memory.c:1609
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 copy_process.part.0+0x57e4/0x8260 kernel/fork.c:2119
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f28da08feb9
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:00007f28d89a2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000039
RAX: ffffffffffffffda RBX: 00007f28da1a31d0 RCX: 00007f28da08feb9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f28da0ea08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffede8677ff R14: 00007f28d89a2300 R15: 0000000000022000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 28976 Comm: syz-executor.0 Tainted: G    B             4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:page_zonenum include/linux/mm.h:850 [inline]
RIP: 0010:is_zone_device_page include/linux/mm.h:856 [inline]
RIP: 0010:is_device_public_page include/linux/mm.h:896 [inline]
RIP: 0010:copy_one_pte mm/memory.c:1063 [inline]
RIP: 0010:copy_pte_range mm/memory.c:1114 [inline]
RIP: 0010:copy_pmd_range mm/memory.c:1165 [inline]
RIP: 0010:copy_pud_range mm/memory.c:1199 [inline]
RIP: 0010:copy_p4d_range mm/memory.c:1221 [inline]
RIP: 0010:copy_page_range+0x171b/0x2ff0 mm/memory.c:1283
Code: d6 ff 49 31 ee e8 e5 0b d6 ff 49 c1 e6 0c 48 b8 00 00 00 00 00 ea ff ff 49 c1 ee 18 49 c1 e6 06 49 01 c6 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 0f 85 09 16 00 00 4d 8b 26 bf 04 00 00 00 48 c7 c5
RSP: 0018:ffff88803eaa7a28 EFLAGS: 00010202
RAX: 0000053fc47ffff8 RBX: 0000000000000008 RCX: ffffffff818c7983
RDX: 0000000000000000 RSI: ffffffff818c798b RDI: 0000000000000007
RBP: ffffffffffffffff R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000007 R11: 00000000d2cc1d79 R12: 0770000000000770
R13: dffffc0000000000 R14: 000029fe23ffffc0 R15: 0000000000000028
FS:  00007f28d89a2700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f28d89a26bc CR3: 0000000025663000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dup_mmap kernel/fork.c:549 [inline]
 dup_mm kernel/fork.c:1285 [inline]
 copy_mm kernel/fork.c:1341 [inline]
 copy_process.part.0+0x5b22/0x8260 kernel/fork.c:1913
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f28da08feb9
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:00007f28d89a2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000039
RAX: ffffffffffffffda RBX: 00007f28da1a31d0 RCX: 00007f28da08feb9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f28da0ea08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffede8677ff R14: 00007f28d89a2300 R15: 0000000000022000
Modules linked in:
---[ end trace b0062d9ed12d8e31 ]---
RIP: 0010:page_zonenum include/linux/mm.h:850 [inline]
RIP: 0010:is_zone_device_page include/linux/mm.h:856 [inline]
RIP: 0010:is_device_public_page include/linux/mm.h:896 [inline]
RIP: 0010:copy_one_pte mm/memory.c:1063 [inline]
RIP: 0010:copy_pte_range mm/memory.c:1114 [inline]
RIP: 0010:copy_pmd_range mm/memory.c:1165 [inline]
RIP: 0010:copy_pud_range mm/memory.c:1199 [inline]
RIP: 0010:copy_p4d_range mm/memory.c:1221 [inline]
RIP: 0010:copy_page_range+0x171b/0x2ff0 mm/memory.c:1283
Code: d6 ff 49 31 ee e8 e5 0b d6 ff 49 c1 e6 0c 48 b8 00 00 00 00 00 ea ff ff 49 c1 ee 18 49 c1 e6 06 49 01 c6 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 0f 85 09 16 00 00 4d 8b 26 bf 04 00 00 00 48 c7 c5
RSP: 0018:ffff88803eaa7a28 EFLAGS: 00010202
RAX: 0000053fc47ffff8 RBX: 0000000000000008 RCX: ffffffff818c7983
RDX: 0000000000000000 RSI: ffffffff818c798b RDI: 0000000000000007
RBP: ffffffffffffffff R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000007 R11: 00000000d2cc1d79 R12: 0770000000000770
R13: dffffc0000000000 R14: 000029fe23ffffc0 R15: 0000000000000028
FS:  00007f28d89a2700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f28d89a26bc CR3: 0000000025663000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	ff 49 31             	decl   0x31(%rcx)
   3:	ee                   	out    %al,(%dx)
   4:	e8 e5 0b d6 ff       	callq  0xffd60bee
   9:	49 c1 e6 0c          	shl    $0xc,%r14
   d:	48 b8 00 00 00 00 00 	movabs $0xffffea0000000000,%rax
  14:	ea ff ff
  17:	49 c1 ee 18          	shr    $0x18,%r14
  1b:	49 c1 e6 06          	shl    $0x6,%r14
  1f:	49 01 c6             	add    %rax,%r14
  22:	4c 89 f0             	mov    %r14,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2e:	0f 85 09 16 00 00    	jne    0x163d
  34:	4d 8b 26             	mov    (%r14),%r12
  37:	bf 04 00 00 00       	mov    $0x4,%edi
  3c:	48                   	rex.W
  3d:	c7                   	.byte 0xc7
  3e:	c5                   	.byte 0xc5

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/13 11:22 linux-4.19.y 3f8a27f9e27b 44d1319a .config console log report info ci2-linux-4-19 BUG: Bad page map
2022/01/13 07:18 linux-4.19.y 3f8a27f9e27b 44d1319a .config console log report info ci2-linux-4-19 BUG: Bad page map
2022/01/10 11:38 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 BUG: Bad page map
2021/11/26 12:29 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info ci2-linux-4-19 BUG: Bad page map
2021/11/05 16:27 linux-4.19.y 3f8a27f9e27b 4c1be0be .config console log report info ci2-linux-4-19 BUG: Bad page map
2021/10/21 15:42 linux-4.19.y 3f8a27f9e27b c5cb7da8 .config console log report info ci2-linux-4-19 BUG: Bad page map
2021/10/05 11:51 linux-4.19.y c2276d585654 ce697b49 .config console log report info ci2-linux-4-19 BUG: Bad page map
2021/07/22 12:54 linux-4.19.y 4938296e03bd 241790bb .config console log report info ci2-linux-4-19 BUG: Bad page map
2021/07/17 19:34 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report info ci2-linux-4-19 BUG: Bad page map
2021/07/17 04:36 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report info ci2-linux-4-19 BUG: Bad page map
* Struck through repros no longer work on HEAD.