login: panic: pr_find_pagehead: mbufpl: page header missing Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 438219 42075 0 0x2 0x4000000 0 syz-fuzzer *109982 90107 0 0x14000 0x200 1 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8223ad6a) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82647988,fffffd8000000000) at pool_do_put+0x37a pool_cache_gc(ffffffff82647988) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff82647988) 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(ffffffff824d4860) at taskq_thread+0x9c sys/kern/kern_task.c:369 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic pr_find_pagehead: mbufpl: page header missing ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8223ad6a) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82647988,fffffd8000000000) at pool_do_put+0x37a pool_cache_gc(ffffffff82647988) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff82647988) 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(ffffffff824d4860) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: -6 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e33560 rbx 0xffff800020e33610 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81d0d2df kprintf+0x16f r9 0x1 r10 0x2 r11 0xedcf711357b41b3c r12 0x3000000008 r13 0xffff800020e33570 r14 0x100 r15 0x1 rip 0xffffffff81cf6478 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e33550 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (systqmp) pid=109982 stat=onproc flags process=14000 proc=200 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e19380,0xffff800020e18c40 process=0xffff800020e1a7b0 user=0xffff800020e2e000, vmspace=0xffffffff82679d58 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 58103 350502 77020 0 2 0 syz-executor.1 58103 462501 77020 0 2 0x4000000 syz-executor.1 26076 130658 0 0 3 0x14200 bored sosplice 77020 71430 42075 0 2 0x482 syz-executor.1 546 122756 42075 0 2 0x2 syz-executor.0 42075 153866 56653 0 3 0x82 thrsleep syz-fuzzer 42075 438219 56653 0 7 0x4000002 syz-fuzzer 42075 39967 56653 0 2 0x4000082 syz-fuzzer 42075 164915 56653 0 3 0x4000082 thrsleep syz-fuzzer 42075 454033 56653 0 3 0x4000082 thrsleep syz-fuzzer 42075 214088 56653 0 3 0x4000082 thrsleep syz-fuzzer 42075 32365 56653 0 3 0x4000082 thrsleep syz-fuzzer 42075 165755 56653 0 3 0x4000082 thrsleep syz-fuzzer 42075 150691 56653 0 3 0x4000082 nanosleep syz-fuzzer 42075 20516 56653 0 3 0x4000082 kqread syz-fuzzer 56653 312360 91037 0 3 0x10008a pause ksh 91037 306079 63822 0 3 0x92 select sshd 16337 56041 1 0 3 0x100083 ttyin getty 63822 277460 1 0 3 0x80 select sshd 5503 194362 44479 74 3 0x100092 bpf pflogd 44479 521580 1 0 3 0x80 netio pflogd 90882 97940 82891 73 3 0x100090 kqread syslogd 82891 394202 1 0 3 0x100082 netio syslogd 2138 392262 1 77 3 0x100090 poll dhclient 31001 39890 1 0 3 0x80 poll dhclient 29175 192935 0 0 3 0x14200 bored smr 10998 514825 0 0 2 0x14200 zerothread 98060 229694 0 0 3 0x14200 aiodoned aiodoned 44914 84231 0 0 3 0x14200 syncer update 75101 476229 0 0 3 0x14200 cleaner cleaner 23736 55612 0 0 3 0x14200 reaper reaper 63557 480287 0 0 3 0x14200 pgdaemon pagedaemon 78184 239203 0 0 3 0x14200 bored crynlk 87354 9851 0 0 3 0x14200 bored crypto 60918 397118 0 0 3 0x40014200 acpi0 acpi0 54149 302835 0 0 3 0x40014200 idle1 50579 103999 0 0 3 0x14200 bored softnet *90107 109982 0 0 7 0x14200 systqmp 51281 392687 0 0 3 0x14200 bored systq 89411 184454 0 0 3 0x40014200 bored softclock 54020 400911 0 0 3 0x40014200 idle0 1 319292 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex mbufpl r = 0 (0xffffffff82647998) #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+0x9c sys/kern/kern_task.c:369 #6 proc_trampoline+0x1c Process 42075 (syz-fuzzer) thread 0xffff800020edf120 (438219) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82640878) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:435 #3 sys_sched_yield+0xbc sys/kern/kern_synch.c:640 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #5 Xsyscall+0x128 Process 90107 (systqmp) thread 0xffff800020e18ea0 (109982) shared rwlock pools r = 0 (0xffffffff824ee670) #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+0x9c sys/kern/kern_task.c:369 #3 proc_trampoline+0x1c shared rwlock systqmp r = 0 (0xffffffff824d48c0) #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+0x8f sys/kern/kern_task.c:368 #2 proc_trampoline+0x1c exclusive mutex mbufpl r = 0 (0xffffffff82647998) #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+0x9c sys/kern/kern_task.c:369 #6 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9513 6421K 7197K 78643K 11200 0 pcb 13 8K 8K 78643K 64 0 rtable 107 3K 3K 78643K 229 0 ifaddr 68 13K 14K 78643K 88 0 counters 43 33K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1473 0 iov 0 0K 16K 78643K 21 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1383 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 23 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 205 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 95K 78643K 457 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 18 0 in_multi 44 2K 2K 78643K 60 0 ether_multi 1 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 242 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 124 39K 41K 78643K 1596 0 UVM aobj 16 2K 2K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 11 0K 0K 78643K 17 0 temp 95 3034K 3098K 78643K 5458 0 kqueue 3 4K 10K 78643K 14 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 26 0 24 1 0 1 1 0 8 0 rtentry 112 47 0 2 2 0 2 2 0 8 0 unpcb 120 109 0 98 1 0 1 1 0 8 0 syncache 264 10 0 10 2 1 1 1 0 8 1 tcpqe 32 298 0 298 1 1 0 1 0 8 0 tcpcb 544 167 0 162 1 0 1 1 0 8 0 inpcb 280 442 0 434 2 0 2 2 0 8 1 nd6 48 8 0 1 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 1 1 1 0 8 1 pffrag 232 2 0 2 1 0 1 1 0 482 1 pffrnode 88 2 0 2 1 0 1 1 0 8 1 pffrent 40 8 0 8 1 0 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 51 0 0 1 0 1 1 0 8 0 pfstkey 112 51 0 0 2 0 2 2 0 8 0 pfstate 328 51 0 0 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 214 0 15 13 0 13 13 0 8 0 art_table 32 215 0 15 2 0 2 2 0 8 0 art_node 16 46 0 5 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 4 1 0 1 1 0 8 0 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 18 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1678 0 276 89 0 89 89 0 8 0 ffsino 272 1678 0 276 94 0 94 94 0 8 0 nchpl 144 2145 0 536 60 0 60 60 0 8 0 uvmvnodes 72 1857 0 0 34 0 34 34 0 8 0 vnodes 208 1857 0 0 98 0 98 98 0 8 0 namei 1024 5804 0 5804 1 0 1 1 0 8 1 percpumem 16 34 0 2 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 scxspl 192 5804 0 5804 8 7 1 7 0 8 1 plimitpl 152 23 0 15 1 0 1 1 0 8 0 sigapl 424 421 0 389 4 0 4 4 0 8 0 futexpl 56 2968 0 2968 1 0 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 144 29 0 25 1 0 1 1 0 8 0 pipelkpl 48 96 0 86 1 0 1 1 0 8 0 pipepl 120 192 0 173 1 0 1 1 0 8 0 fdescpl 496 405 0 389 3 0 3 3 0 8 0 filepl 152 2358 0 2256 6 0 6 6 0 8 2 lockfpl 104 60 0 59 1 0 1 1 0 8 0 lockfspl 48 22 0 21 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 176 0 167 1 0 1 1 0 8 0 zombiepl 144 389 0 388 1 0 1 1 0 8 0 processpl 984 421 0 388 5 0 5 5 0 8 0 procpl 624 823 0 780 4 0 4 4 0 8 0 sosppl 128 1 0 1 1 1 0 1 0 8 0 sockpl 400 586 0 565 4 0 4 4 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 176 0 0 21 0 21 21 0 8 0 mtagpl 80 28 0 0 1 0 1 1 0 8 0 mbufpl 256 214 0 0 13 0 13 13 0 8 0 bufpl 280 3690 0 135 254 0 254 254 0 8 0 anonpl 16 52711 0 34665 74 1 73 73 0 124 0 amapchunkpl 152 2131 0 1987 14 1 13 13 0 158 7 amappl16 192 1791 0 801 50 0 50 50 0 8 0 amappl15 184 83 0 80 1 0 1 1 0 8 0 amappl14 176 33 0 26 1 0 1 1 0 8 0 amappl13 168 26 0 24 1 0 1 1 0 8 0 amappl12 160 96 0 90 1 0 1 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 18 0 12 1 0 1 1 0 8 0 amappl9 136 430 0 428 1 0 1 1 0 8 0 amappl8 128 438 0 401 2 0 2 2 0 8 0 amappl7 120 117 0 106 1 0 1 1 0 8 0 amappl6 112 24 0 20 2 1 1 1 0 8 0 amappl5 104 392 0 375 1 0 1 1 0 8 0 amappl4 96 485 0 457 1 0 1 1 0 8 0 amappl3 88 109 0 104 1 0 1 1 0 8 0 amappl2 80 2373 0 2303 2 0 2 2 0 8 0 amappl1 72 18907 0 18457 23 13 10 18 0 8 0 amappl 80 1070 0 1026 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 19 0 4 1 0 1 1 0 8 0 uaddrrnd 24 407 0 389 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 407 0 389 1 0 1 1 0 8 0 vmmpekpl 168 7132 0 7101 2 0 2 2 0 8 0 vmmpepl 168 56208 0 54058 111 14 97 104 0 357 3 vmsppl 368 406 0 389 2 0 2 2 0 8 0 pdppl 4096 822 0 780 6 0 6 6 0 8 0 pvpl 32 172320 0 151158 171 0 171 171 0 265 0 pmappl 232 406 0 389 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 261 0 3 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff824ebff0) 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 __mp_lock(ffffffff82640670) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82640670) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc000051f38, count: 9 ddb{0}> trace x86_ipi_db(ffffffff824ebff0) 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 __mp_lock(ffffffff82640670) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82640670) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc000051f38, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8223ad6a) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82647988,fffffd8000000000) at pool_do_put+0x37a pool_cache_gc(ffffffff82647988) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff82647988) 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(ffffffff824d4860) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: 9 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8223ad6a) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82647988,fffffd8000000000) at pool_do_put+0x37a pool_cache_gc(ffffffff82647988) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff82647988) 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(ffffffff824d4860) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: -6