panic(ffffffff821d187e) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff826397d0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff826397d0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff826397d0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000a04980) at tcp_output+0x14e6 tcp_usrreq(fffffd806eaefaf8,9,fffffd80643c3a00,0,0,ffff800020ae1d50) at tcp_usrreq+0xa55 sosend(fffffd806eaefaf8,0,ffff800020b03448,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ae1d50,4,ffff800020b03448,0,ffff800020b03530) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ae1d50,ffff800020b034e0,ffff800020b03530) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b035b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020b035b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeac60, 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 0xfffffd80643c3b00+16 0x0!=0xc3a4b4c81324dc1d ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d187e) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff826397d0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff826397d0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff826397d0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000a04980) at tcp_output+0x14e6 tcp_usrreq(fffffd806eaefaf8,9,fffffd80643c3a00,0,0,ffff800020ae1d50) at tcp_usrreq+0xa55 sosend(fffffd806eaefaf8,0,ffff800020b03448,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ae1d50,4,ffff800020b03448,0,ffff800020b03530) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ae1d50,ffff800020b034e0,ffff800020b03530) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020b035b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020b035b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeac60, count: -12 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b02e40 rbx 0xffff800020b02ef0 rdx 0xffff800020ae1d50 rcx 0 rax 0 r8 0xffffffff81fbc47f kprintf+0x16f r9 0x1 r10 0x25 r11 0xa848cfb1a2271106 r12 0x3000000008 r13 0xffff800020b02e50 r14 0x100 r15 0x1 rip 0xffffffff8121f6c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b02e30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (sshd) pid=171458 stat=onproc flags process=12 proc=0 pri=24, usrpri=55, nice=20 forw=0xffffffffffffffff, list=0xffff800020ae0eb0,0xffff800020ae1130 process=0xffff800020ad8018 user=0xffff800020afe000, vmspace=0xfffffd806e913a18 estcpu=5, cpticks=18, pctcpu=0.0 user=0, sys=17, intr=1 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47197 452801 76873 0 2 0x2 syz-executor.1 23823 312632 0 0 3 0x14200 bored sosplice 70018 120955 76873 0 7 0x2 syz-executor.0 76873 21627 34272 0 3 0x82 thrsleep syz-fuzzer 76873 275738 34272 0 3 0x4000082 nanosleep syz-fuzzer 76873 438758 34272 0 3 0x4000082 kqread syz-fuzzer 76873 493705 34272 0 3 0x4000082 thrsleep syz-fuzzer 76873 240922 34272 0 3 0x4000082 thrsleep syz-fuzzer 76873 383933 34272 0 3 0x4000082 thrsleep syz-fuzzer 76873 234485 34272 0 3 0x4000082 thrsleep syz-fuzzer 76873 244986 34272 0 3 0x4000082 thrsleep syz-fuzzer 76873 71040 34272 0 3 0x4000082 thrsleep syz-fuzzer 76873 350629 34272 0 2 0x4000002 syz-fuzzer 34272 374961 61501 0 3 0x10008a pause ksh *61501 171458 51102 0 7 0x12 sshd 37450 370336 1 0 3 0x100083 ttyin getty 51102 199241 1 0 3 0x80 select sshd 32460 82768 84586 74 3 0x100092 bpf pflogd 84586 258673 1 0 3 0x80 netio pflogd 45968 97223 68805 73 3 0x100090 kqread syslogd 68805 391666 1 0 3 0x100082 netio syslogd 76794 520497 0 0 2 0x14200 zerothread 95201 76713 0 0 3 0x14200 aiodoned aiodoned 35992 355468 0 0 3 0x14200 syncer update 98053 305959 0 0 3 0x14200 cleaner cleaner 54129 464422 0 0 3 0x14200 reaper reaper 94798 216363 0 0 3 0x14200 pgdaemon pagedaemon 62200 3307 0 0 3 0x14200 bored crynlk 83305 439109 0 0 3 0x14200 bored crypto 90923 452940 0 0 3 0x40014200 acpi0 acpi0 31929 377050 0 0 3 0x40014200 idle1 2427 162919 0 0 3 0x14200 bored softnet 69687 25442 0 0 3 0x14200 bored systqmp 28301 69542 0 0 3 0x14200 bored systq 86472 366651 0 0 3 0x40014200 bored softclock 57417 305798 0 0 3 0x40014200 idle0 81148 313274 0 0 3 0x14200 bored smr 1 522934 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 70018 (syz-executor.0) thread 0xffff800020a7c9c8 (120955) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8263c7d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 #2 usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 #3 recall_trap+0x8 Process 61501 (sshd) thread 0xffff800020ae1d50 (171458) exclusive rwlock netlock r = 0 (0xffffffff8246daa8) #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+0x1b7 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 9540 6378K 7269K 78643K 11890 0 pcb 13 8K 8K 78643K 176 0 rtable 116 4K 5K 78643K 389 0 ifaddr 96 18K 18K 78643K 224 0 counters 43 33K 34K 78643K 83 0 ioctlops 0 0K 4K 78643K 1517 0 iov 0 0K 16K 78643K 115 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1692 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 1K 1K 78643K 17 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 4 9K 25K 78643K 671 0 sigio 0 0K 0K 78643K 32 0 proc 56 51K 83K 78643K 578 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 1K 78643K 105 0 in_multi 79 4K 4K 78643K 188 0 ether_multi 1 0K 0K 78643K 22 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 291 0 pfkey data 0 0K 0K 78643K 1 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 103K 78643K 3377 0 UVM aobj 50 2K 2K 78643K 57 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 102 0 NDP 16 0K 0K 78643K 48 0 temp 149 3019K 3085K 78643K 10273 0 kqueue 3 4K 12K 78643K 37 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 13 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 84 0 84 1 0 1 1 0 8 1 rtentry 112 93 0 48 2 0 2 2 0 8 0 unpcb 120 1560 0 1552 3 1 2 2 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 225 0 225 1 1 0 1 0 8 0 tcpcb 544 257 0 253 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 940 0 933 3 1 2 2 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 12 0 9 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 9 0 9 4 3 1 1 0 482 1 pffrnode 88 9 0 9 4 3 1 1 0 8 1 pffrent 40 192 0 192 4 3 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 74 0 16 1 0 1 1 0 8 0 pfstkey 112 74 0 16 2 0 2 2 0 8 0 pfstate 328 74 0 16 6 0 6 6 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 413 0 206 15 1 14 15 0 8 0 art_table 32 415 0 206 2 0 2 2 0 8 0 art_node 16 88 0 46 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 20 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 55 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2376 0 971 46 0 46 46 0 8 0 ffsino 272 2376 0 971 95 0 95 95 0 8 0 nchpl 144 3554 0 1948 61 0 61 61 0 8 0 uvmvnodes 72 2770 0 0 51 0 51 51 0 8 0 vnodes 208 2770 0 0 146 0 146 146 0 8 0 namei 1024 11588 0 11588 1 0 1 1 0 8 1 percpumem 16 52 0 20 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 2 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 10522 0 10520 11 10 1 7 0 8 0 plimitpl 152 83 0 76 1 0 1 1 0 8 0 sigapl 432 864 0 852 3 1 2 3 0 8 0 futexpl 56 15170 0 15170 1 0 1 1 0 8 1 knotepl 112 115 0 96 1 0 1 1 0 8 0 kqueuepl 104 162 0 160 1 0 1 1 0 8 0 pipelkpl 48 241 0 231 1 0 1 1 0 8 0 pipepl 120 482 0 463 2 1 1 2 0 8 0 fdescpl 496 865 0 852 3 0 3 3 0 8 0 filepl 152 7998 0 7908 8 2 6 6 0 8 2 lockfpl 104 219 0 219 1 0 1 1 0 8 1 lockfspl 48 73 0 73 1 0 1 1 0 8 1 sessionpl 112 20 0 11 1 0 1 1 0 8 0 pgrppl 48 28 0 19 1 0 1 1 0 8 0 ucredpl 96 740 0 732 1 0 1 1 0 8 0 zombiepl 144 852 0 852 1 0 1 1 0 8 1 processpl 960 881 0 852 5 1 4 5 0 8 0 procpl 624 2469 0 2431 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 19 0 19 3 2 1 1 0 8 1 sockpl 400 2599 0 2587 8 3 5 5 0 8 3 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 185 0 0 23 1 22 23 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 438 0 0 25 0 25 25 0 8 0 bufpl 280 5495 0 200 379 0 379 379 0 8 0 anonpl 16 94180 0 78176 84 17 67 82 0 125 0 amapchunkpl 152 6205 0 6078 25 19 6 20 0 158 0 amappl16 192 3851 0 2958 58 12 46 57 0 8 1 amappl15 184 241 0 238 1 0 1 1 0 8 0 amappl14 176 53 0 49 1 0 1 1 0 8 0 amappl13 168 162 0 162 1 1 0 1 0 8 0 amappl12 160 10 0 9 1 0 1 1 0 8 0 amappl11 152 61 0 53 1 0 1 1 0 8 0 amappl10 144 10 0 6 1 0 1 1 0 8 0 amappl9 136 936 0 932 1 0 1 1 0 8 0 amappl8 128 467 0 437 3 1 2 2 0 8 0 amappl7 120 116 0 102 1 0 1 1 0 8 0 amappl6 112 67 0 56 1 0 1 1 0 8 0 amappl5 104 154 0 142 1 0 1 1 0 8 0 amappl4 96 1125 0 1099 1 0 1 1 0 8 0 amappl3 88 144 0 137 1 0 1 1 0 8 0 amappl2 80 6163 0 6102 3 1 2 3 0 8 0 amappl1 72 29163 0 28755 26 16 10 21 0 8 0 amappl 80 2763 0 2720 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 56 0 7 1 0 1 1 0 8 0 uaddrrnd 24 873 0 854 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 873 0 854 1 0 1 1 0 8 0 vmmpekpl 168 10967 0 10933 2 0 2 2 0 8 0 vmmpepl 168 113727 0 111824 148 26 122 123 0 357 30 vmsppl 368 872 0 854 2 0 2 2 0 8 0 pdppl 4096 1753 0 1714 6 0 6 6 0 8 0 pvpl 32 286486 0 267460 195 20 175 194 0 265 17 pmappl 232 872 0 854 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 194 0 8 6 0 6 6 0 8 0