panic(ffffffff821ce09c) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get(ffffffff8262c7f0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copyback(fffffd806d6cce00,0,c0,ffff800000a91e00,2) at m_copyback+0x4d7 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copyback(fffffd806d6cce00,0,c0,ffff800000a91e00,2) at m_copyback+0x4d7 sys/kern/uipc_mbuf.c:790 route_output(fffffd806d6cce00,fffffd806f657180,0,0) at route_output+0x7a7 sys/net/rtsock.c:862 route_usrreq(fffffd806f657180,9,fffffd806d6cce00,0,0,ffff800020a76ed8) at route_usrreq+0x36f sys/net/rtsock.c:275 sosend(fffffd806f657180,0,ffff800020abd4d0,0,0,0) at sosend+0x671 sys/kern/uipc_socket.c:538 dofilewritev(ffff800020a76ed8,6,ffff800020abd4d0,0,ffff800020abd5c0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_writev(ffff800020a76ed8,ffff800020abd570,ffff800020abd5c0) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff800020abd640) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020abd640) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffebc10, 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 0xfffffd807f01e900+24 0xa6a14cc764390db!=0xa6a144c196b1cdb ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ce09c) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get(ffffffff8262c7f0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copyback(fffffd806d6cce00,0,c0,ffff800000a91e00,2) at m_copyback+0x4d7 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copyback(fffffd806d6cce00,0,c0,ffff800000a91e00,2) at m_copyback+0x4d7 sys/kern/uipc_mbuf.c:790 route_output(fffffd806d6cce00,fffffd806f657180,0,0) at route_output+0x7a7 sys/net/rtsock.c:862 route_usrreq(fffffd806f657180,9,fffffd806d6cce00,0,0,ffff800020a76ed8) at route_usrreq+0x36f sys/net/rtsock.c:275 sosend(fffffd806f657180,0,ffff800020abd4d0,0,0,0) at sosend+0x671 sys/kern/uipc_socket.c:538 dofilewritev(ffff800020a76ed8,6,ffff800020abd4d0,0,ffff800020abd5c0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_writev(ffff800020a76ed8,ffff800020abd570,ffff800020abd5c0) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff800020abd640) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020abd640) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffebc10, count: -12 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abce60 rbx 0xffff800020abcf10 rdx 0xffff800020a76ed8 rcx 0 rax 0 r8 0xffffffff813f6f6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x8c33612e9a27a643 r12 0x3000000008 r13 0xffff800020abce70 r14 0x100 r15 0x1 rip 0xffffffff816d6248 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abce50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=257738 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a76280,0xffff800020a77160 process=0xffff800020aa2e10 user=0xffff800020ab8000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12543 194973 91785 0 7 0 syz-executor.1 12543 374659 91785 0 3 0x4000080 fsleep syz-executor.1 71917 23322 79949 0 3 0x2 biowait syz-executor.0 42292 265250 0 0 3 0x14200 bored sosplice 4631 480291 1 0 3 0x100083 ttyopn getty 91785 152397 79949 0 3 0x82 nanosleep syz-executor.1 79949 202871 25504 0 3 0x82 thrsleep syz-fuzzer 79949 27682 25504 0 3 0x4000082 nanosleep syz-fuzzer 79949 32962 25504 0 3 0x4000082 nanosleep syz-fuzzer 79949 13150 25504 0 3 0x4000082 thrsleep syz-fuzzer 79949 152422 25504 0 3 0x4000082 thrsleep syz-fuzzer 79949 350477 25504 0 3 0x4000082 thrsleep syz-fuzzer 79949 507761 25504 0 3 0x4000082 thrsleep syz-fuzzer 79949 153027 25504 0 3 0x4000082 thrsleep syz-fuzzer 79949 264157 25504 0 3 0x4000082 thrsleep syz-fuzzer 79949 440997 25504 0 3 0x4000082 kqread syz-fuzzer 25504 32796 59206 0 3 0x10008a pause ksh 59206 127521 24104 0 3 0x92 select sshd 24104 512691 1 0 3 0x80 select sshd 71777 458158 93763 74 3 0x100092 bpf pflogd 93763 228209 1 0 3 0x80 netio pflogd 4700 123842 39214 73 3 0x100090 kqread syslogd 39214 472811 1 0 3 0x100082 netio syslogd 17531 259779 1 77 3 0x100090 poll dhclient *10079 257738 1 0 7 0 dhclient 7683 367186 0 0 3 0x14200 pgzero zerothread 81582 202753 0 0 3 0x14200 aiodoned aiodoned 55776 379042 0 0 3 0x14200 syncer update 38181 140473 0 0 3 0x14200 cleaner cleaner 88389 262446 0 0 3 0x14200 reaper reaper 69381 231164 0 0 3 0x14200 pgdaemon pagedaemon 96288 283894 0 0 3 0x14200 bored crynlk 21514 208080 0 0 3 0x14200 bored crypto 13528 140833 0 0 3 0x40014200 acpi0 acpi0 23610 156198 0 0 3 0x40014200 idle1 18393 444529 0 0 3 0x14200 bored softnet 55269 221669 0 0 3 0x14200 bored systqmp 43991 428525 0 0 3 0x14200 bored systq 67746 18840 0 0 3 0x40014200 bored softclock 2121 224272 0 0 3 0x40014200 idle0 24642 403740 0 0 3 0x14200 bored smr 1 9468 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 71917 (syz-executor.0) thread 0xffff800020ac9b40 (23322) exclusive rrwlock inode r = 0 (0xfffffd8063387a30) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8063387f80) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #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 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2959 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 Process 10079 (dhclient) thread 0xffff800020a76ed8 (257738) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826509a0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 sosend+0x559 sys/kern/uipc_socket.c:526 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_writev+0xa7 sys/kern/sys_generic.c:311 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [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 9535 6429K 7000K 78643K 11779 0 pcb 13 8K 8K 78643K 105 0 rtable 124 5K 5K 78643K 872 0 ifaddr 96 19K 19K 78643K 189 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1494 0 iov 0 0K 16K 78643K 100 0 mount 1 1K 1K 78643K 1 0 vnodes 1226 77K 77K 78643K 1727 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 84 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 561 0 sigio 0 0K 0K 78643K 26 0 proc 63 63K 83K 78643K 562 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 33 0 in_multi 91 4K 4K 78643K 149 0 ether_multi 1 0K 0K 78643K 13 0 mrt 0 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 255 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 128 87K 87K 78643K 2830 0 UVM aobj 23 2K 2K 78643K 26 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 14 0K 0K 78643K 38 0 temp 140 3022K 3086K 78643K 19980 0 kqueue 3 4K 14K 78643K 51 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 15 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 581 0 579 1 0 1 1 0 8 0 rtentry 112 83 0 33 2 0 2 2 0 8 0 unpcb 120 308 0 298 1 0 1 1 0 8 0 syncache 264 7 0 7 2 2 0 1 0 8 0 tcpqe 32 573 0 573 2 2 0 1 0 8 0 tcpcb 544 207 0 201 2 1 1 2 0 8 0 inpcb 280 601 0 590 2 0 2 2 0 8 0 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 12 0 12 1 1 0 1 0 8 0 pffrag 232 4 0 4 1 1 0 1 0 482 0 pffrnode 88 4 0 4 1 1 0 1 0 8 0 pffrent 40 137 0 137 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 pfstitem 24 44 0 15 1 0 1 1 0 8 0 pfstkey 112 44 0 15 1 0 1 1 0 8 0 pfstate 328 44 0 15 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 375 0 142 16 1 15 15 0 8 0 art_table 32 377 0 142 2 0 2 2 0 8 0 art_node 16 82 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 14 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 82 0 72 1 0 1 1 0 8 0 shmpl 112 24 0 3 2 1 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2313 0 902 46 0 46 46 0 8 0 ffsino 272 2313 0 902 95 0 95 95 0 8 0 nchpl 144 3306 0 1703 61 0 61 61 0 8 0 uvmvnodes 72 2697 0 0 50 0 50 50 0 8 0 vnodes 208 2697 0 0 142 0 142 142 0 8 0 namei 1024 9677 0 9676 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 10 0 2 1 0 1 1 0 8 0 scxspl 192 9313 0 9312 9 8 1 7 0 8 0 plimitpl 152 66 0 58 1 0 1 1 0 8 0 sigapl 432 758 0 743 3 1 2 3 0 8 0 futexpl 56 9399 0 9398 1 0 1 1 0 8 0 knotepl 112 128 0 109 1 0 1 1 0 8 0 kqueuepl 104 111 0 109 1 0 1 1 0 8 0 pipelkpl 48 170 0 160 1 0 1 1 0 8 0 pipepl 120 340 0 321 1 0 1 1 0 8 0 fdescpl 496 759 0 743 3 0 3 3 0 8 0 filepl 152 5444 0 5343 7 2 5 6 0 8 1 lockfpl 104 152 0 151 1 0 1 1 0 8 0 lockfspl 48 56 0 55 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 516 0 507 1 0 1 1 0 8 0 zombiepl 144 743 0 743 1 0 1 1 0 8 1 processpl 896 775 0 743 4 0 4 4 0 8 0 procpl 632 1973 0 1931 5 0 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 12 0 12 2 1 1 1 0 8 1 sockpl 384 1506 0 1485 7 3 4 6 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 169 0 0 21 0 21 21 0 8 0 mtagpl 80 19 0 0 1 0 1 1 0 8 0 mbufpl 256 298 0 0 18 0 18 18 0 8 0 bufpl 280 7392 0 1346 432 0 432 432 0 8 0 anonpl 16 88259 0 72505 90 10 80 80 0 125 16 amapchunkpl 152 4544 0 4408 23 14 9 20 0 158 3 amappl16 192 3645 0 2789 61 10 51 55 0 8 8 amappl15 184 63 0 59 1 0 1 1 0 8 0 amappl14 176 99 0 96 1 0 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 5 0 5 1 1 0 1 0 8 0 amappl11 152 521 0 501 1 0 1 1 0 8 0 amappl10 144 13 0 10 1 0 1 1 0 8 0 amappl9 136 609 0 606 1 0 1 1 0 8 0 amappl8 128 148 0 119 1 0 1 1 0 8 0 amappl7 120 112 0 100 1 0 1 1 0 8 0 amappl6 112 503 0 496 1 0 1 1 0 8 0 amappl5 104 155 0 141 1 0 1 1 0 8 0 amappl4 96 1021 0 989 1 0 1 1 0 8 0 amappl3 88 140 0 132 1 0 1 1 0 8 0 amappl2 80 5113 0 5038 3 1 2 3 0 8 0 amappl1 72 26465 0 26020 24 13 11 20 0 8 0 amappl 80 2245 0 2197 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 25 0 3 1 0 1 1 0 8 0 uaddrrnd 24 769 0 745 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 769 0 745 1 0 1 1 0 8 0 vmmpekpl 168 9267 0 9233 3 1 2 2 0 8 0 vmmpepl 168 100075 0 98020 131 26 105 120 0 357 11 vmsppl 368 768 0 745 3 0 3 3 0 8 0 pdppl 4096 1545 0 1498 7 0 7 7 0 8 1 pvpl 32 266297 0 247327 207 18 189 189 0 265 35 pmappl 232 768 0 745 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 178 0 5 5 0 5 5 0 8 0