œ²™|øMßàn2.œ²™|øMßàn2.œ²™|øMßàn2.panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f0ab300+24 0x67125b9cd73442b4!=0x98eda61cb55becb4 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 3233 21349 0 0x2 0x4000080 0 syz-fuzzer *253792 55644 0 0x12 0 1 sshd 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(ffffffff8265c168) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8265c168) 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(ffff800020aeae68,0,4134,ffff800020aeafe8) at m_getuio+0xe4 sys/kern/uipc_socket.c:556 sosend(fffffd806e980a88,0,ffff800020aeafe8,0,0,80) at sosend+0x510 sys/kern/uipc_socket.c:511 dofilewritev(ffff800020ac0c68,4,ffff800020aeafe8,0,ffff800020aeb0d0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac0c68,ffff800020aeb080,ffff800020aeb0d0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb150) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb150) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,4,2481a51616b,4,4,24a301f2e00) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb8680, 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 0xfffffd806f0ab300+24 0x67125b9cd73442b4!=0x98eda61cb55becb4 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(ffffffff8265c168) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8265c168) 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(ffff800020aeae68,0,4134,ffff800020aeafe8) at m_getuio+0xe4 sys/kern/uipc_socket.c:556 sosend(fffffd806e980a88,0,ffff800020aeafe8,0,0,80) at sosend+0x510 sys/kern/uipc_socket.c:511 dofilewritev(ffff800020ac0c68,4,ffff800020aeafe8,0,ffff800020aeb0d0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac0c68,ffff800020aeb080,ffff800020aeb0d0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb150) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb150) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,4,2481a51616b,4,4,24a301f2e00) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffb8680, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aeaba0 rbx 0xffff800020aeac50 rdx 0xffff800020ac0c68 rcx 0 rax 0 r8 0xffffffff81e1baef kprintf+0x16f r9 0x1 r10 0x25 r11 0x5774c9b919975cea r12 0x3000000008 r13 0xffff800020aeabb0 r14 0x100 r15 0x1 rip 0xffffffff8205b318 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aeab90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (sshd) pid=253792 stat=onproc flags process=12 proc=0 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac18c0,0xffff800020ac13e0 process=0xffff800020a8bc10 user=0xffff800020ae6000, vmspace=0xfffffd806e7dc178 estcpu=1, cpticks=2, pctcpu=0.8 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79291 516328 94991 0 2 0 syz-executor.0 79291 219740 94991 0 3 0x4000080 bell syz-executor.0 94991 140566 21349 0 3 0x82 nanosleep syz-executor.0 4207 35948 1 0 3 0x100083 ttyin getty 47411 106479 21349 0 2 0x2 syz-executor.1 70924 192037 0 0 3 0x14200 bored sosplice 21349 294006 7625 0 3 0x82 thrsleep syz-fuzzer 21349 290431 7625 0 3 0x4000082 nanosleep syz-fuzzer 21349 376193 7625 0 3 0x4000082 thrsleep syz-fuzzer 21349 335976 7625 0 3 0x4000082 nanosleep syz-fuzzer 21349 197937 7625 0 3 0x4000082 thrsleep syz-fuzzer 21349 303714 7625 0 3 0x4000082 thrsleep syz-fuzzer 21349 323909 7625 0 3 0x4000082 thrsleep syz-fuzzer 21349 466568 7625 0 3 0x4000082 thrsleep syz-fuzzer 21349 388386 7625 0 3 0x4000082 thrsleep syz-fuzzer 21349 3233 7625 0 7 0x4000082 syz-fuzzer 21349 452979 7625 0 3 0x4000082 thrsleep syz-fuzzer 7625 500847 55644 0 3 0x10008a pause ksh *55644 253792 18587 0 7 0x12 sshd 18587 78526 1 0 3 0x80 select sshd 60417 424158 20620 74 3 0x100092 bpf pflogd 20620 396754 1 0 3 0x80 netio pflogd 10689 437406 54518 73 3 0x100090 kqread syslogd 54518 97642 1 0 3 0x100082 netio syslogd 40747 247706 1 77 3 0x100090 poll dhclient 45732 451068 1 0 3 0x80 poll dhclient 86479 260456 0 0 3 0x14200 pgzero zerothread 85813 101517 0 0 3 0x14200 aiodoned aiodoned 26422 441180 0 0 3 0x14200 syncer update 56987 7539 0 0 3 0x14200 cleaner cleaner 31739 301176 0 0 3 0x14200 reaper reaper 27379 217496 0 0 3 0x14200 pgdaemon pagedaemon 76400 118933 0 0 3 0x14200 bored crynlk 43143 195426 0 0 3 0x14200 bored crypto 24034 354120 0 0 3 0x40014200 acpi0 acpi0 52602 414591 0 0 3 0x40014200 idle1 23578 389662 0 0 3 0x14200 bored softnet 19845 436980 0 0 3 0x14200 bored systqmp 11221 197778 0 0 3 0x14200 bored systq 14110 122950 0 0 3 0x40014200 bored softclock 50839 469015 0 0 3 0x40014200 idle0 61050 2862 0 0 3 0x14200 bored smr 1 350050 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 47411 (syz-executor.1) thread 0xffff800020acec78 (106479) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82633948) #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 9553 7071K 7717K 78643K 13245 0 0 pcb 13 10K 12K 78643K 279 0 0 rtable 91 4K 5K 78643K 1135 0 0 ifaddr 70 14K 16K 78643K 281 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1544 0 0 iov 0 0K 24K 78643K 248 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 2377 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 18 0 0 VM map 8 4K 4K 78643K 24 0 0 sem 12 0K 1K 78643K 253 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1459 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 62 63K 95K 78643K 1022 0 0 subproc 32 2K 2K 78643K 221 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 70 0 0 in_multi 23 1K 2K 78643K 212 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 561 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 127 71K 81K 78643K 6042 0 0 UVM aobj 99 8K 8K 78643K 105 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 302 0 0 NDP 16 0K 0K 78643K 90 0 0 temp 200 3560K 4200K 78643K 24548 0 0 kqueue 0 0K 0K 78643K 3 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 51 0 47 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 123 0 121 1 0 1 1 0 8 0 rtentry 112 237 0 203 2 0 2 2 0 8 0 unpcb 120 655 0 642 1 0 1 1 0 8 0 syncache 264 11 0 11 4 4 0 1 0 8 0 tcpqe 32 115 0 115 3 3 0 1 0 8 0 tcpcb 544 701 0 696 13 7 6 13 0 8 5 inpcb 280 1735 0 1727 14 8 6 10 0 8 5 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 31 0 29 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 28 0 28 5 4 1 1 0 8 1 pffrag 232 27 0 27 5 5 0 1 0 482 0 pffrnode 88 27 0 27 5 5 0 1 0 8 0 pffrent 40 616 0 616 5 5 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 127 0 68 1 0 1 1 0 8 0 pfstkey 112 127 0 68 2 0 2 2 0 8 0 pfstate 328 127 0 68 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 5 0 4 3 2 1 3 0 8 0 art_heap4 256 974 0 802 19 3 16 16 0 8 4 art_table 32 979 0 806 3 0 3 3 0 8 0 art_node 16 236 0 205 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 18 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 251 0 241 1 0 1 1 0 8 0 shmpl 112 103 0 6 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3988 0 2583 46 0 46 46 0 8 0 ffsino 272 3988 0 2583 95 0 95 95 0 8 0 nchpl 144 6490 0 4869 61 0 61 61 0 8 0 uvmvnodes 72 4806 0 0 88 0 88 88 0 8 0 vnodes 208 4806 0 0 253 0 253 253 0 8 0 namei 1024 22215 0 22215 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 552 22 0 16 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 22820 0 22820 17 16 1 7 0 8 1 plimitpl 152 156 0 148 1 0 1 1 0 8 0 sigapl 432 1628 0 1613 3 1 2 3 0 8 0 futexpl 56 28664 0 28664 1 0 1 1 0 8 1 knotepl 112 363 0 344 1 0 1 1 0 8 0 kqueuepl 104 679 0 677 4 3 1 4 0 8 0 pipepl 112 1174 0 1155 4 3 1 2 0 8 0 fdescpl 488 1629 0 1613 3 0 3 3 0 8 0 filepl 152 13331 0 13230 18 8 10 13 0 8 5 lockfpl 104 2348 0 2347 1 0 1 1 0 8 0 lockfspl 48 581 0 580 1 0 1 1 0 8 0 sessionpl 112 31 0 20 1 0 1 1 0 8 0 pgrppl 48 39 0 28 1 0 1 1 0 8 0 ucredpl 96 1529 0 1519 1 0 1 1 0 8 0 zombiepl 144 1614 0 1614 2 1 1 1 0 8 1 processpl 896 1646 0 1614 4 0 4 4 0 8 0 procpl 632 4691 0 4648 5 0 5 5 0 8 0 srpgc 64 16 0 16 6 6 0 1 0 8 0 sosppl 128 13 0 13 6 5 1 1 0 8 1 sockpl 384 2530 0 2507 22 14 8 15 0 8 5 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 21 1 20 21 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 424 0 0 22 0 22 22 0 8 0 bufpl 256 10431 0 3383 441 0 441 441 0 8 0 anonpl 16 226188 0 209694 119 39 80 88 0 124 2 amapchunkpl 152 11885 0 11753 26 19 7 13 0 158 0 amappl16 192 9033 0 7997 94 40 54 64 0 8 1 amappl14 176 494 0 488 2 1 1 1 0 8 0 amappl13 168 106 0 105 1 0 1 1 0 8 0 amappl12 160 489 0 487 1 0 1 1 0 8 0 amappl11 152 289 0 273 1 0 1 1 0 8 0 amappl10 144 22 0 17 1 0 1 1 0 8 0 amappl9 136 853 0 847 1 0 1 1 0 8 0 amappl8 128 406 0 372 2 0 2 2 0 8 0 amappl7 120 86 0 78 1 0 1 1 0 8 0 amappl6 112 271 0 258 1 0 1 1 0 8 0 amappl5 104 717 0 701 1 0 1 1 0 8 0 amappl4 96 1647 0 1614 1 0 1 1 0 8 0 amappl3 88 555 0 550 1 0 1 1 0 8 0 amappl2 80 11368 0 11294 4 2 2 3 0 8 0 amappl1 72 46802 0 46365 26 16 10 20 0 8 0 amappl 80 5146 0 5100 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 104 0 6 2 0 2 2 0 8 0 uaddrrnd 24 1651 0 1613 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1651 0 1613 1 0 1 1 0 8 0 vmmpekpl 168 17720 0 17683 2 0 2 2 0 8 0 vmmpepl 168 218420 0 216230 186 52 134 141 0 357 29 vmsppl 368 1628 0 1613 2 0 2 2 0 8 0 pdppl 4096 3309 0 3264 8 2 6 7 0 8 0 pvpl 32 616703 0 596993 254 56 198 210 0 265 21 pmappl 232 1650 0 1629 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 641 0 19 18 0 18 18 0 8 0