panic: pr_find_pagehead: mbufpl: incorrect page Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 22182 90730 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240a5f0) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff828b8b28,fffffd806b090000) at pool_do_put+0x37a pool_cache_gc(ffffffff828b8b28) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff828b8b28) at pool_cache_gc+0x144 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff827ab3f0) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: 9 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic pr_find_pagehead: mbufpl: incorrect page ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240a5f0) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff828b8b28,fffffd806b090000) at pool_do_put+0x37a pool_cache_gc(ffffffff828b8b28) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff828b8b28) at pool_cache_gc+0x144 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff827ab3f0) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -6 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da3530 rbx 0xffff800020da35e0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff811209cf kprintf+0x16f r9 0x1 r10 0x2 r11 0x922d23343529c49a r12 0x3000000008 r13 0xffff800020da3540 r14 0x100 r15 0x1 rip 0xffffffff81de3468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da3520 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=22182 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d89110,0xffff800020d88760 process=0xffff800020d8af80 user=0xffff800020d9e000, vmspace=0xffffffff828fddc8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65045 439474 0 0 3 0x14200 bored sosplice 5475 301645 92836 0 3 0x82 wait syz-executor.1 71206 386626 0 0 3 0x14280 nfsidl nfsio 72964 339342 0 0 3 0x14280 nfsidl nfsio 74665 269394 0 0 3 0x14280 nfsidl nfsio 75114 66722 0 0 3 0x14280 nfsidl nfsio 75442 52527 0 0 3 0x14280 nfsidl nfsio 37785 59106 0 0 3 0x14280 nfsidl nfsio 44365 361518 0 0 3 0x14280 nfsidl nfsio 398 393029 0 0 3 0x14280 nfsidl nfsio 87030 215027 0 0 3 0x14280 nfsidl nfsio 97240 492366 0 0 3 0x14280 nfsidl nfsio 55826 309487 0 0 3 0x14280 nfsidl nfsio 91362 418492 0 0 3 0x14280 nfsidl nfsio 31979 491241 0 0 3 0x14280 nfsidl nfsio 63416 290982 0 0 3 0x14280 nfsidl nfsio 45824 110439 0 0 3 0x14280 nfsidl nfsio 60869 92868 0 0 3 0x14280 nfsidl nfsio 69017 339793 0 0 3 0x14280 nfsidl nfsio 94585 312283 0 0 3 0x14280 nfsidl nfsio 44646 206492 0 0 3 0x14280 nfsidl nfsio 57431 115584 0 0 3 0x14280 nfsidl nfsio 33348 428089 92836 0 3 0x82 piperd syz-executor.0 92836 231379 62819 0 3 0x82 thrsleep syz-fuzzer 92836 393916 62819 0 3 0x4000082 thrsleep syz-fuzzer 92836 8772 62819 0 3 0x4000082 thrsleep syz-fuzzer 92836 356841 62819 0 3 0x4000082 kqread syz-fuzzer 92836 505216 62819 0 3 0x4000082 thrsleep syz-fuzzer 92836 442739 62819 0 3 0x4000082 thrsleep syz-fuzzer 92836 232241 62819 0 3 0x4000082 thrsleep syz-fuzzer 92836 115184 62819 0 3 0x4000082 thrsleep syz-fuzzer 92836 268450 62819 0 3 0x4000082 thrsleep syz-fuzzer 92836 110577 62819 0 3 0x4000082 thrsleep syz-fuzzer 62819 261360 35215 0 3 0x10008a pause ksh 35215 321836 40673 0 3 0x92 select sshd 723 397498 1 0 3 0x100083 ttyin getty 40673 386045 1 0 3 0x80 select sshd 28470 163983 21993 74 3 0x100092 bpf pflogd 21993 144174 1 0 3 0x80 netio pflogd 60068 231053 86412 73 3 0x100090 kqread syslogd 86412 339624 1 0 3 0x100082 netio syslogd 38068 127823 1 77 3 0x100090 poll dhclient 36709 105563 1 0 3 0x80 poll dhclient 51464 108423 0 0 3 0x14200 bored smr 75470 58591 0 0 3 0x14200 pgzero zerothread 79497 311796 0 0 3 0x14200 aiodoned aiodoned 32427 149345 0 0 3 0x14200 syncer update 41774 180774 0 0 3 0x14200 cleaner cleaner 62122 398180 0 0 3 0x14200 reaper reaper 82714 390826 0 0 3 0x14200 pgdaemon pagedaemon 54606 116169 0 0 3 0x14200 bored crynlk 62644 176729 0 0 3 0x14200 bored crypto 55380 162014 0 0 3 0x40014200 acpi0 acpi0 98424 37494 0 0 7 0x40014200 idle1 56725 374729 0 0 3 0x14200 bored softnet *90730 22182 0 0 7 0x14200 systqmp 1093 69856 0 0 3 0x14200 bored systq 72443 446654 0 0 3 0x40014200 bored softclock 19788 112373 0 0 3 0x40014200 idle0 1 400249 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex mbufpl r = 0 (0xffffffff828b8b38) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_cache_gc+0x12d pl_enter sys/kern/subr_pool.c:104 [inline] #3 pool_cache_gc+0x12d pool_cache_list_put sys/kern/subr_pool.c:1968 [inline] #3 pool_cache_gc+0x12d sys/kern/subr_pool.c:2025 #4 pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 #5 taskq_thread+0xec sys/kern/kern_task.c:437 #6 proc_trampoline+0x1c Process 90730 (systqmp) thread 0xffff800020d889c0 (22182) shared rwlock pools r = 0 (0xffffffff8275ed10) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 pool_gc_pages+0x21 sys/kern/subr_pool.c:1555 #2 taskq_thread+0xec sys/kern/kern_task.c:437 #3 proc_trampoline+0x1c shared rwlock systqmp r = 0 (0xffffffff827ab460) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 taskq_thread+0xdf sys/kern/kern_task.c:436 #2 proc_trampoline+0x1c exclusive mutex mbufpl r = 0 (0xffffffff828b8b38) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_cache_gc+0x12d pl_enter sys/kern/subr_pool.c:104 [inline] #3 pool_cache_gc+0x12d pool_cache_list_put sys/kern/subr_pool.c:1968 [inline] #3 pool_cache_gc+0x12d sys/kern/subr_pool.c:2025 #4 pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 #5 taskq_thread+0xec sys/kern/kern_task.c:437 #6 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9492 6405K 6858K 78643K 11335 0 pcb 13 8K 8K 78643K 46 0 rtable 99 13K 16K 78643K 479 0 ifaddr 59 13K 15K 78643K 140 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1545 0 iov 0 0K 16K 78643K 36 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1465 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 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 93 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 458 0 sigio 0 0K 0K 78643K 13 0 proc 61 63K 95K 78643K 500 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 29 0 in_multi 42 2K 2K 78643K 80 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 243 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 132 39K 40K 78643K 2451 0 UVM aobj 14 2K 2K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 26 0 NDP 8 0K 0K 78643K 23 0 temp 106 3864K 3930K 78643K 4257 0 kqueue 3 4K 8K 78643K 28 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 33 0 31 1 0 1 1 0 8 0 rtentry 112 65 0 30 2 0 2 2 0 8 0 unpcb 120 1233 0 1223 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 1588 0 1588 3 3 0 2 0 8 0 tcpcb 544 132 0 128 2 1 1 2 0 8 0 inpcb 296 387 0 375 5 4 1 2 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 12 0 6 1 0 1 1 0 8 0 ppxss 1136 2 0 2 2 2 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 73 0 70 1 0 1 1 0 8 0 pfstitem 24 19 0 17 1 0 1 1 0 8 0 pfstkey 112 19 0 17 1 0 1 1 0 8 0 pfstate 328 19 0 17 2 0 2 2 0 8 1 pfrule 1360 36 0 28 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 331 0 125 14 1 13 13 0 8 0 art_table 32 332 0 125 2 0 2 2 0 8 0 art_node 16 64 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 10 1 0 1 1 0 8 0 semupl 112 3 0 3 3 3 0 1 0 8 0 semapl 112 89 0 79 1 0 1 1 0 8 0 shmpl 112 12 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1965 0 558 89 0 89 89 0 8 0 ffsino 272 1965 0 558 96 2 94 95 0 8 0 nchpl 144 2900 0 1305 60 0 60 60 0 8 0 uvmvnodes 72 2196 0 0 40 0 40 40 0 8 0 vnodes 208 2196 0 0 116 0 116 116 0 8 0 namei 1024 7902 0 7902 4 3 1 1 0 8 1 percpumem 16 40 0 8 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 21 0 19 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 8239 0 8239 10 9 1 7 0 8 1 plimitpl 152 29 0 21 1 0 1 1 0 8 0 sigapl 424 691 0 639 6 0 6 6 0 8 0 futexpl 56 6101 0 6101 3 2 1 1 0 8 1 knotepl 112 104 0 85 1 0 1 1 0 8 0 kqueuepl 144 58 0 56 1 0 1 1 0 8 0 pipepl 304 116 0 106 3 2 1 2 0 8 0 fdescpl 496 655 0 639 3 0 3 3 0 8 0 filepl 152 4243 0 4134 7 2 5 6 0 8 0 lockfpl 104 72 0 71 1 0 1 1 0 8 0 lockfspl 48 23 0 22 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 438 0 428 1 0 1 1 0 8 0 zombiepl 144 640 0 639 2 1 1 1 0 8 0 processpl 992 691 0 639 8 1 7 7 0 8 0 procpl 624 1646 0 1585 8 2 6 6 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 400 1657 0 1633 9 6 3 4 0 8 0 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 326 0 0 40 0 40 40 0 8 0 mtagpl 96 55 0 0 2 0 2 2 0 8 0 mbufpl 256 339 0 0 22 1 21 21 0 8 0 bufpl 280 4255 0 133 295 0 295 295 0 8 0 anonpl 16 82628 0 65175 89 17 72 87 0 124 0 amapchunkpl 152 3569 0 3411 8 0 8 8 0 158 0 amappl16 192 2918 0 1981 61 13 48 59 0 8 0 amappl15 184 132 0 129 1 0 1 1 0 8 0 amappl14 176 100 0 94 1 0 1 1 0 8 0 amappl13 168 240 0 236 1 0 1 1 0 8 0 amappl12 160 8 0 5 1 0 1 1 0 8 0 amappl11 152 136 0 121 1 0 1 1 0 8 0 amappl10 144 153 0 147 1 0 1 1 0 8 0 amappl9 136 388 0 387 1 0 1 1 0 8 0 amappl8 128 387 0 349 2 0 2 2 0 8 0 amappl7 120 255 0 241 1 0 1 1 0 8 0 amappl6 112 106 0 97 1 0 1 1 0 8 0 amappl5 104 498 0 483 1 0 1 1 0 8 0 amappl4 96 788 0 757 1 0 1 1 0 8 0 amappl3 88 109 0 102 1 0 1 1 0 8 0 amappl2 80 4192 0 4123 2 0 2 2 0 8 0 amappl1 72 28799 0 28320 23 13 10 18 0 8 0 amappl 80 1896 0 1847 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 14 0 1 1 0 1 1 0 8 0 uaddrrnd 24 657 0 639 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 657 0 639 1 0 1 1 0 8 0 vmmpekpl 168 9128 0 9084 3 0 3 3 0 8 0 vmmpepl 168 91436 0 89271 157 57 100 129 0 357 1 vmsppl 368 656 0 639 2 0 2 2 0 8 0 pdppl 4096 1321 0 1280 7 1 6 6 0 8 0 pvpl 32 257038 0 236214 213 40 173 207 0 265 0 pmappl 232 656 0 639 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 306 0 20 10 1 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240a5f0) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff828b8b28,fffffd806b090000) at pool_do_put+0x37a pool_cache_gc(ffffffff828b8b28) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff828b8b28) at pool_cache_gc+0x144 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff827ab3f0) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5