login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f2add00+16 0x0!=0x21f6b4348911b172 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 97312 86756 0 0x2 0x4000000 0 syz-fuzzer *287418 99302 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(ffffffff82647520) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82647520) 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(fffffd8068c8e800,0,24c,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8068c8e800,0,24c,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a7aee0) at tcp_output+0x151c sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e985a88,9,fffffd8068c8e800,0,0,ffff800020ac1b38) at tcp_usrreq+0xa45 sosend(fffffd806e985a88,0,ffff800020aeafc8,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ac1b38,4,ffff800020aeafc8,0,ffff800020aeb0b0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac1b38,ffff800020aeb060,ffff800020aeb0b0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb130) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb130) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,4,1916d801616b,4,4,191936438a80) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf660, 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 0xfffffd806f2add00+16 0x0!=0x21f6b4348911b172 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(ffffffff82647520) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82647520) 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(fffffd8068c8e800,0,24c,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8068c8e800,0,24c,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a7aee0) at tcp_output+0x151c sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e985a88,9,fffffd8068c8e800,0,0,ffff800020ac1b38) at tcp_usrreq+0xa45 sosend(fffffd806e985a88,0,ffff800020aeafc8,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ac1b38,4,ffff800020aeafc8,0,ffff800020aeb0b0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac1b38,ffff800020aeb060,ffff800020aeb0b0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb130) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb130) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,4,1916d801616b,4,4,191936438a80) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf660, count: -12 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aea970 rbx 0xffff800020aeaa20 rdx 0xffff800020ac1b38 rcx 0 rax 0 r8 0xffffffff81cd62ff kprintf+0x16f r9 0x1 r10 0x25 r11 0xb80d409be43ac241 r12 0x3000000008 r13 0xffff800020aea980 r14 0x100 r15 0x1 rip 0xffffffff81823988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aea960 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (sshd) pid=287418 stat=onproc flags process=12 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0ee0,0xffff800020ac0298 process=0xffff800020a8bc10 user=0xffff800020ae6000, vmspace=0xfffffd806e7e1008 estcpu=0, cpticks=2, pctcpu=0.2 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29130 8713 83750 0 2 0 syz-executor.1 29130 460246 83750 0 2 0x4000000 syz-executor.1 46179 406729 86756 0 2 0x2 syz-executor.0 79167 34777 1 0 3 0x100083 ttyin getty 83750 121916 86756 0 2 0x2 syz-executor.1 64579 475959 0 0 3 0x14200 acct acct 83177 17303 0 0 3 0x14200 bored sosplice 86756 175323 56123 0 3 0x82 thrsleep syz-fuzzer 86756 190911 56123 0 3 0x4000082 nanosleep syz-fuzzer 86756 420952 56123 0 3 0x4000082 thrsleep syz-fuzzer 86756 241075 56123 0 3 0x4000082 thrsleep syz-fuzzer 86756 3650 56123 0 3 0x4000082 thrsleep syz-fuzzer 86756 367717 56123 0 3 0x4000082 thrsleep syz-fuzzer 86756 32358 56123 0 3 0x4000082 thrsleep syz-fuzzer 86756 211866 56123 0 3 0x4000082 nanosleep syz-fuzzer 86756 97312 56123 0 7 0x4000002 syz-fuzzer 86756 451839 56123 0 3 0x4000082 kqread syz-fuzzer 56123 214736 99302 0 3 0x10008a pause ksh *99302 287418 36213 0 7 0x12 sshd 36213 68768 1 0 3 0x80 select sshd 95747 308006 11795 74 3 0x100092 bpf pflogd 11795 186426 1 0 3 0x80 netio pflogd 71712 99444 34686 73 3 0x100090 kqread syslogd 34686 110969 1 0 3 0x100082 netio syslogd 98565 62530 1 77 3 0x100090 poll dhclient 47664 164634 1 0 3 0x80 poll dhclient 23640 301723 0 0 2 0x14200 zerothread 5318 318475 0 0 3 0x14200 aiodoned aiodoned 82541 150347 0 0 3 0x14200 syncer update 74266 89006 0 0 3 0x14200 cleaner cleaner 71250 460494 0 0 3 0x14200 reaper reaper 62578 519406 0 0 3 0x14200 pgdaemon pagedaemon 58587 75780 0 0 3 0x14200 bored crynlk 2092 520071 0 0 3 0x14200 bored crypto 21834 216205 0 0 3 0x40014200 acpi0 acpi0 85694 212473 0 0 3 0x40014200 idle1 49590 193299 0 0 3 0x14200 bored softnet 40101 238463 0 0 3 0x14200 bored systqmp 13914 189628 0 0 3 0x14200 bored systq 54324 57143 0 0 3 0x40014200 bored softclock 26321 73831 0 0 3 0x40014200 idle0 90509 419584 0 0 3 0x14200 bored smr 1 70661 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29130 (syz-executor.1) thread 0xffff800020abe780 (460246) exclusive rrwlock inode r = 0 (0xfffffd806e59e6f8) #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 vn_write+0x11b sys/kern/vfs_vnops.c:402 #6 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #7 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3269 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 Process 46179 (syz-executor.0) thread 0xffff800020abe508 (406729) exclusive rrwlock inode r = 0 (0xfffffd806e64ce78) #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 (0xfffffd8078e2fc48) #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 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 Process 99302 (sshd) thread 0xffff800020ac1b38 (287418) exclusive rwlock netlock r = 0 (0xffffffff824d6738) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9599 6699K 7216K 78643K 14496 0 0 pcb 13 10K 12K 78643K 202 0 0 rtable 104 4K 5K 78643K 944 0 0 ifaddr 79 17K 18K 78643K 295 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1515 0 0 iov 1 12K 16K 78643K 200 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 2392 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 15 0 0 VM map 2 1K 1K 78643K 8 0 0 sem 12 0K 1K 78643K 438 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1047 0 0 sigio 0 0K 0K 78643K 3 0 0 proc 62 63K 95K 78643K 745 0 0 subproc 32 2K 2K 78643K 119 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 58 0 0 in_multi 34 2K 2K 78643K 110 0 0 ether_multi 1 0K 0K 78643K 4 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 150 662K 662K 78643K 150 0 0 exec 0 0K 1K 78643K 359 0 0 pfkey data 0 0K 4K 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 108 22K 31K 78643K 4733 0 0 UVM aobj 67 3K 3K 78643K 72 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 647 0 0 NDP 18 0K 0K 78643K 88 0 0 temp 214 3560K 4184K 78643K 30806 0 0 kqueue 0 0K 0K 78643K 13 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 37 0 32 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 71 0 69 1 0 1 1 0 8 0 rtentry 112 153 0 113 2 0 2 2 0 8 0 unpcb 120 389 0 379 2 1 1 2 0 8 0 syncache 264 12 0 12 5 5 0 1 0 8 0 tcpqe 32 6262 0 6262 4 4 0 2 0 8 0 tcpcb 544 1161 0 1157 16 10 6 13 0 8 5 inpcb 280 2511 0 2504 11 5 6 9 0 8 5 rttmr 72 1 0 0 1 0 1 1 0 8 0 nd6 48 16 0 12 1 0 1 1 0 8 0 pkpcb 40 18 0 18 5 4 1 1 0 8 1 ppxss 1128 35 0 35 4 3 1 1 0 8 1 pffrag 232 11 0 11 5 5 0 1 0 482 0 pffrnode 88 11 0 11 5 5 0 1 0 8 0 pffrent 40 24 0 24 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 83 0 40 1 0 1 1 0 8 0 pfstkey 112 83 0 40 2 0 2 2 0 8 0 pfstate 328 83 0 40 4 0 4 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 594 0 355 20 3 17 17 0 8 0 art_table 32 595 0 355 3 0 3 3 0 8 0 art_node 16 148 0 112 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 432 0 422 1 0 1 1 0 8 0 shmpl 112 70 0 5 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3001 0 1599 46 0 46 46 0 8 0 ffsino 272 3001 0 1599 94 0 94 94 0 8 0 nchpl 144 4907 0 4414 61 40 21 61 0 8 0 uvmvnodes 72 3943 0 0 72 0 72 72 0 8 0 vnodes 208 3943 0 0 208 0 208 208 0 8 0 namei 1024 15824 0 15823 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 6 2 2 0 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 16323 0 16323 21 20 1 7 0 8 1 plimitpl 152 107 0 99 1 0 1 1 0 8 0 sigapl 432 1233 0 1218 3 1 2 3 0 8 0 futexpl 56 23565 0 23565 1 0 1 1 0 8 1 knotepl 112 298 0 279 1 0 1 1 0 8 0 kqueuepl 104 456 0 454 4 3 1 4 0 8 0 pipepl 112 1152 0 1133 6 5 1 2 0 8 0 fdescpl 488 1234 0 1218 3 0 3 3 0 8 0 filepl 152 11159 0 11057 21 11 10 14 0 8 5 lockfpl 104 333 0 331 1 0 1 1 0 8 0 lockfspl 48 124 0 122 1 0 1 1 0 8 0 sessionpl 112 24 0 13 1 0 1 1 0 8 0 pgrppl 48 35 0 24 1 0 1 1 0 8 0 ucredpl 96 1640 0 1631 1 0 1 1 0 8 0 zombiepl 144 1218 0 1218 3 2 1 1 0 8 1 processpl 896 1251 0 1218 4 0 4 4 0 8 0 procpl 632 3692 0 3649 5 0 5 5 0 8 1 srpgc 64 7 0 7 3 3 0 1 0 8 0 sosppl 128 12 0 12 5 4 1 1 0 8 1 sockpl 384 2998 0 2979 20 13 7 14 0 8 5 mcl64k 65536 20 0 0 3 0 3 3 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 220 0 0 26 0 26 26 0 8 0 mtagpl 80 32 0 0 1 0 1 1 0 8 0 mbufpl 256 316 0 0 15 0 15 15 0 8 0 bufpl 256 9637 0 2589 441 0 441 441 0 8 0 anonpl 16 163327 0 147496 110 42 68 82 0 124 1 amapchunkpl 152 8798 0 8691 31 25 6 12 0 158 1 amappl16 192 6790 0 5865 94 39 55 59 0 8 8 amappl15 184 616 0 616 1 1 0 1 0 8 0 amappl14 176 339 0 336 2 1 1 1 0 8 0 amappl13 168 122 0 120 2 1 1 1 0 8 0 amappl12 160 86 0 85 2 1 1 1 0 8 0 amappl11 152 72 0 57 1 0 1 1 0 8 0 amappl10 144 22 0 17 1 0 1 1 0 8 0 amappl9 136 692 0 685 1 0 1 1 0 8 0 amappl8 128 282 0 243 2 0 2 2 0 8 0 amappl7 120 74 0 66 1 0 1 1 0 8 0 amappl6 112 76 0 65 1 0 1 1 0 8 0 amappl5 104 296 0 282 1 0 1 1 0 8 0 amappl4 96 1234 0 1200 1 0 1 1 0 8 0 amappl3 88 695 0 690 1 0 1 1 0 8 0 amappl2 80 9221 0 9146 4 2 2 3 0 8 0 amappl1 72 37277 0 36854 25 15 10 20 0 8 0 amappl 80 4029 0 3992 2 1 1 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 71 0 5 2 0 2 2 0 8 0 uaddrrnd 24 1240 0 1218 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1240 0 1218 1 0 1 1 0 8 0 vmmpekpl 168 15656 0 15623 2 0 2 2 0 8 0 vmmpepl 168 164995 0 162943 224 99 125 125 0 357 27 vmsppl 368 1233 0 1218 2 0 2 2 0 8 0 pdppl 4096 2487 0 2448 7 1 6 6 0 8 0 pvpl 32 465362 0 446333 258 92 166 200 0 265 5 pmappl 232 1239 0 1224 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 640 0 19 18 0 18 18 0 8 0