panic: pr_find_pagehead: mbufpl: incorrect page Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821b6bf9) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff8256f538,fffffd806a000000) at pool_do_put+0x36a pool_put(ffffffff8256f538,fffffd806a000000) at pool_put+0x4b sys/kern/subr_pool.c:802 m_free(fffffd806a000000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001d628358) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001d628358) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff8000009f0a78) at ifq_purge+0x97 sys/net/ifq.c:423 tapclose(5d00,7,2000,ffff8000ffff2c70) at tapclose+0xed tun_dev_close sys/net/if_tun.c:464 [inline] tapclose(5d00,7,2000,ffff8000ffff2c70) at tapclose+0xed sys/net/if_tun.c:443 spec_close(ffff80001d628470) at spec_close+0x311 sys/kern/spec_vnops.c:555 VOP_CLOSE(fffffd805d69fc30,7,fffffd806c3be840,ffff8000ffff2c70) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd8055cc45b0,ffff8000ffff2c70) at vn_closefile+0xd3 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8055cc45b0,ffff8000ffff2c70) at vn_closefile+0xd3 sys/kern/vfs_vnops.c:610 fdrop(fffffd8055cc45b0,ffff8000ffff2c70) at fdrop+0xc2 sys/kern/kern_descrip.c:1271 closef(fffffd8055cc45b0,ffff8000ffff2c70) at closef+0x118 sys/kern/kern_descrip.c:1255 fdfree(ffff8000ffff2c70) at fdfree+0x100 sys/kern/kern_descrip.c:1187 end trace frame: 0xffff80001d6286c0, count: 0 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 pr_find_pagehead: mbufpl: incorrect page ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821b6bf9) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff8256f538,fffffd806a000000) at pool_do_put+0x36a pool_put(ffffffff8256f538,fffffd806a000000) at pool_put+0x4b sys/kern/subr_pool.c:802 m_free(fffffd806a000000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001d628358) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001d628358) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff8000009f0a78) at ifq_purge+0x97 sys/net/ifq.c:423 tapclose(5d00,7,2000,ffff8000ffff2c70) at tapclose+0xed tun_dev_close sys/net/if_tun.c:464 [inline] tapclose(5d00,7,2000,ffff8000ffff2c70) at tapclose+0xed sys/net/if_tun.c:443 spec_close(ffff80001d628470) at spec_close+0x311 sys/kern/spec_vnops.c:555 VOP_CLOSE(fffffd805d69fc30,7,fffffd806c3be840,ffff8000ffff2c70) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd8055cc45b0,ffff8000ffff2c70) at vn_closefile+0xd3 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8055cc45b0,ffff8000ffff2c70) at vn_closefile+0xd3 sys/kern/vfs_vnops.c:610 fdrop(fffffd8055cc45b0,ffff8000ffff2c70) at fdrop+0xc2 sys/kern/kern_descrip.c:1271 closef(fffffd8055cc45b0,ffff8000ffff2c70) at closef+0x118 sys/kern/kern_descrip.c:1255 fdfree(ffff8000ffff2c70) at fdfree+0x100 sys/kern/kern_descrip.c:1187 exit1(ffff8000ffff2c70,0,19,1) at exit1+0x334 sys/kern/kern_exit.c:196 postsig(ffff8000ffff2c70,19) at postsig+0x4a8 sigexit sys/kern/kern_sig.c:1476 [inline] postsig(ffff8000ffff2c70,19) at postsig+0x4a8 sys/kern/kern_sig.c:1408 userret(ffff8000ffff2c70) at userret+0x159 sys/kern/kern_sig.c:1860 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7f7ffffbc800, count: -18 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d628100 rbx 0xffff80001d6281b0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d6280c0 r9 0x1 r10 0 r11 0x6e30e666f3c14be7 r12 0x3000000008 r13 0xffff80001d628110 r14 0x100 r15 0x1 rip 0xffffffff81f0b988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6280f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=224400 stat=onproc flags process=a proc=2000 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3650,0xffff8000ffff38d8 process=0xffff8000ffff70f0 user=0xffff80001d623000, vmspace=0xfffffd806b736888 estcpu=36, cpticks=2, pctcpu=0.1 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 85821 170821 0 0 3 0x14200 acct acct 47606 140156 0 0 3 0x14200 bored sosplice 51194 108602 77894 0 3 0x82 nanosleep syz-executor.1 77894 301388 75454 0 3 0x82 thrsleep syz-fuzzer 77894 165808 75454 0 3 0x4000082 thrsleep syz-fuzzer 77894 253850 75454 0 3 0x4000082 thrsleep syz-fuzzer 77894 51858 75454 0 3 0x4000082 thrsleep syz-fuzzer 77894 315968 75454 0 3 0x4000082 thrsleep syz-fuzzer 77894 128215 75454 0 3 0x4000082 thrsleep syz-fuzzer 77894 462685 75454 0 3 0x4000082 thrsleep syz-fuzzer 77894 361583 75454 0 2 0x4000082 syz-fuzzer 75454 251026 35067 0 3 0x10008a pause ksh 35067 485875 24111 0 3 0x92 select sshd 28659 154523 1 0 3 0x100083 ttyin getty 24111 493875 1 0 3 0x80 select sshd 91450 71125 5578 73 3 0x100090 kqread syslogd 5578 375783 1 0 3 0x100082 netio syslogd 71295 488358 1 77 3 0x100090 poll dhclient 87004 260467 1 0 3 0x80 poll dhclient 1037 83276 0 0 2 0x14200 zerothread 90208 301912 0 0 3 0x14200 aiodoned aiodoned 5556 113955 0 0 3 0x14200 syncer update 65260 112688 0 0 3 0x14200 cleaner cleaner 81775 334357 0 0 3 0x14200 reaper reaper 868 139969 0 0 3 0x14200 pgdaemon pagedaemon 93845 64711 0 0 3 0x14200 bored crynlk 80052 422286 0 0 3 0x14200 bored crypto 60839 429231 0 0 3 0x40014200 acpi0 acpi0 33043 517802 0 0 2 0x14200 softnet 41032 467300 0 0 3 0x14200 bored systqmp 74164 138685 0 0 3 0x14200 bored systq 14322 119901 0 0 3 0x40014200 bored softclock 18742 470374 0 0 3 0x40014200 idle0 8406 298403 0 0 3 0x14200 bored smr 1 323359 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 9545 6373K 6874K 78643K 12171 0 pcb 13 10K 12K 78643K 782 0 rtable 108 4K 4K 78643K 546 0 ifaddr 108 21K 21K 78643K 248 0 counters 19 16K 16K 78643K 19 0 ioctlops 0 0K 2K 78643K 81 0 iov 0 0K 16K 78643K 149 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1845 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 109 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 4 9K 25K 78643K 991 0 sigio 0 0K 0K 78643K 12 0 proc 51 38K 63K 78643K 502 0 subproc 23 1K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 229 0 in_multi 114 5K 5K 78643K 278 0 ether_multi 1 0K 0K 78643K 37 0 mrt 3 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 151 678K 678K 78643K 151 0 exec 0 0K 1K 78643K 307 0 pfkey data 0 0K 0K 78643K 2 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 117 103K 103K 78643K 3147 0 UVM aobj 32 2K 2K 78643K 43 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 585 0 NDP 16 0K 0K 78643K 48 0 temp 146 3018K 3094K 78643K 75887 0 kqueue 3 4K 12K 78643K 56 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 13 0 8 1 0 1 1 0 8 0 rtpcb 80 80 0 78 1 0 1 1 0 8 0 rtentry 112 88 0 47 2 0 2 2 0 8 0 unpcb 120 553 0 545 2 0 2 2 0 8 1 syncache 264 16 0 16 3 2 1 1 0 8 1 tcpqe 32 36 0 36 3 2 1 1 0 8 1 tcpcb 544 998 0 992 17 15 2 15 0 8 1 ipq 40 6 0 6 2 2 0 1 0 8 0 ipqe 40 184 0 184 2 2 0 1 0 8 0 inpcb 280 2784 0 2773 9 7 2 9 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 10 0 8 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 10 0 10 2 1 1 1 0 8 1 art_heap8 4096 6 0 2 5 1 4 4 0 8 0 art_heap4 256 440 0 223 16 1 15 15 0 8 0 art_table 32 446 0 225 2 0 2 2 0 8 0 art_node 16 87 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 20 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 105 0 95 1 0 1 1 0 8 0 shmpl 112 41 0 11 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2865 0 1469 46 0 46 46 0 8 0 ffsino 240 2865 0 1469 83 0 83 83 0 8 0 nchpl 144 4399 0 2812 60 0 60 60 0 8 0 uvmvnodes 72 3295 0 0 60 0 60 60 0 8 0 vnodes 208 3295 0 0 174 0 174 174 0 8 0 namei 1024 14932 0 14932 1 0 1 1 0 8 1 vcpupl 1984 15 0 0 2 0 2 2 0 8 0 vmpool 528 21 0 6 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 13093 0 13093 1 0 1 1 0 8 1 plimitpl 152 67 0 60 1 0 1 1 0 8 0 sigapl 432 1156 0 1144 2 0 2 2 0 8 0 futexpl 56 24584 0 24584 1 0 1 1 0 8 1 knotepl 112 155 0 136 1 0 1 1 0 8 0 kqueuepl 104 434 0 432 4 3 1 4 0 8 0 pipelkpl 16 251 0 241 1 0 1 1 0 8 0 pipepl 120 502 0 484 2 1 1 2 0 8 0 fdescpl 432 1157 0 1144 2 0 2 2 0 8 0 filepl 120 10455 0 10370 15 8 7 11 0 8 4 lockfpl 104 295 0 294 1 0 1 1 0 8 0 lockfspl 48 107 0 106 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 33 0 23 1 0 1 1 0 8 0 ucredpl 96 2744 0 2737 1 0 1 1 0 8 0 zombiepl 144 1145 0 1143 1 0 1 1 0 8 0 processpl 864 1173 0 1143 4 0 4 4 0 8 0 procpl 632 2322 0 2285 4 0 4 4 0 8 0 sosppl 128 24 0 24 3 2 1 1 0 8 1 sockpl 400 3481 0 3460 18 11 7 14 0 8 4 mcl64k 65536 77 0 77 1 0 1 1 0 8 1 mcl16k 16384 8 0 8 2 1 1 1 0 8 1 mcl12k 12288 19 0 19 2 1 1 1 0 8 1 mcl9k 9216 10 0 10 3 2 1 1 0 8 1 mcl8k 8192 26 0 26 1 0 1 1 0 8 1 mcl4k 4096 99 0 99 1 0 1 1 0 8 1 mcl2k2 2112 5 0 5 4 3 1 1 0 8 1 mcl2k 2048 64691 0 64647 17 10 7 11 0 8 0 mtagpl 80 61 0 29 2 1 1 1 0 8 0 mbufpl 256 110475 0 110337 28 16 12 22 0 8 0 bufpl 280 10433 0 4249 442 0 442 442 0 8 0 anonpl 16 111201 0 95319 92 14 78 79 0 107 11 amapchunkpl 152 4633 0 4494 15 6 9 11 0 158 3 amappl16 192 5594 0 4730 68 17 51 54 0 8 7 amappl15 184 55 0 50 1 0 1 1 0 8 0 amappl14 176 433 0 430 1 0 1 1 0 8 0 amappl13 168 9 0 9 2 2 0 1 0 8 0 amappl12 160 443 0 440 2 1 1 1 0 8 0 amappl11 152 54 0 42 1 0 1 1 0 8 0 amappl10 144 12 0 10 1 0 1 1 0 8 0 amappl9 136 620 0 617 1 0 1 1 0 8 0 amappl8 128 174 0 154 1 0 1 1 0 8 0 amappl7 120 102 0 91 1 0 1 1 0 8 0 amappl6 112 67 0 61 1 0 1 1 0 8 0 amappl5 104 627 0 615 1 0 1 1 0 8 0 amappl4 96 547 0 519 1 0 1 1 0 8 0 amappl3 88 1371 0 1360 1 0 1 1 0 8 0 amappl2 80 8359 0 8297 3 1 2 3 0 8 0 amappl1 72 30819 0 30413 27 18 9 20 0 8 0 amappl 80 2582 0 2536 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 42 0 11 1 0 1 1 0 8 0 uaddrrnd 24 1178 0 1150 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1178 0 1150 1 0 1 1 0 8 0 vmmpekpl 168 9537 0 9507 2 0 2 2 0 8 0 vmmpepl 168 142614 0 140705 132 29 103 113 0 357 7 vmsppl 272 1177 0 1150 2 0 2 2 0 8 0 pdppl 4096 2362 0 2315 8 1 7 7 0 8 0 pvpl 32 322146 0 303834 205 19 186 187 0 265 35 pmappl 200 1177 0 1150 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 205 0 58 5 0 5 5 0 8 0