panic: kernel diagnostic assertion "self->ci_proc_pmap == p->p_vmspace->vm_map.pmap" failed: file "/syzkaller/managers/main/kernel/sys/arch/amd64/amd64/pmap.c", line 1496 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157 pmap_deactivate(ffff8000216d7570) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496 cpu_exit(ffff8000216d7570) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129 exit1(ffff8000216d7570,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377 single_thread_check_locked(ffff8000216d7570,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016 userret(ffff8000216d7570) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline] userret(ffff8000216d7570) at userret+0x72 sys/kern/kern_sig.c:1970 syscall(ffff800021744790) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline] syscall(ffff800021744790) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21b4df7b50, count: 5 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "self->ci_proc_pmap == p->p_vmspace->vm_map.pmap" failed: file "/syzkaller/managers/main/kernel/sys/arch/amd64/amd64/pmap.c", line 1496 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157 pmap_deactivate(ffff8000216d7570) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496 cpu_exit(ffff8000216d7570) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129 exit1(ffff8000216d7570,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377 single_thread_check_locked(ffff8000216d7570,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016 userret(ffff8000216d7570) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline] userret(ffff8000216d7570) at userret+0x72 sys/kern/kern_sig.c:1970 syscall(ffff800021744790) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline] syscall(ffff800021744790) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21b4df7b50, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800021744420 rbx 0xfffffd806f815098 rdx 0 rcx 0 rax 0xffff8000216d7570 r8 0 r9 0x8080808080808080 r10 0x75738e3d0b6a07e7 r11 0xf5c58fb036c2937d r12 0 r13 0x39904fb5 r14 0 r15 0x1 rip 0xffffffff8152775c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021744410 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.6) pid=240705 stat=dead flags process=41008 proc=4082000 pri=84, usrpri=85, nice=20 forw=0xffffffffffffffff, list=0xffffffffffffffff,0xffffffffffffffff process=0xffff80002301d3b8 user=0xffff80002173f000, vmspace=0xfffffd807600e008 estcpu=35, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39919 293982 22273 0 2 0 syz-executor.7 43851 307577 43824 0 2 0 syz-executor.5 43851 177440 43824 0 2 0x4000000 syz-executor.5 43851 334244 43824 0 2 0x4000000 syz-executor.5 43851 1292 43824 0 2 0x4000000 syz-executor.5 43824 455930 37392 0 2 0x482 syz-executor.5 10265 432564 37392 0 2 0x2 syz-executor.0 89947 201338 37392 0 2 0x482 syz-executor.6 30624 201328 37392 0 2 0x2 syz-executor.3 88889 27684 37392 0 2 0x2 syz-executor.2 53771 492217 37392 0 2 0x2 syz-executor.4 67972 176858 37392 0 2 0x2 syz-executor.1 22273 119199 37392 0 2 0x482 syz-executor.7 9650 288250 1 0 3 0x100083 ttyin getty 82145 153217 0 0 3 0x14200 acct acct 63956 173303 0 0 3 0x14200 bored sosplice 37392 63004 93685 0 3 0x2000082 thrsleep syz-fuzzer 37392 319850 93685 0 2 0x6000482 syz-fuzzer 37392 226252 93685 0 3 0x6000082 wait syz-fuzzer 37392 481089 93685 0 3 0x6000082 thrsleep syz-fuzzer 37392 155474 93685 0 3 0x6000082 wait syz-fuzzer 37392 309264 93685 0 3 0x6000082 wait syz-fuzzer 37392 31137 93685 0 3 0x6000082 thrsleep syz-fuzzer 37392 211841 93685 0 3 0x6000082 wait syz-fuzzer 37392 281736 93685 0 3 0x6000082 wait syz-fuzzer 37392 396500 93685 0 3 0x6000082 thrsleep syz-fuzzer 37392 34118 93685 0 3 0x6000082 wait syz-fuzzer 37392 503619 93685 0 3 0x6000082 kqread syz-fuzzer 37392 478997 93685 0 3 0x6000082 wait syz-fuzzer 37392 174081 93685 0 3 0x6000082 wait syz-fuzzer 93685 510751 78623 0 3 0x10008a sigsusp ksh 78623 186448 73970 0 3 0x9a kqread sshd 73970 469104 1 0 3 0x88 kqread sshd 45622 327076 1863 73 3 0x1100090 kqread syslogd 1863 405628 1 0 3 0x100082 netio syslogd 79887 350171 1 0 3 0x100080 kqread resolvd 8224 93242 83970 77 3 0x100092 kqread dhcpleased 96559 107830 83970 77 3 0x100092 kqread dhcpleased 83970 327363 1 0 3 0x80 kqread dhcpleased 13118 522964 0 0 3 0x14200 bored smr 89144 105492 0 0 2 0x14200 zerothread 4177 254757 0 0 3 0x14200 aiodoned aiodoned 25047 486682 0 0 3 0x14200 syncer update 30810 363621 0 0 3 0x14200 cleaner cleaner 71550 204742 0 0 3 0x14200 reaper reaper 8065 251048 0 0 3 0x14200 pgdaemon pagedaemon 58009 333078 0 0 3 0x14200 bored viomb 64779 4606 0 0 3 0x40014200 acpi0 acpi0 1188 511836 0 0 3 0x14200 bored softnet3 27092 87838 0 0 3 0x14200 bored softnet2 14149 136724 0 0 3 0x14200 bored softnet1 96616 186207 0 0 3 0x14200 bored softnet0 38864 235683 0 0 3 0x14200 bored systqmp 46316 485285 0 0 3 0x14200 bored systq 76260 377343 0 0 2 0x40014200 softclock 30600 299306 0 0 3 0x40014200 idle0 1 91315 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 6442K 7482K 78643K 17558 0 pcb 13 16K 18K 78643K 2110 0 rtable 237 7K 7K 78643K 3314 0 pf 31 9K 10K 78643K 1061 0 ifaddr 44 15K 17K 78643K 687 0 ifgroup 54 2K 2K 78643K 1582 0 sysctl 3 1K 5K 78643K 5 0 counters 29 17K 17K 78643K 462 0 ioctlops 0 0K 2K 78643K 745 0 iov 0 0K 40K 78643K 3127 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1556 97K 98K 78643K 11261 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 13K 78643K 406 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 1337 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 73K 78643K 32384 0 sigio 0 0K 0K 78643K 896 0 proc 58 59K 100K 78643K 3768 0 subproc 104 6K 6K 78643K 998 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1529 0 in_multi 99 7K 7K 78643K 985 0 ether_multi 1 0K 0K 78643K 12 0 mrt 1 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 277 1235K 1235K 78643K 277 0 exec 0 0K 1K 78643K 6776 0 pfkey data 0 0K 0K 78643K 11 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 423 98K 115K 78643K 328933 0 UVM aobj 131 4K 4K 78643K 138 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1106 0 NDP 12 0K 1K 78643K 593 0 temp 74 5912K 6540K 78643K 254511 0 kqueue 12 18K 32K 78643K 2050 0 SYN cache 2 2456K 2464K 78643K 4 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 1059 0 1056 12 11 1 3 0 8 0 rtentry 112 946 0 836 6 2 4 4 0 8 0 unpcb 144 25154 0 25137 328 327 1 10 0 8 0 syncache 304 309 0 309 75 75 0 1 0 8 0 tcpqe 32 608 0 608 54 54 0 1 0 8 0 tcpcb 808 9602 0 9588 302 300 2 12 0 8 0 arp 88 161 0 143 1 0 1 1 0 8 0 ipq 40 83 0 83 12 12 0 1 0 8 0 ipqe 40 183 0 183 12 12 0 1 0 8 0 inpcb 336 20395 0 20381 423 421 2 15 0 8 0 nd6 104 248 0 224 1 0 1 1 0 8 0 pkpcb 40 73 0 73 15 15 0 1 0 8 0 kcovpl 48 74 0 66 1 0 1 1 0 8 0 ppxss 1160 184 0 184 45 45 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3557 0 3099 46 17 29 31 0 8 0 art_table 32 3558 0 3099 4 0 4 4 0 8 0 art_node 16 873 0 773 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 16 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 1335 0 1325 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 45187 0 43568 102 0 102 102 0 8 0 ffsino 240 45187 0 43568 97 1 96 96 0 8 0 nchpl 144 90302 0 89816 63 41 22 63 0 8 0 uvmvnodes 80 8322 0 0 170 0 170 170 0 8 0 vnodes 216 8322 0 0 463 0 463 463 0 8 0 namei 1024 300925 0 300923 9 8 1 2 0 8 0 vmpool 664 224 0 224 27 27 0 1 0 8 0 kstatmem 264 890 0 866 3 1 2 3 0 8 0 scxspl 216 272447 0 272447 98 97 1 8 1 8 1 plimitpl 152 4462 0 4447 1 0 1 1 0 8 0 sigapl 424 33107 0 33062 12 4 8 8 0 8 0 futexpl 64 289905 0 289904 6 5 1 1 0 8 0 knotepl 120 288200 0 288120 199 196 3 17 0 8 0 kqueuepl 184 5058 0 5050 81 80 1 7 0 8 0 pipepl 288 33343 0 33315 468 465 3 14 0 8 0 fdescpl 432 32526 0 32500 5 1 4 4 0 8 0 filepl 120 243807 0 243570 495 486 9 19 0 8 0 lockfpl 104 7394 0 7392 19 18 1 3 0 8 0 lockfspl 48 1770 0 1768 1 0 1 1 0 8 0 sessionpl 144 91 0 75 1 0 1 1 0 8 0 pgrppl 48 1065 0 1049 1 0 1 1 0 8 0 ucredpl 104 35425 0 35407 1 0 1 1 0 8 0 zombiepl 144 33078 0 33077 8 7 1 1 0 8 0 processpl 1008 33107 0 33062 12 3 9 9 0 8 0 procpl 680 98395 0 98333 89 82 7 10 0 8 0 sosppl 168 343 0 343 58 58 0 1 0 8 0 sockpl 456 46940 0 46903 1261 1254 7 36 0 8 0 mcl64k 65536 1475 0 1475 103 102 1 1 0 8 1 mcl16k 16384 645 0 645 107 107 0 1 0 8 0 mcl12k 12288 1474 0 1474 106 106 0 1 0 8 0 mcl9k 9216 755 0 755 113 113 0 1 0 8 0 mcl8k 8192 1765 0 1765 101 101 0 1 0 8 0 mcl4k 4096 3595 0 3595 51 50 1 3 0 8 1 mcl2k2 2112 302 0 302 109 109 0 4 0 8 0 mcl2k 2048 139279 0 139235 132 125 7 28 0 8 0 mtagpl 96 78 0 78 12 12 0 1 0 8 0 mbufpl 256 493710 0 493582 1156 1144 12 74 0 8 0 bufpl 288 65642 0 57318 595 0 595 595 0 8 0 anonpl 24 3127722 0 3114737 412 313 99 126 0 188 0 amapchunkpl 152 1031884 0 1031155 301 264 37 48 0 158 0 amappl16 200 63943 0 63550 351 329 22 45 0 8 0 amappl15 192 22 0 21 1 0 1 1 0 8 0 amappl14 184 365 0 351 2 1 1 2 0 8 0 amappl13 176 20 0 20 5 5 0 1 0 8 0 amappl12 168 34145 0 34117 2 0 2 2 0 8 0 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 104 0 93 1 0 1 1 0 8 0 amappl9 144 322 0 321 2 1 1 1 0 8 0 amappl8 136 1197 0 1008 8 1 7 7 0 8 0 amappl7 128 154 0 139 1 0 1 1 0 8 0 amappl6 120 972 0 948 2 1 1 2 0 8 0 amappl5 112 1153 0 1143 1 0 1 1 0 8 0 amappl4 104 1350 0 1302 4 2 2 2 0 8 0 amappl3 96 203277 0 203221 8 5 3 3 0 8 0 amappl2 88 33684 0 33619 3 1 2 3 0 8 0 amappl1 80 128424 0 127927 22 10 12 22 0 8 0 amappl 88 327184 0 326974 7 0 7 7 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 137 0 7 3 0 3 3 0 8 0 uaddrrnd 24 32750 0 32724 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 32750 0 32724 1 0 1 1 0 8 0 vmmpekpl 168 399059 0 399004 5 1 4 4 0 8 0 vmmpepl 168 1952610 0 1950398 591 465 126 139 0 357 0 vmsppl 368 32749 0 32724 3 0 3 3 0 8 0 rwobjpl 24 483818 0 473864 66 5 61 62 0 8 0 pdppl 4096 65506 0 65448 1801 1739 62 68 0 8 4 pvpl 32 8537418 0 8518966 952 776 176 360 0 265 0 pmappl 216 32749 0 32724 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 5592 0 4664 28 0 28 28 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157 pmap_deactivate(ffff8000216d7570) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496 cpu_exit(ffff8000216d7570) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129 exit1(ffff8000216d7570,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377 single_thread_check_locked(ffff8000216d7570,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016 userret(ffff8000216d7570) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline] userret(ffff8000216d7570) at userret+0x72 sys/kern/kern_sig.c:1970 syscall(ffff800021744790) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline] syscall(ffff800021744790) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21b4df7b50, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157 pmap_deactivate(ffff8000216d7570) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496 cpu_exit(ffff8000216d7570) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129 exit1(ffff8000216d7570,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377 single_thread_check_locked(ffff8000216d7570,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016 userret(ffff8000216d7570) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline] userret(ffff8000216d7570) at userret+0x72 sys/kern/kern_sig.c:1970 syscall(ffff800021744790) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline] syscall(ffff800021744790) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21b4df7b50, count: -10