panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f24a300+16 0x0!=0x6389039fdf105010 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *151317 84805 74 0x100012 0 1K pflogd 165897 85475 73 0x100010 0 0 syslogd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82652290) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82652290) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(1,1) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 m_getuio(ffff800020aaaf98,1,100000,ffff800020aab080) at m_getuio+0xe4 sys/kern/uipc_socket.c:556 sosend(fffffd806e97b308,0,ffff800020aab080,0,0,0) at sosend+0x510 sys/kern/uipc_socket.c:511 dosendsyslog(ffff800020ac0778,7f7fffff4580,3d,0,0) at dosendsyslog+0x2b8 sys/kern/subr_log.c:521 sys_sendsyslog() at sys_sendsyslog+0x13e sys/kern/subr_log.c:441 syscall(ffff800020aab2e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aab2e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,70,3d,70,1fee,1f74c0786038) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6b00, count: 4 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 pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f24a300+16 0x0!=0x6389039fdf105010 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82652290) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82652290) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(1,1) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 m_getuio(ffff800020aaaf98,1,100000,ffff800020aab080) at m_getuio+0xe4 sys/kern/uipc_socket.c:556 sosend(fffffd806e97b308,0,ffff800020aab080,0,0,0) at sosend+0x510 sys/kern/uipc_socket.c:511 dosendsyslog(ffff800020ac0778,7f7fffff4580,3d,0,0) at dosendsyslog+0x2b8 sys/kern/subr_log.c:521 sys_sendsyslog() at sys_sendsyslog+0x13e sys/kern/subr_log.c:441 syscall(ffff800020aab2e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aab2e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,70,3d,70,1fee,1f74c0786038) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6b00, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aaacd0 rbx 0xffff800020aaad80 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81c6670f kprintf+0x16f r9 0x1 r10 0x618820290a2e798b r11 0x2960ff1b5bbfe117 r12 0x3000000008 r13 0xffff800020aaace0 r14 0x100 r15 0x1 rip 0xffffffff812d2ac8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aaacc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (pflogd) pid=151317 stat=onproc flags process=100012 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0c68,0xffff800020ac0ef0 process=0xffff800020adc700 user=0xffff800020aa6000, vmspace=0xfffffd806e7d7008 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38268 382681 10495 0 2 0x2 syz-executor.1 24066 150962 10495 0 3 0x82 nanosleep syz-executor.0 10495 245976 57751 0 3 0x82 kqread syz-execprog 10495 5704 57751 0 3 0x4000082 nanosleep syz-execprog 10495 502894 57751 0 3 0x4000082 thrsleep syz-execprog 10495 454461 57751 0 3 0x4000082 thrsleep syz-execprog 10495 125069 57751 0 3 0x4000082 thrsleep syz-execprog 10495 509263 57751 0 3 0x4000082 thrsleep syz-execprog 10495 233258 57751 0 3 0x4000082 thrsleep syz-execprog 10495 184121 57751 0 3 0x4000082 thrsleep syz-execprog 10495 197758 57751 0 3 0x4000082 thrsleep syz-execprog 57751 63924 92469 0 3 0x10008a pause ksh 92469 311296 81296 0 3 0x92 select sshd 9236 509209 1 0 3 0x100083 ttyin getty 81296 149486 1 0 3 0x80 select sshd *84805 151317 7089 74 7 0x100012 pflogd 7089 123980 1 0 3 0x80 netio pflogd 85475 165897 36567 73 7 0x100010 syslogd 36567 186704 1 0 3 0x100082 netio syslogd 93297 26343 1 77 3 0x100090 poll dhclient 7447 474123 1 0 3 0x80 poll dhclient 10766 451419 0 0 3 0x14200 pgzero zerothread 13224 20069 0 0 3 0x14200 aiodoned aiodoned 99972 421785 0 0 3 0x14200 syncer update 24858 328316 0 0 3 0x14200 cleaner cleaner 31266 439988 0 0 3 0x14200 reaper reaper 81175 306726 0 0 3 0x14200 pgdaemon pagedaemon 70596 309425 0 0 3 0x14200 bored crynlk 9410 363788 0 0 3 0x14200 bored crypto 6695 350993 0 0 3 0x40014200 acpi0 acpi0 88923 140283 0 0 3 0x40014200 idle1 79799 300006 0 0 3 0x14200 bored softnet 15707 138861 0 0 3 0x14200 bored systqmp 3471 415640 0 0 3 0x14200 bored systq 19432 227760 0 0 3 0x40014200 bored softclock 37800 305993 0 0 3 0x40014200 idle0 75764 252215 0 0 3 0x14200 bored smr 1 412457 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 84805 (pflogd) thread 0xffff800020ac0778 (151317) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82651848) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9462 6387K 6387K 78643K 10549 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 93 3K 3K 78643K 205 0 0 ifaddr 38 10K 10K 78643K 68 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1469 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1181 74K 74K 78643K 1186 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 65 0 0 proc 59 63K 95K 78643K 424 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 212 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 75 20K 20K 78643K 1046 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 10 0K 0K 78643K 10 0 0 temp 55 3542K 3606K 78643K 3497 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 7 2 0 2 2 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 1 0 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 280 68 0 62 1 0 1 1 0 8 0 nd6 48 4 0 0 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 11 0 2 1 0 1 1 0 8 0 pfstkey 112 11 0 2 1 0 1 1 0 8 0 pfstate 328 11 0 2 1 0 1 1 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 213 0 4 14 0 14 14 0 8 0 art_table 32 214 0 4 2 0 2 2 0 8 0 art_node 16 44 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1456 0 49 46 0 46 46 0 8 0 ffsino 272 1456 0 49 94 0 94 94 0 8 0 nchpl 144 1727 0 109 61 0 61 61 0 8 0 uvmvnodes 72 1466 0 0 27 0 27 27 0 8 0 vnodes 208 1466 0 0 78 0 78 78 0 8 0 namei 1024 4362 0 4362 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4450 0 4450 9 8 1 7 0 8 1 plimitpl 152 16 0 8 1 0 1 1 0 8 0 sigapl 432 269 0 255 3 0 3 3 0 8 1 knotepl 112 51 0 34 1 0 1 1 0 8 0 kqueuepl 104 2 0 0 1 0 1 1 0 8 0 pipepl 112 162 0 143 2 1 1 1 0 8 0 fdescpl 488 270 0 255 3 0 3 3 0 8 0 filepl 152 1209 0 1142 3 0 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 52 0 43 1 0 1 1 0 8 0 zombiepl 144 255 0 254 2 1 1 1 0 8 0 processpl 896 285 0 254 4 0 4 4 0 8 0 procpl 632 293 0 254 4 0 4 4 0 8 0 sockpl 384 116 0 98 4 0 4 4 0 8 2 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 68 0 0 9 0 9 9 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 144 0 0 8 0 8 8 0 8 0 bufpl 256 5925 0 1315 289 0 289 289 0 8 0 anonpl 16 23588 0 21957 15 2 13 13 0 124 5 amapchunkpl 152 1053 0 987 6 0 6 6 0 158 2 amappl16 192 306 0 266 3 0 3 3 0 8 1 amappl15 184 3 0 2 1 0 1 1 0 8 0 amappl14 176 38 0 34 2 1 1 1 0 8 0 amappl12 160 16 0 15 2 1 1 1 0 8 0 amappl11 152 56 0 41 1 0 1 1 0 8 0 amappl10 144 10 0 8 1 0 1 1 0 8 0 amappl9 136 472 0 466 1 0 1 1 0 8 0 amappl8 128 138 0 128 1 0 1 1 0 8 0 amappl7 120 40 0 35 1 0 1 1 0 8 0 amappl6 112 86 0 76 1 0 1 1 0 8 0 amappl5 104 146 0 132 1 0 1 1 0 8 0 amappl4 96 526 0 498 1 0 1 1 0 8 0 amappl3 88 129 0 124 1 0 1 1 0 8 0 amappl2 80 1032 0 968 4 1 3 3 0 8 1 amappl1 72 16009 0 15591 25 7 18 20 0 8 8 amappl 80 540 0 510 1 0 1 1 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 270 0 255 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 270 0 255 1 0 1 1 0 8 0 vmmpekpl 168 6563 0 6539 2 0 2 2 0 8 0 vmmpepl 168 34835 0 33876 94 14 80 80 0 357 35 vmsppl 368 269 0 255 2 0 2 2 0 8 0 pdppl 4096 547 0 510 6 0 6 6 0 8 1 pvpl 32 118577 0 114510 119 4 115 115 0 265 79 pmappl 232 269 0 255 2 0 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 434 0 4 13 0 13 13 0 8 0 ddb{1}>