panic: pr_find_pagehead: mbufpl: incorrect page Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 190230 93394 74 0x100012 0 1K pflogd *457667 90157 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eddfe) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff8290ecd8,fffffd8068d50000) at pool_do_put+0x37a pool_cache_gc(ffffffff8290ecd8) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff8290ecd8) 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(ffffffff827454f0) 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(ffffffff823eddfe) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff8290ecd8,fffffd8068d50000) at pool_do_put+0x37a pool_cache_gc(ffffffff8290ecd8) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff8290ecd8) 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(ffffffff827454f0) 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 0xffff800020db31c0 rbx 0xffff800020db3270 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81e379ff kprintf+0x16f r9 0x1 r10 0x2 r11 0x7515b00df188a36f r12 0x3000000008 r13 0xffff800020db31d0 r14 0x100 r15 0x1 rip 0xffffffff811ebcb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020db31b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=457667 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d989c0,0xffff800020d98280 process=0xffff800020d9ab88 user=0xffff800020dae000, vmspace=0xffffffff828a8098 estcpu=0, cpticks=0, pctcpu=0.6 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44598 365867 1 0 3 0x3000 suspend syz-executor.1 44598 21955 1 0 2 0x4081000 syz-executor.1 60692 303845 0 0 3 0x14200 bored sosplice 24250 216143 95852 0 3 0x82 piperd syz-executor.0 95852 416277 9971 0 3 0x82 thrsleep syz-fuzzer 95852 104687 9971 0 3 0x4000082 thrsleep syz-fuzzer 95852 238053 9971 0 3 0x4000082 thrsleep syz-fuzzer 95852 15156 9971 0 3 0x4000082 kqread syz-fuzzer 95852 292604 9971 0 3 0x4000082 thrsleep syz-fuzzer 95852 79342 9971 0 3 0x4000082 thrsleep syz-fuzzer 95852 415178 9971 0 3 0x4000082 thrsleep syz-fuzzer 95852 408404 9971 0 3 0x4000082 thrsleep syz-fuzzer 95852 396775 9971 0 3 0x4000082 thrsleep syz-fuzzer 95852 152418 9971 0 3 0x4000082 thrsleep syz-fuzzer 9971 204826 48904 0 3 0x10008a pause ksh 48904 235759 72415 0 3 0x92 select sshd 8190 58382 1 0 3 0x100083 ttyin getty 72415 309982 1 0 3 0x80 select sshd 93394 190230 24828 74 7 0x100012 pflogd 24828 322534 1 0 3 0x80 netio pflogd 40080 134294 66822 73 3 0x100090 kqread syslogd 66822 204152 1 0 3 0x100082 netio syslogd 41298 447970 1 77 3 0x100090 poll dhclient 17638 226990 1 0 3 0x80 poll dhclient 5327 477493 0 0 3 0x14200 bored smr 55519 409952 0 0 2 0x14200 zerothread 63624 409682 0 0 3 0x14200 aiodoned aiodoned 22520 353544 0 0 3 0x14200 syncer update 31489 465721 0 0 3 0x14200 cleaner cleaner 38716 35981 0 0 3 0x14200 reaper reaper 85131 425188 0 0 3 0x14200 pgdaemon pagedaemon 50623 238570 0 0 3 0x14200 bored crynlk 46467 318680 0 0 3 0x14200 bored crypto 64449 215181 0 0 3 0x40014200 acpi0 acpi0 38328 262959 0 0 3 0x40014200 idle1 39527 244852 0 0 3 0x14200 bored softnet *90157 457667 0 0 7 0x14200 systqmp 32509 307426 0 0 3 0x14200 bored systq 51971 178885 0 0 3 0x40014200 bored softclock 38727 309661 0 0 3 0x40014200 idle0 1 397115 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 (0xffffffff8290ece8) #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 93394 (pflogd) thread 0xffff800020e50c40 (190230) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b3f90) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 vn_read+0x45 sys/kern/vfs_vnops.c:357 #2 dofilereadv+0x1a1 sys/kern/sys_generic.c:237 #3 sys_read+0x83 sys/kern/sys_generic.c:157 #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 90157 (systqmp) thread 0xffff800020d98000 (457667) shared rwlock pools r = 0 (0xffffffff827558c0) #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 (0xffffffff82745560) #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 (0xffffffff8290ece8) #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 9516 6542K 7056K 78643K 10720 0 pcb 13 8K 8K 78643K 27 0 rtable 99 3K 3K 78643K 218 0 ifaddr 60 12K 12K 78643K 67 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1479 0 iov 0 0K 16K 78643K 54 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1257 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 10 0K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 102 0 proc 59 63K 95K 78643K 440 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 4 0 in_multi 29 1K 2K 78643K 45 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 2 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 213 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 115 38K 38K 78643K 1210 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 10 0K 0K 78643K 15 0 temp 85 3844K 3908K 78643K 3018 0 kqueue 3 4K 8K 78643K 8 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 50 0 9 2 0 2 2 0 8 0 unpcb 120 39 0 29 1 0 1 1 0 8 0 syncache 264 8 0 8 2 2 0 1 0 8 0 tcpqe 32 235 0 235 1 1 0 1 0 8 0 tcpcb 544 35 0 31 1 0 1 1 0 8 0 inpcb 280 102 0 95 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 7 0 3 1 0 1 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 pfstitem 24 18 0 15 1 0 1 1 0 8 0 pfstkey 112 18 0 15 1 0 1 1 0 8 0 pfstate 328 18 0 15 2 0 2 2 0 8 0 pfrule 1360 23 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 211 0 40 13 0 13 13 0 8 0 art_table 32 212 0 40 2 0 2 2 0 8 0 art_node 16 49 0 11 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1520 0 114 89 0 89 89 0 8 0 ffsino 272 1520 0 114 94 0 94 94 0 8 0 nchpl 144 1855 0 244 60 0 60 60 0 8 0 uvmvnodes 72 1589 0 0 29 0 29 29 0 8 0 vnodes 208 1589 0 0 84 0 84 84 0 8 0 namei 1024 4907 0 4907 1 1 0 1 0 8 0 percpumem 16 32 0 0 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 1 0 0 1 0 1 1 0 8 0 scxspl 192 5419 0 5419 10 10 0 7 0 8 0 plimitpl 152 19 0 9 1 0 1 1 0 8 0 sigapl 424 318 0 287 4 0 4 4 0 8 0 futexpl 56 1069 0 1069 1 1 0 1 0 8 0 knotepl 112 68 0 49 1 0 1 1 0 8 0 kqueuepl 144 16 0 14 1 0 1 1 0 8 0 pipelkpl 48 83 0 73 1 0 1 1 0 8 0 pipepl 120 166 0 149 1 0 1 1 0 8 0 fdescpl 496 302 0 287 3 0 3 3 0 8 0 filepl 152 1549 0 1446 5 0 5 5 0 8 0 lockfpl 104 12 0 11 1 0 1 1 0 8 0 lockfspl 48 5 0 4 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 110 0 101 1 0 1 1 0 8 0 zombiepl 144 288 0 286 1 0 1 1 0 8 0 processpl 984 318 0 286 5 0 5 5 0 8 0 procpl 624 453 0 411 4 0 4 4 0 8 0 sosppl 128 4 0 4 1 1 0 1 0 8 0 sockpl 400 164 0 145 3 1 2 3 0 8 0 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 161 0 0 20 1 19 20 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 213 0 0 14 1 13 14 0 8 0 bufpl 280 3447 0 133 237 0 237 237 0 8 0 anonpl 16 44322 0 26839 72 1 71 71 0 124 0 amapchunkpl 152 1305 0 1141 9 2 7 9 0 158 0 amappl16 192 1361 0 430 47 0 47 47 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 7 0 5 1 0 1 1 0 8 0 amappl11 152 54 0 39 1 0 1 1 0 8 0 amappl10 144 52 0 46 1 0 1 1 0 8 0 amappl9 136 389 0 387 1 0 1 1 0 8 0 amappl8 128 341 0 310 2 0 2 2 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 32 0 27 1 0 1 1 0 8 0 amappl5 104 200 0 184 1 0 1 1 0 8 0 amappl4 96 490 0 459 1 0 1 1 0 8 0 amappl3 88 106 0 99 1 0 1 1 0 8 0 amappl2 80 1447 0 1379 2 0 2 2 0 8 0 amappl1 72 16327 0 15879 23 13 10 18 0 8 0 amappl 80 705 0 657 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 303 0 287 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 303 0 287 1 0 1 1 0 8 0 vmmpekpl 168 6404 0 6370 2 0 2 2 0 8 0 vmmpepl 168 43473 0 41447 117 24 93 111 0 357 0 vmsppl 368 302 0 287 2 0 2 2 0 8 0 pdppl 4096 613 0 575 6 0 6 6 0 8 0 pvpl 32 151187 0 130175 170 0 170 170 0 265 0 pmappl 232 302 0 287 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 259 0 7 8 0 8 8 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(ffffffff823eddfe) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff8290ecd8,fffffd8068d50000) at pool_do_put+0x37a pool_cache_gc(ffffffff8290ecd8) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff8290ecd8) 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(ffffffff827454f0) 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(ffff800020d80ff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc spec_read(ffff800020e57530) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e814290,ffff800020e576e8,0,fffffd807f7bfba0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd806eae88f0,ffff800020e576e8,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e50c40,4,ffff800020e576e8,0,ffff800020e577d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e50c40,ffff800020e57780,ffff800020e577d0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e57850) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e57850) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd57d0, count: 4 ddb{1}> trace x86_ipi_db(ffff800020d80ff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc spec_read(ffff800020e57530) at spec_read+0xf1 sys/kern/spec_vnops.c:222 VOP_READ(fffffd806e814290,ffff800020e576e8,0,fffffd807f7bfba0) at VOP_READ+0xbf sys/kern/vfs_vops.c:247 vn_read(fffffd806eae88f0,ffff800020e576e8,0) at vn_read+0x124 sys/kern/vfs_vnops.c:375 dofilereadv(ffff800020e50c40,4,ffff800020e576e8,0,ffff800020e577d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e50c40,ffff800020e57780,ffff800020e577d0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e57850) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e57850) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd57d0, count: -11