panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8062959f00+16 0x0!=0x475668344bf491e9 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 78149 40323 0 0 0x4000000 1K syz-executor.0 128693 20840 0 0 0 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(ffffffff8262eb30) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8262eb30) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_getclr(1,3) at m_getclr+0x4c m_get sys/kern/uipc_mbuf.c:250 [inline] m_getclr(1,3) at m_getclr+0x4c sys/kern/uipc_mbuf.c:364 sys_getsockname(ffff800020ab13d8,ffff800023bafd48,ffff800023bafd90) at sys_getsockname+0x128 sys/kern/uipc_syscalls.c:1051 syscall(ffff800023bafe10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bafe10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffef7,0,3,1db9ec29010) at Xsyscall+0x128 end of kernel end trace frame: 0x1de6e9c4450, count: 7 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 0xfffffd8062959f00+16 0x0!=0x475668344bf491e9 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(ffffffff8262eb30) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8262eb30) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_getclr(1,3) at m_getclr+0x4c m_get sys/kern/uipc_mbuf.c:250 [inline] m_getclr(1,3) at m_getclr+0x4c sys/kern/uipc_mbuf.c:364 sys_getsockname(ffff800020ab13d8,ffff800023bafd48,ffff800023bafd90) at sys_getsockname+0x128 sys/kern/uipc_syscalls.c:1051 syscall(ffff800023bafe10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bafe10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffef7,0,3,1db9ec29010) at Xsyscall+0x128 end of kernel end trace frame: 0x1de6e9c4450, count: -8 ddb{1}> show registers rdi 0xffffffff81a1d007 db_enter+0x17 rsi 0x3f04 __ALIGN_SIZE+0x2f04 rbp 0xffff800023bafaa0 rbx 0xffff800023bafb50 rdx 0x3f05 __ALIGN_SIZE+0x2f05 rcx 0xffff800020b7a000 rax 0xffff800020b7a000 r8 0xffffffff817d4c1f kprintf+0x16f r9 0x1 r10 0x25 r11 0x42732e9881e46360 r12 0x3000000008 r13 0xffff800023bafab0 r14 0x100 r15 0x1 rip 0xffffffff81a1d008 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bafa90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=78149 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff82630770 process=0xffff800020addc00 user=0xffff800023baa000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40323 395878 20933 0 2 0 syz-executor.0 *40323 78149 20933 0 7 0x4000000 syz-executor.0 20840 128693 4791 0 7 0 syz-executor.1 20840 391684 4791 0 3 0x4000000 biowait syz-executor.1 86480 87395 1 0 3 0x100083 ttyin getty 73033 410079 0 0 3 0x14200 bored sosplice 4791 471288 88037 0 3 0x82 nanosleep syz-executor.1 20933 183694 88037 0 3 0x82 nanosleep syz-executor.0 88037 166159 72825 0 3 0x82 thrsleep syz-fuzzer 88037 248695 72825 0 3 0x4000082 nanosleep syz-fuzzer 88037 415409 72825 0 3 0x4000082 thrsleep syz-fuzzer 88037 17768 72825 0 3 0x4000082 thrsleep syz-fuzzer 88037 113746 72825 0 3 0x4000082 kqread syz-fuzzer 88037 481598 72825 0 3 0x4000082 thrsleep syz-fuzzer 88037 459295 72825 0 3 0x4000082 thrsleep syz-fuzzer 88037 294358 72825 0 3 0x4000082 thrsleep syz-fuzzer 88037 208512 72825 0 3 0x4000082 thrsleep syz-fuzzer 88037 150247 72825 0 3 0x4000082 thrsleep syz-fuzzer 72825 7739 18288 0 3 0x10008a pause ksh 18288 109744 65369 0 3 0x92 select sshd 65369 237466 1 0 3 0x80 select sshd 33695 25118 32172 74 3 0x100092 bpf pflogd 32172 512075 1 0 3 0x80 netio pflogd 9711 204195 59372 73 3 0x100090 kqread syslogd 59372 211284 1 0 3 0x100082 netio syslogd 80242 490227 1 77 3 0x100090 poll dhclient 84208 391990 1 0 3 0x80 poll dhclient 1377 472700 0 0 2 0x14200 zerothread 8742 216527 0 0 3 0x14200 aiodoned aiodoned 19316 250240 0 0 3 0x14200 syncer update 44790 383193 0 0 3 0x14200 cleaner cleaner 81604 133512 0 0 3 0x14200 reaper reaper 31958 279330 0 0 3 0x14200 pgdaemon pagedaemon 65964 9612 0 0 3 0x14200 bored crynlk 65592 417547 0 0 3 0x14200 bored crypto 30816 447982 0 0 3 0x40014200 acpi0 acpi0 95895 69842 0 0 3 0x40014200 idle1 57282 25549 0 0 3 0x14200 bored softnet 82472 214561 0 0 3 0x14200 bored systqmp 45987 266544 0 0 3 0x14200 bored systq 87196 386023 0 0 3 0x40014200 bored softclock 83719 441268 0 0 3 0x40014200 idle0 35799 192429 0 0 3 0x14200 bored smr 1 11872 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 40323 (syz-executor.0) thread 0xffff800020ab13d8 (78149) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262bc68) #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 Process 20840 (syz-executor.1) thread 0xffff800020ab0ee8 (391684) exclusive rrwlock inode r = 0 (0xfffffd806e2464e0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #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:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806289fb40) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #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+0x131b sys/ufs/ufs/ufs_lookup.c:582 #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 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9526 6533K 6924K 78643K 11939 0 0 pcb 13 8K 8K 78643K 260 0 0 rtable 80 3K 4K 78643K 494 0 0 ifaddr 56 13K 14K 78643K 176 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1499 0 0 iov 0 0K 20K 78643K 101 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 77K 78643K 1645 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 5 0 0 VM map 4 2K 2K 78643K 8 0 0 sem 12 1K 1K 78643K 64 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 544 0 0 sigio 0 0K 0K 78643K 9 0 0 proc 61 63K 95K 78643K 511 0 0 subproc 32 2K 2K 78643K 34 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 87 0 0 in_multi 19 1K 2K 78643K 100 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 251 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 108 38K 40K 78643K 2885 0 0 UVM aobj 36 2K 2K 78643K 36 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 115 0 0 NDP 11 0K 0K 78643K 49 0 0 temp 164 3559K 3627K 78643K 6530 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 12 0 8 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 52 0 50 1 0 1 1 0 8 0 rtentry 112 92 0 62 2 0 2 2 0 8 0 unpcb 120 297 0 285 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 6728 0 6728 2 2 0 2 0 8 0 tcpcb 544 221 0 217 2 1 1 2 0 8 0 inpcb 280 1744 0 1735 5 3 2 4 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 11 0 10 1 0 1 1 0 8 0 ppxss 1128 22 0 22 2 2 0 1 0 8 0 pffrag 232 8 0 8 2 2 0 1 0 482 0 pffrnode 88 8 0 8 2 2 0 1 0 8 0 pffrent 40 313 0 313 2 2 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 58 0 42 1 0 1 1 0 8 0 pfstkey 112 58 0 42 2 0 2 2 0 8 0 pfstate 328 58 0 42 4 1 3 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 443 0 289 16 2 14 15 0 8 1 art_table 32 444 0 289 2 0 2 2 0 8 0 art_node 16 91 0 63 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 46 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 62 0 52 1 0 1 1 0 8 0 shmpl 112 34 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2223 0 815 46 0 46 46 0 8 0 ffsino 272 2223 0 815 95 0 95 95 0 8 0 nchpl 144 3268 0 1658 61 0 61 61 0 8 0 uvmvnodes 72 2581 0 0 47 0 47 47 0 8 0 vnodes 208 2581 0 0 136 0 136 136 0 8 0 namei 1024 9739 0 9738 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 4 2 1 1 1 0 8 0 scxspl 192 9644 0 9643 14 13 1 7 0 8 0 plimitpl 152 59 0 51 1 0 1 1 0 8 0 sigapl 432 745 0 729 3 1 2 3 0 8 0 futexpl 56 12760 0 12760 2 1 1 1 0 8 1 knotepl 112 169 0 150 2 1 1 2 0 8 0 kqueuepl 104 162 0 160 1 0 1 1 0 8 0 pipepl 112 738 0 719 5 4 1 2 0 8 0 fdescpl 488 746 0 729 3 0 3 3 0 8 0 filepl 152 6329 0 6224 8 3 5 7 0 8 0 lockfpl 104 185 0 184 1 0 1 1 0 8 0 lockfspl 48 63 0 62 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 586 0 577 1 0 1 1 0 8 0 zombiepl 144 729 0 729 4 3 1 1 0 8 1 processpl 896 762 0 729 4 0 4 4 0 8 0 procpl 632 2100 0 2056 6 1 5 5 0 8 1 sosppl 128 8 0 8 2 2 0 1 0 8 0 sockpl 384 2109 0 2086 8 4 4 6 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 208 0 0 23 0 23 23 0 8 0 mtagpl 80 47 0 0 1 0 1 1 0 8 0 mbufpl 256 729 0 0 45 1 44 44 0 8 0 bufpl 256 7747 0 1317 402 0 402 402 0 8 0 anonpl 16 85602 0 66920 107 15 92 92 0 124 15 amapchunkpl 152 4749 0 4617 27 20 7 19 0 158 0 amappl16 192 3990 0 2950 75 15 60 64 0 8 8 amappl15 184 8 0 7 1 0 1 1 0 8 0 amappl14 176 291 0 287 2 1 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 7 0 5 2 1 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 264 0 257 1 0 1 1 0 8 0 amappl9 136 618 0 612 1 0 1 1 0 8 0 amappl8 128 171 0 146 1 0 1 1 0 8 0 amappl7 120 290 0 283 1 0 1 1 0 8 0 amappl6 112 77 0 66 1 0 1 1 0 8 0 amappl5 104 133 0 119 1 0 1 1 0 8 0 amappl4 96 1011 0 979 1 0 1 1 0 8 0 amappl3 88 397 0 389 1 0 1 1 0 8 0 amappl2 80 5062 0 4981 4 2 2 3 0 8 0 amappl1 72 26198 0 25745 26 15 11 20 0 8 0 amappl 80 2352 0 2308 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 35 0 0 1 0 1 1 0 8 0 uaddrrnd 24 752 0 729 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 752 0 729 1 0 1 1 0 8 0 vmmpekpl 168 10877 0 10850 2 0 2 2 0 8 0 vmmpepl 168 98127 0 95843 150 45 105 117 0 357 5 vmsppl 368 745 0 729 2 0 2 2 0 8 0 pdppl 4096 1511 0 1468 7 1 6 6 0 8 0 pvpl 32 264947 0 243009 243 33 210 210 0 265 31 pmappl 232 751 0 733 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 609 0 10 18 0 18 18 0 8 0