g Ăg Ăg Ăg Ăpanic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806d6f9800+24 0x93cb6c885dd43f40!=0x6c34910823d67140 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 397080 6801 0 0 0 1 syz-executor.1 * 41360 6801 0 0 0x4000000 0 syz-executor.1 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(ffffffff82664228) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82664228) 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(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 ip_fragment(fffffd806d6f9100,ffff8000001732a8,5b4) at ip_fragment+0x13a sys/netinet/ip_output.c:682 ip_output(fffffd806d6f9100,0,fffffd806f6ca070,20,0,fffffd806f6ca000) at ip_output+0xfc1 sys/netinet/ip_output.c:501 rip_output(fffffd806d6f9100,fffffd80658af680,ffff800022d67298,ffff800023588000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80658af680,9,fffffd806d6f9100,0,0,ffff800020ace788) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80658af680,0,ffff800022d67400,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ace788,8,ffff800022d674e0,0,ffff800022d675c0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ace788,ffff800022d67578,ffff800022d675c0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022d67640) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d67640) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,ea4086be010) at Xsyscall+0x128 end of kernel end trace frame: 0xea641a38d90, count: 1 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 0xfffffd806d6f9800+24 0x93cb6c885dd43f40!=0x6c34910823d67140 ddb{0}> 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(ffffffff82664228) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82664228) 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(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 ip_fragment(fffffd806d6f9100,ffff8000001732a8,5b4) at ip_fragment+0x13a sys/netinet/ip_output.c:682 ip_output(fffffd806d6f9100,0,fffffd806f6ca070,20,0,fffffd806f6ca000) at ip_output+0xfc1 sys/netinet/ip_output.c:501 rip_output(fffffd806d6f9100,fffffd80658af680,ffff800022d67298,ffff800023588000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80658af680,9,fffffd806d6f9100,0,0,ffff800020ace788) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80658af680,0,ffff800022d67400,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ace788,8,ffff800022d674e0,0,ffff800022d675c0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ace788,ffff800022d67578,ffff800022d675c0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022d67640) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d67640) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,ea4086be010) at Xsyscall+0x128 end of kernel end trace frame: 0xea641a38d90, count: -14 ddb{0}> show registers rdi 0xffffffff819807c7 db_enter+0x17 rsi 0x666e __ALIGN_SIZE+0x566e rbp 0xffff800022d66e20 rbx 0xffff800022d66ed0 rdx 0x666f __ALIGN_SIZE+0x566f rcx 0xffff800023588000 rax 0xffff800023588000 r8 0xffffffff81186cff kprintf+0x16f r9 0x1 r10 0x25 r11 0x8299e3d5d8cf86ec r12 0x3000000008 r13 0xffff800022d66e30 r14 0x100 r15 0x1 rip 0xffffffff819807c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d66e10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=41360 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace510,0xffffffff826330d0 process=0xffff800020a8a710 user=0xffff800022d62000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 6801 397080 13306 0 7 0 syz-executor.1 * 6801 41360 13306 0 7 0x4000000 syz-executor.1 70284 504062 83754 0 2 0 syz-executor.0 70284 403717 83754 0 3 0x4000080 nanosleep syz-executor.0 83754 244446 75662 0 3 0x82 nanosleep syz-executor.0 76482 16314 1 0 3 0x100083 ttyin getty 13306 119271 75662 0 3 0x82 nanosleep syz-executor.1 74428 149185 0 0 3 0x14200 acct acct 64714 180232 0 0 3 0x14200 bored sosplice 75662 146411 70723 0 3 0x82 thrsleep syz-fuzzer 75662 108016 70723 0 3 0x4000082 nanosleep syz-fuzzer 75662 305914 70723 0 3 0x4000082 thrsleep syz-fuzzer 75662 225080 70723 0 3 0x4000082 thrsleep syz-fuzzer 75662 218989 70723 0 3 0x4000082 kqread syz-fuzzer 75662 362541 70723 0 3 0x4000082 thrsleep syz-fuzzer 75662 516374 70723 0 3 0x4000082 thrsleep syz-fuzzer 75662 345183 70723 0 3 0x4000082 thrsleep syz-fuzzer 75662 352683 70723 0 3 0x4000082 thrsleep syz-fuzzer 75662 319926 70723 0 3 0x4000082 thrsleep syz-fuzzer 70723 149208 21380 0 3 0x10008a pause ksh 21380 398406 24015 0 3 0x92 select sshd 24015 448619 1 0 3 0x80 select sshd 2996 203325 72186 74 3 0x100092 bpf pflogd 72186 512711 1 0 3 0x80 netio pflogd 11627 443121 69415 73 3 0x100090 kqread syslogd 69415 336225 1 0 3 0x100082 netio syslogd 25761 443285 1 77 3 0x100090 poll dhclient 55549 501473 1 0 3 0x80 poll dhclient 55039 67404 0 0 2 0x14200 zerothread 33607 392420 0 0 3 0x14200 aiodoned aiodoned 1599 375156 0 0 3 0x14200 syncer update 49561 9104 0 0 3 0x14200 cleaner cleaner 92244 278355 0 0 3 0x14200 reaper reaper 53242 489518 0 0 3 0x14200 pgdaemon pagedaemon 60437 496650 0 0 3 0x14200 bored crynlk 50065 319839 0 0 3 0x14200 bored crypto 21864 50065 0 0 3 0x40014200 acpi0 acpi0 83572 56473 0 0 3 0x40014200 idle1 72028 346601 0 0 3 0x14200 bored softnet 83089 82490 0 0 3 0x14200 bored systqmp 81836 415620 0 0 3 0x14200 bored systq 29648 451354 0 0 3 0x40014200 bored softclock 8108 415365 0 0 3 0x40014200 idle0 71068 234358 0 0 3 0x14200 bored smr 1 16116 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 6801 (syz-executor.1) thread 0xffff800020ace788 (41360) exclusive rwlock netlock r = 0 (0xffffffff824b31d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x51b sys/kern/uipc_socket.c:512 #3 sendit+0x52b sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9608 6539K 14744K 78643K 17728 0 0 pcb 13 10K 12K 78643K 664 0 0 rtable 99 13K 14K 78643K 2363 0 0 ifaddr 88 19K 21K 78643K 715 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1594 0 0 iov 0 0K 40K 78643K 5116 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 77K 78643K 3988 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 57 0 0 VM map 2 1K 1K 78643K 27 0 0 sem 12 0K 0K 78643K 578 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3042 0 0 sigio 1 0K 0K 78643K 33 0 0 proc 61 63K 95K 78643K 1549 0 0 subproc 32 2K 2K 78643K 380 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 230 0 0 in_multi 20 1K 2K 78643K 421 0 0 ether_multi 1 0K 0K 78643K 31 0 0 mrt 1 0K 0K 78643K 28 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 793 0 0 pfkey data 0 0K 0K 78643K 2 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 114 22K 26K 78643K 11900 0 0 UVM aobj 130 4K 4K 78643K 146 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 688 0 0 NDP 22 0K 1K 78643K 228 0 0 temp 243 3563K 4195K 78643K 85368 0 0 kqueue 0 0K 0K 78643K 25 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 80 0 75 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 275 0 273 1 0 1 1 0 8 0 rtentry 112 391 0 358 2 0 2 2 0 8 0 unpcb 120 1253 0 1240 3 2 1 2 0 8 0 syncache 264 20 0 20 6 5 1 1 0 8 1 tcpqe 32 6148 0 6148 3 3 0 1 0 8 0 tcpcb 544 1142 0 1138 4 3 1 2 0 8 0 inpcb 280 3621 0 3609 23 21 2 13 0 8 1 rttmr 72 10 0 10 6 5 1 1 0 8 1 nd6 48 55 0 54 3 2 1 1 0 8 0 pkpcb 40 10 0 10 5 5 0 1 0 8 0 ppxss 1128 106 0 106 10 9 1 1 0 8 1 pffrag 232 46 0 46 11 10 1 1 0 482 1 pffrnode 88 46 0 46 11 10 1 1 0 8 1 pffrent 40 707 0 707 11 10 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 223 0 168 1 0 1 1 0 8 0 pfstkey 112 223 0 168 2 0 2 2 0 8 0 pfstate 328 223 0 168 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 4 5 3 2 3 0 8 0 art_heap4 256 1608 0 1445 32 20 12 15 0 8 0 art_table 32 1614 0 1449 2 0 2 2 0 8 0 art_node 16 384 0 353 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 572 0 562 1 0 1 1 0 8 0 shmpl 112 144 0 16 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6284 0 4880 46 0 46 46 0 8 0 ffsino 272 6284 0 4880 95 0 95 95 0 8 0 nchpl 144 12036 0 10406 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 42191 0 42191 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 25 0 25 12 11 1 1 0 8 1 scsiplug 64 7 0 7 5 5 0 1 0 8 0 scxspl 192 33851 0 33851 28 27 1 7 0 8 1 plimitpl 152 254 0 246 1 0 1 1 0 8 0 sigapl 432 3185 0 3169 3 1 2 3 0 8 0 futexpl 56 78981 0 78981 1 0 1 1 0 8 1 knotepl 112 2242 0 2222 4 3 1 2 0 8 0 kqueuepl 104 2607 0 2604 3 2 1 2 0 8 0 pipepl 112 6824 0 6805 8 6 2 2 0 8 1 fdescpl 488 3186 0 3169 3 0 3 3 0 8 0 filepl 152 35685 0 35580 27 21 6 14 0 8 1 lockfpl 104 2186 0 2185 1 0 1 1 0 8 0 lockfspl 48 588 0 587 1 0 1 1 0 8 0 sessionpl 112 41 0 30 1 0 1 1 0 8 0 pgrppl 48 56 0 45 1 0 1 1 0 8 0 ucredpl 96 3159 0 3150 1 0 1 1 0 8 0 zombiepl 144 3169 0 3169 3 2 1 1 0 8 1 processpl 896 3203 0 3169 4 0 4 4 0 8 0 procpl 632 10140 0 10095 5 0 5 5 0 8 0 srpgc 64 24 0 24 10 10 0 1 0 8 0 sosppl 128 84 0 84 12 12 0 1 0 8 0 sockpl 384 5209 0 5186 37 34 3 21 0 8 0 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 192 0 0 23 4 19 23 0 8 0 mtagpl 80 47 0 0 1 0 1 1 0 8 0 mbufpl 256 571 0 0 23 0 23 23 0 8 0 bufpl 256 14261 0 7213 441 0 441 441 0 8 0 anonpl 16 347324 0 330402 127 42 85 85 0 124 13 amapchunkpl 152 22788 0 22678 55 45 10 19 0 158 5 amappl16 192 14264 0 13298 111 54 57 61 0 8 8 amappl15 184 1595 0 1589 4 3 1 1 0 8 0 amappl14 176 844 0 842 2 1 1 1 0 8 0 amappl13 168 406 0 406 4 4 0 1 0 8 0 amappl12 160 497 0 496 2 1 1 1 0 8 0 amappl11 152 116 0 101 1 0 1 1 0 8 0 amappl10 144 19 0 14 1 0 1 1 0 8 0 amappl9 136 1006 0 999 1 0 1 1 0 8 0 amappl8 128 544 0 511 3 1 2 2 0 8 0 amappl7 120 139 0 130 1 0 1 1 0 8 0 amappl6 112 117 0 106 1 0 1 1 0 8 0 amappl5 104 798 0 784 1 0 1 1 0 8 0 amappl4 96 2896 0 2858 2 1 1 2 0 8 0 amappl3 88 1609 0 1604 1 0 1 1 0 8 0 amappl2 80 24409 0 24323 4 2 2 3 0 8 0 amappl1 72 82827 0 82374 25 15 10 20 0 8 0 amappl 80 10725 0 10686 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 145 0 16 3 0 3 3 0 8 0 uaddrrnd 24 3211 0 3169 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3211 0 3169 1 0 1 1 0 8 0 vmmpekpl 168 39560 0 39526 4 1 3 3 0 8 0 vmmpepl 168 408051 0 405833 250 131 119 134 0 357 22 vmsppl 368 3185 0 3169 2 0 2 2 0 8 0 pdppl 4096 6429 0 6388 7 1 6 6 0 8 0 pvpl 32 983761 0 963529 326 125 201 201 0 265 34 pmappl 232 3210 0 3194 10 8 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 652 0 36 18 0 18 18 0 8 0