panic(ffffffff821cf5e2) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8262b940) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff8262b940) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff8262b940,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806f33fd00,b00,334,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806f33fd00,b00,334,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a04980) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eb02c88,9,fffffd806f33fd00,0,0,ffff800020ae1d50) at tcp_usrreq+0xa55 sosend(fffffd806eb02c88,0,ffff800020b032e8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ae1d50,4,ffff800020b032e8,0,ffff800020b033d0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:364 sys_write(ffff800020ae1d50,ffff800020b03380,ffff800020b033d0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b03450) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020b03450) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd24e0, count: 3 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 pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8063bc6900+16 0x0!=0x85fcdbdbeae56f29 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cf5e2) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8262b940) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff8262b940) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff8262b940,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806f33fd00,b00,334,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806f33fd00,b00,334,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a04980) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eb02c88,9,fffffd806f33fd00,0,0,ffff800020ae1d50) at tcp_usrreq+0xa55 sosend(fffffd806eb02c88,0,ffff800020b032e8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ae1d50,4,ffff800020b032e8,0,ffff800020b033d0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:364 sys_write(ffff800020ae1d50,ffff800020b03380,ffff800020b033d0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b03450) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020b03450) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd24e0, count: -12 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b02c80 rbx 0xffff800020b02d30 rdx 0xffff800020ae1d50 rcx 0 rax 0 r8 0xffffffff81b395df kprintf+0x16f r9 0x1 r10 0x25 r11 0x514ac64d00786c4a r12 0x3000000008 r13 0xffff800020b02c90 r14 0x100 r15 0x1 rip 0xffffffff8177a798 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b02c70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (sshd) pid=96925 stat=onproc flags process=12 proc=0 pri=50, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ae04f0,0xffff800020ae09e0 process=0xffff800020ad8018 user=0xffff800020afe000, vmspace=0xfffffd806e9252e8 estcpu=1, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 16531 332504 30727 0 7 0 syz-executor.0 55881 433368 0 0 3 0x14200 acct acct 46311 412523 0 0 3 0x14200 bored sosplice 32487 252319 69247 0 3 0x2 biowait syz-executor.1 30727 203117 69247 0 3 0x82 nanosleep syz-executor.0 69247 444749 49102 0 3 0x82 thrsleep syz-fuzzer 69247 245954 49102 0 3 0x4000082 nanosleep syz-fuzzer 69247 199118 49102 0 3 0x4000082 thrsleep syz-fuzzer 69247 24360 49102 0 3 0x4000082 thrsleep syz-fuzzer 69247 168394 49102 0 3 0x4000082 thrsleep syz-fuzzer 69247 144925 49102 0 3 0x4000082 kqread syz-fuzzer 69247 431866 49102 0 3 0x4000082 nanosleep syz-fuzzer 69247 184253 49102 0 3 0x4000082 thrsleep syz-fuzzer 69247 226849 49102 0 3 0x4000082 thrsleep syz-fuzzer 69247 285973 49102 0 3 0x4000082 thrsleep syz-fuzzer 49102 275213 46704 0 3 0x10008a pause ksh *46704 96925 61789 0 7 0x12 sshd 5018 451597 1 0 3 0x100083 ttyin getty 61789 158857 1 0 3 0x80 select sshd 94312 355511 9003 74 3 0x100092 bpf pflogd 9003 423485 1 0 3 0x80 netio pflogd 59416 146443 18595 73 3 0x100090 kqread syslogd 18595 132310 1 0 3 0x100082 netio syslogd 75827 207364 1 77 3 0x100090 poll dhclient 17910 316154 1 0 3 0x80 poll dhclient 38544 110868 0 0 3 0x14200 pgzero zerothread 71158 58932 0 0 3 0x14200 aiodoned aiodoned 1138 97749 0 0 3 0x14200 syncer update 60413 316539 0 0 3 0x14200 cleaner cleaner 72350 401738 0 0 3 0x14200 reaper reaper 2163 435111 0 0 3 0x14200 pgdaemon pagedaemon 86576 481663 0 0 3 0x14200 bored crynlk 94246 169609 0 0 3 0x14200 bored crypto 58447 115578 0 0 3 0x40014200 acpi0 acpi0 58253 407177 0 0 3 0x40014200 idle1 29217 368946 0 0 3 0x14200 bored softnet 37204 85817 0 0 3 0x14200 bored systqmp 73042 89892 0 0 3 0x14200 bored systq 26688 325345 0 0 3 0x40014200 bored softclock 46978 403500 0 0 3 0x40014200 idle0 46432 228342 0 0 3 0x14200 bored smr 1 33955 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 0 (0xffffffff82650718) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 sleep_setup+0xe9 sys/kern/kern_synch.c:393 #2 msleep+0xe2 sleep_setup_timeout sys/kern/kern_synch.c:432 [inline] #2 msleep+0xe2 sys/kern/kern_synch.c:261 #3 taskq_next_work+0xbe sys/kern/kern_task.c:323 #4 taskq_thread+0xe5 sys/kern/kern_task.c:366 #5 proc_trampoline+0x1c Process 32487 (syz-executor.1) thread 0xffff800020a7cea8 (252319) exclusive rrwlock inode r = 0 (0xfffffd80640032c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1860 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e36e928) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 cache_lookup+0x2bb sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1bc sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #9 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #10 namei+0x63c sys/kern/vfs_lookup.c:249 #11 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1860 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #13 Xsyscall+0x128 Process 46704 (sshd) thread 0xffff800020ae1d50 (96925) exclusive rwlock netlock r = 0 (0xffffffff8245ee98) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:537 #3 dofilewritev+0x1b6 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9536 6433K 7720K 78643K 12983 0 pcb 13 8K 8K 78643K 143 0 rtable 101 4K 4K 78643K 344 0 ifaddr 89 17K 18K 78643K 142 0 counters 43 33K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1476 0 iov 0 0K 16K 78643K 92 0 mount 1 1K 1K 78643K 1 0 vnodes 1233 77K 78K 78643K 1901 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 68 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 385 0 sigio 0 0K 0K 78643K 3 0 proc 61 63K 95K 78643K 453 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 110 0 in_multi 81 3K 3K 78643K 174 0 ether_multi 1 0K 0K 78643K 17 0 mrt 0 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 103 466K 466K 78643K 103 0 exec 0 0K 1K 78643K 236 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 116 22K 38K 78643K 2328 0 UVM aobj 32 4K 4K 78643K 36 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 87 0 NDP 13 0K 0K 78643K 29 0 temp 133 3018K 3082K 78643K 31368 0 kqueue 3 4K 10K 78643K 17 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 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 47 0 45 1 0 1 1 0 8 0 rtentry 112 74 0 35 2 0 2 2 0 8 0 unpcb 120 442 0 431 1 0 1 1 0 8 0 syncache 264 9 0 9 3 3 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 124 0 124 2 2 0 1 0 8 0 tcpcb 544 236 0 232 2 1 1 2 0 8 0 inpcb 280 691 0 684 4 1 3 3 0 8 2 rttmr 72 4 0 4 2 1 1 1 0 8 1 nd6 48 9 0 7 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 9 0 9 3 2 1 1 0 482 1 pffrnode 88 9 0 9 3 2 1 1 0 8 1 pffrent 40 282 0 282 3 2 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 54 0 8 1 0 1 1 0 8 0 pfstkey 112 54 0 8 2 0 2 2 0 8 0 pfstate 328 54 0 8 4 0 4 4 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 365 0 179 14 1 13 14 0 8 1 art_table 32 366 0 179 2 0 2 2 0 8 0 art_node 16 72 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 10 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 64 0 54 1 0 1 1 0 8 0 shmpl 112 34 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2035 0 627 46 0 46 46 0 8 0 ffsino 272 2035 0 627 95 0 95 95 0 8 0 nchpl 144 2919 0 1302 61 0 61 61 0 8 0 uvmvnodes 72 2690 0 0 49 0 49 49 0 8 0 vnodes 208 2690 0 0 142 0 142 142 0 8 0 namei 1024 9552 0 9552 1 0 1 1 0 8 1 percpumem 16 39 0 7 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 8877 0 8876 8 7 1 7 0 8 0 plimitpl 152 55 0 47 1 0 1 1 0 8 0 sigapl 432 584 0 569 3 1 2 3 0 8 0 futexpl 56 10073 0 10073 1 0 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 104 79 0 77 1 0 1 1 0 8 0 pipelkpl 48 161 0 151 1 0 1 1 0 8 0 pipepl 120 322 0 303 2 0 2 2 0 8 1 fdescpl 496 585 0 569 3 0 3 3 0 8 0 filepl 152 5598 0 5497 8 1 7 7 0 8 3 lockfpl 104 271 0 270 1 0 1 1 0 8 0 lockfspl 48 108 0 107 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 425 0 415 1 0 1 1 0 8 0 zombiepl 144 569 0 569 1 0 1 1 0 8 1 processpl 960 602 0 569 5 0 5 5 0 8 0 procpl 624 1526 0 1484 5 0 5 5 0 8 1 sosppl 128 14 0 14 2 1 1 1 0 8 1 sockpl 400 1194 0 1174 7 2 5 6 0 8 2 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 256 0 0 31 0 31 31 0 8 0 mtagpl 80 54 0 0 2 0 2 2 0 8 0 mbufpl 256 406 0 0 23 0 23 23 0 8 0 bufpl 280 5379 0 193 371 0 371 371 0 8 0 anonpl 16 64149 0 47301 72 2 70 70 0 125 1 amapchunkpl 152 4059 0 3918 25 11 14 20 0 158 6 amappl16 192 2576 0 1667 47 0 47 47 0 8 1 amappl15 184 60 0 56 1 0 1 1 0 8 0 amappl14 176 206 0 203 1 0 1 1 0 8 0 amappl12 160 4 0 3 2 1 1 1 0 8 0 amappl11 152 235 0 218 1 0 1 1 0 8 0 amappl10 144 13 0 9 1 0 1 1 0 8 0 amappl9 136 599 0 596 1 0 1 1 0 8 0 amappl8 128 146 0 114 2 0 2 2 0 8 0 amappl7 120 102 0 91 1 0 1 1 0 8 0 amappl6 112 237 0 225 1 0 1 1 0 8 0 amappl5 104 142 0 126 1 0 1 1 0 8 0 amappl4 96 834 0 808 1 0 1 1 0 8 0 amappl3 88 127 0 120 1 0 1 1 0 8 0 amappl2 80 3799 0 3733 3 1 2 3 0 8 0 amappl1 72 22908 0 22474 26 16 10 21 0 8 0 amappl 80 1789 0 1743 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 35 0 4 1 0 1 1 0 8 0 uaddrrnd 24 585 0 569 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 585 0 569 1 0 1 1 0 8 0 vmmpekpl 168 8653 0 8609 3 0 3 3 0 8 0 vmmpepl 168 78110 0 76052 125 27 98 117 0 357 6 vmsppl 368 584 0 569 2 0 2 2 0 8 0 pdppl 4096 1177 0 1138 6 0 6 6 0 8 1 pvpl 32 214509 0 194556 173 2 171 171 0 265 6 pmappl 232 584 0 569 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 200 0 7 6 0 6 6 0 8 0