login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd807a536b00+16 0x0!=0x3ecf4fdeb6612d59 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *249023 3431 0 0x12 0 1 sshd 340200 66547 0 0x14000 0x200 0 softnet 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(ffffffff8264e7f0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264e7f0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd807a536100,834,fc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd807a536100,834,fc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a7b100) at tcp_output+0x151c sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e985008,9,fffffd806d2b7a00,0,0,ffff800020ac1b38) at tcp_usrreq+0xa45 sosend(fffffd806e985008,0,ffff800020aeb028,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ac1b38,4,ffff800020aeb028,0,ffff800020aeb110) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac1b38,ffff800020aeb0c0,ffff800020aeb110) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb190) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb190) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,4,1f68db11616b,4,4,1f6b84603540) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1240, 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{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 0xfffffd807a536b00+16 0x0!=0x3ecf4fdeb6612d59 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(ffffffff8264e7f0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264e7f0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd807a536100,834,fc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd807a536100,834,fc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a7b100) at tcp_output+0x151c sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e985008,9,fffffd806d2b7a00,0,0,ffff800020ac1b38) at tcp_usrreq+0xa45 sosend(fffffd806e985008,0,ffff800020aeb028,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ac1b38,4,ffff800020aeb028,0,ffff800020aeb110) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac1b38,ffff800020aeb0c0,ffff800020aeb110) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb190) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb190) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,4,1f68db11616b,4,4,1f6b84603540) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1240, count: -12 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aea9d0 rbx 0xffff800020aeaa80 rdx 0xffff800020ac1b38 rcx 0 rax 0 r8 0xffffffff8182804f kprintf+0x16f r9 0x1 r10 0x25 r11 0xa58deb2f767ab3d r12 0x3000000008 r13 0xffff800020aea9e0 r14 0x100 r15 0x1 rip 0xffffffff81d20338 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aea9c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (sshd) pid=249023 stat=onproc flags process=12 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0ee0,0xffff800020ac0a00 process=0xffff800020a8ae10 user=0xffff800020ae6000, vmspace=0xfffffd806e7e2008 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 42212 200682 70780 0 2 0 syz-executor.1 42212 227578 70780 0 2 0x4000000 syz-executor.1 70780 109851 7542 0 3 0x82 nanosleep syz-executor.1 944 124989 1 0 3 0x100083 ttyin getty 26500 236919 0 0 3 0x14200 acct acct 66957 322399 7542 0 3 0x2 biowait syz-executor.0 89692 386587 0 0 3 0x14200 bored sosplice 7542 297010 18102 0 3 0x82 thrsleep syz-fuzzer 7542 8760 18102 0 3 0x4000082 nanosleep syz-fuzzer 7542 277283 18102 0 3 0x4000082 thrsleep syz-fuzzer 7542 500873 18102 0 3 0x4000082 thrsleep syz-fuzzer 7542 292453 18102 0 3 0x4000082 kqread syz-fuzzer 7542 229614 18102 0 3 0x4000082 thrsleep syz-fuzzer 7542 435916 18102 0 3 0x4000082 thrsleep syz-fuzzer 7542 449864 18102 0 3 0x4000082 nanosleep syz-fuzzer 7542 420419 18102 0 3 0x4000082 thrsleep syz-fuzzer 7542 263160 18102 0 3 0x4000082 thrsleep syz-fuzzer 18102 233568 3431 0 3 0x10008a pause ksh * 3431 249023 5553 0 7 0x12 sshd 5553 294525 1 0 3 0x80 select sshd 12496 211 43915 74 3 0x100092 bpf pflogd 43915 486619 1 0 3 0x80 netio pflogd 99203 252481 60641 73 3 0x100090 kqread syslogd 60641 11965 1 0 3 0x100082 netio syslogd 32210 351425 1 77 3 0x100090 poll dhclient 80913 253608 1 0 3 0x80 poll dhclient 17829 104583 0 0 3 0x14200 pgzero zerothread 2881 248238 0 0 3 0x14200 aiodoned aiodoned 17921 110689 0 0 3 0x14200 syncer update 38417 126252 0 0 3 0x14200 cleaner cleaner 92753 522843 0 0 3 0x14200 reaper reaper 51584 84817 0 0 3 0x14200 pgdaemon pagedaemon 16518 263433 0 0 3 0x14200 bored crynlk 47077 158497 0 0 3 0x14200 bored crypto 26886 68414 0 0 3 0x40014200 acpi0 acpi0 84875 192894 0 0 3 0x40014200 idle1 66547 340200 0 0 7 0x14200 softnet 35597 132958 0 0 3 0x14200 bored systqmp 48875 322019 0 0 3 0x14200 bored systq 61384 116552 0 0 3 0x40014200 bored softclock 10290 145843 0 0 3 0x40014200 idle0 33569 218041 0 0 3 0x14200 bored smr 1 468282 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 66957 (syz-executor.0) thread 0xffff800020ab1160 (322399) exclusive rrwlock inode r = 0 (0xfffffd807a10f6f8) #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:574 #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+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #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 exclusive rrwlock inode r = 0 (0xfffffd807e9975f0) #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:574 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 cache_lookup+0x2bb sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1bc sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #9 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #10 namei+0x63c sys/kern/vfs_lookup.c:249 #11 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 Process 3431 (sshd) thread 0xffff800020ac1b38 (249023) exclusive rwlock netlock r = 0 (0xffffffff82505ce8) #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 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:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 Process 66547 (softnet) thread 0xffff800020a104f0 (340200) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262ed78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 if_qstart_compat+0x1a sys/net/if.c:685 #2 ifq_serialize+0x173 sys/net/ifq.c:108 #3 taskq_thread+0x9c sys/kern/kern_task.c:368 #4 proc_trampoline+0x1c shared rwlock softnet r = 0 (0xffff8000000230e0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 taskq_thread+0x8f sys/kern/kern_task.c:367 #2 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9559 6443K 7605K 78643K 14069 0 0 pcb 13 8K 8K 78643K 2134 0 0 rtable 87 7K 8K 78643K 1177 0 0 ifaddr 72 16K 17K 78643K 421 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1532 0 0 iov 0 0K 22K 78643K 1445 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1230 77K 78K 78643K 2892 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 22 0 0 VM map 10 5K 5K 78643K 13 0 0 sem 12 1K 1K 78643K 87 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2471 0 0 sigio 0 0K 0K 78643K 23 0 0 proc 62 63K 95K 78643K 932 0 0 subproc 32 2K 2K 78643K 170 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 165 0 0 in_multi 24 1K 2K 78643K 222 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 456 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 135 88K 88K 78643K 9093 0 0 UVM aobj 69 5K 5K 78643K 69 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 401 0 0 NDP 16 0K 0K 78643K 125 0 0 temp 199 3556K 4196K 78643K 57816 0 0 kqueue 0 0K 0K 78643K 4 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 30 0 27 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 165 0 163 1 0 1 1 0 8 0 rtentry 112 160 0 128 2 0 2 2 0 8 0 unpcb 120 767 0 757 1 0 1 1 0 8 0 syncache 264 9 0 9 4 4 0 1 0 8 0 tcpqe 32 6632 0 6632 1 1 0 1 0 8 0 tcpcb 544 568 0 563 1 0 1 1 0 8 0 inpcb 280 5240 0 5232 6 4 2 3 0 8 1 rttmr 72 1 0 0 1 0 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 22 0 20 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 ppxss 1128 60 0 60 5 4 1 1 0 8 1 pffrag 232 20 0 20 5 5 0 1 0 482 0 pffrnode 88 20 0 20 5 5 0 1 0 8 0 pffrent 40 385 0 385 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 116 0 52 1 0 1 1 0 8 0 pfstkey 112 116 0 52 2 0 2 2 0 8 0 pfstate 328 116 0 52 6 0 6 6 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 713 0 519 17 4 13 16 0 8 0 art_table 32 714 0 519 3 1 2 3 0 8 0 art_node 16 159 0 130 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 16 1 1 0 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 85 0 75 1 0 1 1 0 8 0 shmpl 112 67 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5056 0 3644 46 0 46 46 0 8 0 ffsino 272 5056 0 3644 95 0 95 95 0 8 0 nchpl 144 8935 0 8461 61 40 21 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 30376 0 30376 2 1 1 1 0 8 1 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 552 11 0 3 3 2 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 25480 0 25479 18 17 1 7 0 8 0 plimitpl 152 115 0 107 1 0 1 1 0 8 0 sigapl 432 2648 0 2633 3 1 2 3 0 8 0 futexpl 56 55610 0 55610 1 0 1 1 0 8 1 knotepl 112 441 0 422 3 2 1 2 0 8 0 kqueuepl 104 324 0 322 1 0 1 1 0 8 0 pipepl 112 974 0 955 3 2 1 2 0 8 0 fdescpl 488 2649 0 2633 3 0 3 3 0 8 0 filepl 152 21341 0 21237 13 7 6 7 0 8 1 lockfpl 104 513 0 512 1 0 1 1 0 8 0 lockfspl 48 185 0 184 1 0 1 1 0 8 0 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 35 0 24 1 0 1 1 0 8 0 ucredpl 96 5467 0 5458 1 0 1 1 0 8 0 zombiepl 144 2634 0 2634 3 2 1 1 0 8 1 processpl 896 2667 0 2634 4 0 4 4 0 8 0 procpl 632 7860 0 7817 6 1 5 5 0 8 0 srpgc 64 12 0 12 5 5 0 1 0 8 0 sosppl 128 14 0 14 6 6 0 1 0 8 0 sockpl 384 7962 0 7942 12 8 4 5 0 8 2 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 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 20 0 0 3 1 2 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 195 0 0 23 1 22 23 0 8 0 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 350 0 0 16 0 16 16 0 8 0 bufpl 256 11071 0 4023 441 0 441 441 0 8 0 anonpl 16 277281 0 259394 133 53 80 90 0 124 6 amapchunkpl 152 16480 0 16342 25 17 8 13 0 158 1 amappl16 192 13357 0 12346 114 62 52 64 0 8 1 amappl15 184 65 0 65 1 1 0 1 0 8 0 amappl14 176 407 0 404 2 1 1 1 0 8 0 amappl13 168 105 0 105 2 2 0 1 0 8 0 amappl12 160 24 0 23 1 0 1 1 0 8 0 amappl11 152 1514 0 1497 1 0 1 1 0 8 0 amappl10 144 339 0 335 1 0 1 1 0 8 0 amappl9 136 724 0 717 1 0 1 1 0 8 0 amappl8 128 307 0 271 2 0 2 2 0 8 0 amappl7 120 402 0 395 1 0 1 1 0 8 0 amappl6 112 1507 0 1494 1 0 1 1 0 8 0 amappl5 104 216 0 202 1 0 1 1 0 8 0 amappl4 96 2908 0 2877 1 0 1 1 0 8 0 amappl3 88 555 0 545 1 0 1 1 0 8 0 amappl2 80 19981 0 19905 4 2 2 3 0 8 0 amappl1 72 68693 0 68248 27 17 10 21 0 8 0 amappl 80 8274 0 8230 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 68 0 0 2 0 2 2 0 8 0 uaddrrnd 24 2660 0 2633 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2660 0 2633 1 0 1 1 0 8 0 vmmpekpl 168 20064 0 20025 2 0 2 2 0 8 0 vmmpepl 168 333478 0 331266 223 89 134 134 0 357 32 vmsppl 368 2648 0 2633 2 0 2 2 0 8 0 pdppl 4096 5327 0 5280 8 1 7 7 0 8 1 pvpl 32 750897 0 730549 284 82 202 212 0 265 34 pmappl 232 2659 0 2636 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 623 0 11 18 0 18 18 0 8 0