login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806538b800+16 0x0!=0x3ecab277b0226e33 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 102272 97962 0 0 0x4000080 0 syz-executor.1 *248665 23687 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(ffffffff82639e38) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82639e38) 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(fffffd806f092a00,d4,244,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806f092a00,d4,244,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a7a880) at tcp_output+0x151c sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e969a88,9,fffffd8074068e00,0,0,ffff800020ac1648) at tcp_usrreq+0xa45 sosend(fffffd806e969a88,0,ffff800020aeb7c8,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ac1648,4,ffff800020aeb7c8,0,ffff800020aeb8b0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac1648,ffff800020aeb860,ffff800020aeb8b0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb930) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb930) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,4,51df7f1616b,4,4,520572af080) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef5a0, 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 0xfffffd806538b800+16 0x0!=0x3ecab277b0226e33 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(ffffffff82639e38) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82639e38) 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(fffffd806f092a00,d4,244,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806f092a00,d4,244,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a7a880) at tcp_output+0x151c sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806e969a88,9,fffffd8074068e00,0,0,ffff800020ac1648) at tcp_usrreq+0xa45 sosend(fffffd806e969a88,0,ffff800020aeb7c8,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ac1648,4,ffff800020aeb7c8,0,ffff800020aeb8b0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ac1648,ffff800020aeb860,ffff800020aeb8b0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800020aeb930) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aeb930) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,4,51df7f1616b,4,4,520572af080) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef5a0, count: -12 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aeb170 rbx 0xffff800020aeb220 rdx 0xffff800020ac1648 rcx 0 rax 0 r8 0xffffffff81bed2cf kprintf+0x16f r9 0x1 r10 0x25 r11 0xf9300d2ad6916976 r12 0x3000000008 r13 0xffff800020aeb180 r14 0x100 r15 0x1 rip 0xffffffff81463878 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aeb160 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (sshd) pid=248665 stat=onproc flags process=12 proc=0 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac18c0,0xffff800020ac1168 process=0xffff800020a8aa90 user=0xffff800020ae6000, vmspace=0xfffffd806e7c8458 estcpu=1, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97962 369712 7495 0 2 0 syz-executor.1 97962 102272 7495 0 7 0x4000080 syz-executor.1 59597 182134 14183 0 3 0x2 biowait syz-executor.0 79445 346752 1 0 3 0x100083 ttyin getty 7495 119981 14183 0 3 0x82 nanosleep syz-executor.1 41910 307978 0 0 3 0x14200 acct acct 97612 381469 0 0 3 0x14200 bored sosplice 14183 318563 59975 0 3 0x82 thrsleep syz-fuzzer 14183 109114 59975 0 3 0x4000082 nanosleep syz-fuzzer 14183 264276 59975 0 3 0x4000082 thrsleep syz-fuzzer 14183 161594 59975 0 3 0x4000082 thrsleep syz-fuzzer 14183 393210 59975 0 3 0x4000082 thrsleep syz-fuzzer 14183 483200 59975 0 3 0x4000082 kqread syz-fuzzer 14183 61934 59975 0 3 0x4000082 thrsleep syz-fuzzer 14183 43659 59975 0 3 0x4000082 thrsleep syz-fuzzer 14183 498752 59975 0 3 0x4000082 nanosleep syz-fuzzer 14183 117322 59975 0 3 0x4000082 thrsleep syz-fuzzer 59975 416064 23687 0 3 0x10008a pause ksh *23687 248665 91938 0 7 0x12 sshd 91938 210997 1 0 3 0x80 select sshd 80551 92651 10093 74 3 0x100092 bpf pflogd 10093 177502 1 0 3 0x80 netio pflogd 60645 409802 35530 73 3 0x100090 kqread syslogd 35530 253217 1 0 3 0x100082 netio syslogd 7162 14630 1 77 3 0x100090 poll dhclient 7556 211618 1 0 3 0x80 poll dhclient 83752 475251 0 0 3 0x14200 pgzero zerothread 70703 523009 0 0 3 0x14200 aiodoned aiodoned 64798 182186 0 0 3 0x14200 syncer update 15136 349068 0 0 3 0x14200 cleaner cleaner 19173 287645 0 0 3 0x14200 reaper reaper 52061 313057 0 0 3 0x14200 pgdaemon pagedaemon 94930 129131 0 0 3 0x14200 bored crynlk 14426 30935 0 0 3 0x14200 bored crypto 59145 89501 0 0 3 0x40014200 acpi0 acpi0 79714 509555 0 0 3 0x40014200 idle1 88248 325692 0 0 3 0x14200 bored softnet 93904 208132 0 0 3 0x14200 bored systqmp 87110 452094 0 0 3 0x14200 bored systq 28497 88449 0 0 3 0x40014200 bored softclock 82404 335447 0 0 3 0x40014200 idle0 44984 523910 0 0 3 0x14200 bored smr 1 420597 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 59597 (syz-executor.0) thread 0xffff800020abe290 (182134) exclusive rrwlock inode r = 0 (0xfffffd806523b5f0) #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+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 (0xfffffd806ac66098) #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #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 23687 (sshd) thread 0xffff800020ac1648 (248665) exclusive rwlock netlock r = 0 (0xffffffff8250dc58) #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 9554 7071K 9072K 78643K 24074 0 0 pcb 13 8K 8K 78643K 1131 0 0 rtable 90 8K 9K 78643K 2321 0 0 ifaddr 89 22K 23K 78643K 873 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1570 0 0 iov 0 0K 32K 78643K 683 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 78K 78643K 6664 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 63 0 0 VM map 2 1K 1K 78643K 10 0 0 sem 12 0K 0K 78643K 1326 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7117 0 0 sigio 0 0K 0K 78643K 109 0 0 proc 61 63K 95K 78643K 1674 0 0 subproc 32 2K 2K 78643K 306 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 556 0 0 in_multi 22 1K 2K 78643K 312 0 0 ether_multi 1 0K 0K 78643K 27 0 0 mrt 0 0K 0K 78643K 50 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 769 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 117 22K 30K 78643K 18591 0 0 UVM aobj 130 4K 4K 78643K 144 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 779 0 0 NDP 16 0K 0K 78643K 270 0 0 temp 201 3560K 4199K 78643K 106747 0 0 kqueue 0 0K 0K 78643K 40 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 53 0 50 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 239 0 237 1 0 1 1 0 8 0 rtentry 112 231 0 200 2 0 2 2 0 8 0 unpcb 120 3928 0 3912 4 3 1 2 0 8 0 syncache 264 27 0 27 5 5 0 1 0 8 0 tcpqe 32 267 0 267 14 14 0 1 0 8 0 tcpcb 544 1950 0 1946 7 6 1 4 0 8 0 inpcb 280 5067 0 5060 15 14 1 4 0 8 0 rttmr 72 9 0 9 3 3 0 1 0 8 0 nd6 48 33 0 31 4 3 1 1 0 8 0 pkpcb 40 39 0 39 5 5 0 1 0 8 0 ppxss 1128 181 0 180 2 1 1 1 0 8 0 pffrag 232 31 0 31 7 7 0 1 0 482 0 pffrnode 88 31 0 31 7 7 0 1 0 8 0 pffrent 40 68 0 68 7 7 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 195 0 192 1 0 1 1 0 8 0 pfstkey 112 205 0 202 2 1 1 2 0 8 0 pfstate 328 205 0 202 5 3 2 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 977 0 807 28 17 11 15 0 8 0 art_table 32 979 0 808 2 0 2 2 0 8 0 art_node 16 230 0 202 1 0 1 1 0 8 0 sysvmsgpl 40 27 0 20 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1324 0 1314 1 0 1 1 0 8 0 shmpl 112 142 0 14 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12941 0 11533 46 0 46 46 0 8 0 ffsino 272 12941 0 11533 95 0 95 95 0 8 0 nchpl 144 22463 0 22008 60 39 21 60 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 66496 0 66496 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 8 0 8 1 1 0 1 0 8 0 scsiplug 64 11 0 11 2 2 0 1 0 8 0 scxspl 192 63039 0 63038 18 17 1 7 0 8 0 plimitpl 152 417 0 409 1 0 1 1 0 8 0 sigapl 432 7272 0 7257 3 1 2 3 0 8 0 futexpl 56 84314 0 84314 1 0 1 1 0 8 1 knotepl 112 1843 0 1824 2 1 1 2 0 8 0 kqueuepl 104 1749 0 1747 1 0 1 1 0 8 0 pipepl 112 2858 0 2839 7 6 1 2 0 8 0 fdescpl 488 7273 0 7257 3 0 3 3 0 8 0 filepl 152 38009 0 37907 20 15 5 7 0 8 0 lockfpl 104 1881 0 1880 1 0 1 1 0 8 0 lockfspl 48 694 0 693 1 0 1 1 0 8 0 sessionpl 112 36 0 25 1 0 1 1 0 8 0 pgrppl 48 135 0 124 1 0 1 1 0 8 0 ucredpl 96 7148 0 7139 1 0 1 1 0 8 0 zombiepl 144 7257 0 7257 2 1 1 1 0 8 1 processpl 896 7290 0 7257 4 0 4 4 0 8 0 procpl 632 17005 0 16962 14 9 5 5 0 8 1 srpgc 64 32 0 32 13 13 0 1 0 8 0 sosppl 128 101 0 101 10 10 0 1 0 8 0 sockpl 384 9409 0 9384 18 14 4 7 0 8 0 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 31 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 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 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 270 0 0 11 2 9 11 0 8 0 mtagpl 80 334 0 0 4 0 4 4 0 8 0 mbufpl 256 727 0 0 32 0 32 32 0 8 0 bufpl 256 18660 0 11612 441 0 441 441 0 8 0 anonpl 16 698412 0 691729 88 57 31 49 0 124 0 amapchunkpl 152 30179 0 30091 15 10 5 9 0 158 0 amappl16 192 44443 0 44121 68 49 19 33 0 8 0 amappl15 184 9 0 8 1 0 1 1 0 8 0 amappl14 176 1056 0 1053 2 1 1 1 0 8 0 amappl13 168 231 0 230 1 0 1 1 0 8 0 amappl12 160 795 0 792 1 0 1 1 0 8 0 amappl11 152 3284 0 3269 1 0 1 1 0 8 0 amappl10 144 233 0 226 1 0 1 1 0 8 0 amappl9 136 2195 0 2188 1 0 1 1 0 8 0 amappl8 128 1737 0 1695 2 0 2 2 0 8 0 amappl7 120 317 0 307 1 0 1 1 0 8 0 amappl6 112 3281 0 3268 1 0 1 1 0 8 0 amappl5 104 1123 0 1109 1 0 1 1 0 8 0 amappl4 96 7257 0 7222 1 0 1 1 0 8 0 amappl3 88 1189 0 1184 1 0 1 1 0 8 0 amappl2 80 56591 0 56515 3 1 2 3 0 8 0 amappl1 72 139117 0 138677 26 16 10 20 0 8 0 amappl 80 17521 0 17485 1 0 1 1 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 143 0 14 3 0 3 3 0 8 0 uaddrrnd 24 7281 0 7257 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7281 0 7257 1 0 1 1 0 8 0 vmmpekpl 168 44562 0 44529 3 0 3 3 0 8 0 vmmpepl 168 847938 0 846457 161 88 73 83 0 357 0 vmsppl 368 7272 0 7257 2 0 2 2 0 8 0 pdppl 4096 14569 0 14530 6 0 6 6 0 8 0 pvpl 32 2297166 0 2287211 284 189 95 128 0 265 0 pmappl 232 7280 0 7265 8 7 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 645 0 30 18 0 18 18 0 8 0