panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806284df00+16 0x0!=0x3e1fb10a9c26f308 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *186957 24667 0 0 0x4000000 0 syz-executor.0 470110 15907 0 0x14000 0x200 1 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(ffffffff82641fe0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82641fe0) 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(fffffd8062034500,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8062034500,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 ether_resolve(ffff8000001732a8,fffffd8062034500,fffffd806f6ceeb8,fffffd806f5f60e0,ffff800021b873e8) at ether_resolve+0x49f sys/net/if_ethersubr.c:224 ether_output(ffff8000001732a8,fffffd8062034500,fffffd806f6ceeb8,fffffd806f5f60e0) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:307 [inline] ether_output(ffff8000001732a8,fffffd8062034500,fffffd806f6ceeb8,fffffd806f5f60e0) at ether_output+0x47 sys/net/if_ethersubr.c:336 ip_output(fffffd806227ca00,0,fffffd806f6ceea8,20,0,fffffd806f6cee38) at ip_output+0x125d sys/netinet/ip_output.c:511 rip_output(fffffd806227ca00,fffffd8071dbd498,ffff800021b875f8,ffff8000237b0000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8071dbd498,9,fffffd806227ca00,0,0,ffff800020abe018) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8071dbd498,0,ffff800021b87760,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020abe018,6,ffff800021b87840,0,ffff800021b87920) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020abe018,ffff800021b878d8,ffff800021b87920) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800021b879a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b879a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 end trace frame: 0xffff800021b87a20, count: 0 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806284df00+16 0x0!=0x3e1fb10a9c26f308 ddb{0}> 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(ffffffff82641fe0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82641fe0) 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(fffffd8062034500,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8062034500,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 ether_resolve(ffff8000001732a8,fffffd8062034500,fffffd806f6ceeb8,fffffd806f5f60e0,ffff800021b873e8) at ether_resolve+0x49f sys/net/if_ethersubr.c:224 ether_output(ffff8000001732a8,fffffd8062034500,fffffd806f6ceeb8,fffffd806f5f60e0) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:307 [inline] ether_output(ffff8000001732a8,fffffd8062034500,fffffd806f6ceeb8,fffffd806f5f60e0) at ether_output+0x47 sys/net/if_ethersubr.c:336 ip_output(fffffd806227ca00,0,fffffd806f6ceea8,20,0,fffffd806f6cee38) at ip_output+0x125d sys/netinet/ip_output.c:511 rip_output(fffffd806227ca00,fffffd8071dbd498,ffff800021b875f8,ffff8000237b0000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8071dbd498,9,fffffd806227ca00,0,0,ffff800020abe018) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8071dbd498,0,ffff800021b87760,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020abe018,6,ffff800021b87840,0,ffff800021b87920) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020abe018,ffff800021b878d8,ffff800021b87920) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800021b879a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b879a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,d5e108f010) at Xsyscall+0x128 end of kernel end trace frame: 0xd80abafa60, count: -15 ddb{0}> show registers rdi 0xffffffff8151a107 db_enter+0x17 rsi 0x7fff __ALIGN_SIZE+0x6fff rbp 0xffff800021b870c0 rbx 0xffff800021b87170 rdx 0x8000 __ALIGN_SIZE+0x7000 rcx 0xffff8000237b0000 rax 0xffff8000237b0000 r8 0xffffffff81a7d55f kprintf+0x16f r9 0x1 r10 0x25 r11 0x6b17a369b6ede0b2 r12 0x3000000008 r13 0xffff800021b870d0 r14 0x100 r15 0x1 rip 0xffffffff8151a108 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b870b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=186957 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf3d8,0xffffffff82656ed8 process=0xffff800020add180 user=0xffff800021b82000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24667 329787 19547 0 2 0 syz-executor.0 *24667 186957 19547 0 7 0x4000000 syz-executor.0 95419 432672 56429 0 2 0 syz-executor.1 95419 60875 56429 0 3 0x4000080 poll syz-executor.1 19547 420399 51600 0 3 0x82 nanosleep syz-executor.0 38358 479649 1 0 3 0x100083 ttyin getty 56429 239629 51600 0 3 0x82 nanosleep syz-executor.1 62859 446013 0 0 3 0x14200 bored sosplice 51600 211084 92479 0 3 0x82 thrsleep syz-fuzzer 51600 425060 92479 0 3 0x4000082 nanosleep syz-fuzzer 51600 507345 92479 0 3 0x4000082 thrsleep syz-fuzzer 51600 203222 92479 0 3 0x4000082 thrsleep syz-fuzzer 51600 288713 92479 0 3 0x4000082 thrsleep syz-fuzzer 51600 387814 92479 0 3 0x4000082 thrsleep syz-fuzzer 51600 301924 92479 0 3 0x4000082 kqread syz-fuzzer 51600 313212 92479 0 3 0x4000082 thrsleep syz-fuzzer 51600 410058 92479 0 3 0x4000082 thrsleep syz-fuzzer 51600 227066 92479 0 3 0x4000082 thrsleep syz-fuzzer 92479 6276 61731 0 3 0x10008a pause ksh 61731 439004 22582 0 3 0x92 select sshd 22582 516952 1 0 3 0x80 select sshd 13291 202863 32327 74 3 0x100092 bpf pflogd 32327 301743 1 0 3 0x80 netio pflogd 27490 497985 77400 73 3 0x100090 kqread syslogd 77400 484841 1 0 3 0x100082 netio syslogd 41889 60312 1 77 3 0x100090 poll dhclient 27792 406053 1 0 3 0x80 poll dhclient 65718 449426 0 0 2 0x14200 zerothread 61103 464414 0 0 3 0x14200 aiodoned aiodoned 81324 522232 0 0 3 0x14200 syncer update 15212 122760 0 0 3 0x14200 cleaner cleaner 3712 455534 0 0 3 0x14200 reaper reaper 53695 34872 0 0 3 0x14200 pgdaemon pagedaemon 75626 338535 0 0 3 0x14200 bored crynlk 80743 504345 0 0 3 0x14200 bored crypto 67603 243170 0 0 3 0x40014200 acpi0 acpi0 75892 43078 0 0 3 0x40014200 idle1 15907 470110 0 0 7 0x14200 softnet 38203 68594 0 0 3 0x14200 bored systqmp 1012 482970 0 0 3 0x14200 bored systq 37461 14569 0 0 3 0x40014200 bored softclock 66409 467031 0 0 3 0x40014200 idle0 13407 87354 0 0 3 0x14200 bored smr 1 288961 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 24667 (syz-executor.0) thread 0xffff800020abe018 (186957) exclusive rwlock netlock r = 0 (0xffffffff82487d08) #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 sendit+0x52b sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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 15907 (softnet) thread 0xffff800020a104f0 (470110) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9614 7104K 7743K 78643K 15866 0 0 pcb 13 10K 12K 78643K 1014 0 0 rtable 87 8K 9K 78643K 2383 0 0 ifaddr 91 20K 22K 78643K 775 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1863 0 0 iov 0 0K 64K 78643K 6849 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 77K 78643K 4414 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 51 0 0 VM map 17 8K 8K 78643K 30 0 0 sem 12 0K 0K 78643K 2148 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5406 0 0 sigio 0 0K 0K 78643K 282 0 0 proc 62 63K 95K 78643K 2736 0 0 subproc 32 2K 2K 78643K 425 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 1471 0 0 in_multi 18 1K 2K 78643K 590 0 0 ether_multi 1 0K 0K 78643K 53 0 0 mrt 0 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 989 0 0 pfkey data 0 0K 4K 78643K 10 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 157 170K 174K 78643K 20848 0 0 UVM aobj 130 4K 5K 78643K 135 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 1097 0 0 NDP 22 0K 0K 78643K 248 0 0 temp 242 3561K 4200K 78643K 121382 0 0 kqueue 0 0K 0K 78643K 23 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 63 0 59 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 336 0 334 1 0 1 1 0 8 0 rtentry 112 390 0 361 2 0 2 2 0 8 0 unpcb 120 3869 0 3855 2 1 1 2 0 8 0 syncache 264 27 0 27 10 10 0 1 0 8 0 tcpqe 32 78 0 78 6 6 0 1 0 8 0 tcpcb 544 3479 0 3475 48 47 1 13 0 8 0 inpcb 280 7549 0 7541 40 38 2 9 0 8 1 rttmr 72 10 0 9 2 1 1 1 0 8 0 nd6 48 65 0 65 4 3 1 1 0 8 1 pkpcb 40 29 0 29 8 8 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 99 0 99 16 16 0 1 0 8 0 pffrag 232 79 0 78 11 10 1 1 0 482 0 pffrnode 88 78 0 77 11 10 1 1 0 8 0 pffrent 40 1943 0 1941 12 11 1 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 348 0 287 1 0 1 1 0 8 0 pfstkey 112 349 0 288 3 0 3 3 0 8 0 pfstate 328 349 0 287 9 3 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 1 2 2 0 8 0 art_heap4 256 1916 0 1755 36 20 16 17 0 8 4 art_table 32 1919 0 1756 5 3 2 3 0 8 0 art_node 16 385 0 358 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 14 1 0 1 1 0 8 0 semapl 112 2146 0 2136 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10340 0 8927 46 0 46 46 0 8 0 ffsino 272 10340 0 8927 95 0 95 95 0 8 0 nchpl 144 19404 0 17781 61 0 61 61 0 8 0 uvmvnodes 72 5996 0 0 110 0 110 110 0 8 0 vnodes 208 5996 0 0 316 0 316 316 0 8 0 namei 1024 57888 0 57888 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 15 0 0 2 0 2 2 0 8 0 vmpool 552 28 0 13 4 2 2 2 0 8 0 scsiplug 64 5 0 5 3 3 0 1 0 8 0 scxspl 192 57923 0 57923 40 37 3 7 0 8 3 plimitpl 152 372 0 364 1 0 1 1 0 8 0 sigapl 432 5539 0 5523 3 1 2 3 0 8 0 futexpl 56 124418 0 124418 3 2 1 1 0 8 1 knotepl 112 963 0 944 4 3 1 3 0 8 0 kqueuepl 104 9388 0 9384 14 13 1 4 0 8 0 pipepl 112 5990 0 5971 15 13 2 2 0 8 1 fdescpl 488 5540 0 5523 3 0 3 3 0 8 0 filepl 152 49621 0 49516 49 43 6 14 0 8 1 lockfpl 104 1439 0 1437 1 0 1 1 0 8 0 lockfspl 48 481 0 479 1 0 1 1 0 8 0 sessionpl 112 43 0 32 1 0 1 1 0 8 0 pgrppl 48 105 0 94 1 0 1 1 0 8 0 ucredpl 96 5225 0 5216 1 0 1 1 0 8 0 zombiepl 144 5524 0 5524 2 1 1 1 0 8 1 processpl 896 5557 0 5524 4 0 4 4 0 8 0 procpl 632 17189 0 17145 8 3 5 5 0 8 1 srpgc 64 32 0 32 11 11 0 1 0 8 0 sosppl 128 68 0 68 16 15 1 1 0 8 1 sockpl 384 11837 0 11811 59 55 4 15 0 8 1 mcl64k 65536 432 0 0 46 14 32 34 0 8 0 mcl16k 16384 19 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 26 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 203 0 0 23 2 21 23 0 8 0 mtagpl 80 62 0 0 1 0 1 1 0 8 0 mbufpl 256 881 0 0 45 0 45 45 0 8 0 bufpl 256 21210 0 14162 441 0 441 441 0 8 0 anonpl 16 599483 0 580548 170 77 93 95 0 124 15 amapchunkpl 152 36852 0 36727 69 56 13 13 0 158 6 amappl16 192 28851 0 27777 166 103 63 68 0 8 8 amappl15 184 10 0 9 1 0 1 1 0 8 0 amappl14 176 1480 0 1477 1 0 1 1 0 8 0 amappl13 168 904 0 902 4 3 1 1 0 8 0 amappl12 160 995 0 993 1 0 1 1 0 8 0 amappl11 152 859 0 843 1 0 1 1 0 8 0 amappl10 144 608 0 605 1 0 1 1 0 8 0 amappl9 136 1144 0 1137 1 0 1 1 0 8 0 amappl8 128 730 0 683 2 0 2 2 0 8 0 amappl7 120 722 0 713 1 0 1 1 0 8 0 amappl6 112 796 0 782 1 0 1 1 0 8 0 amappl5 104 1358 0 1343 1 0 1 1 0 8 0 amappl4 96 4331 0 4294 2 1 1 2 0 8 0 amappl3 88 2496 0 2488 1 0 1 1 0 8 0 amappl2 80 42914 0 42833 3 1 2 3 0 8 0 amappl1 72 130301 0 129841 26 16 10 20 0 8 0 amappl 80 17882 0 17832 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 5568 0 5523 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5568 0 5523 1 0 1 1 0 8 0 vmmpekpl 168 52801 0 52765 2 0 2 2 0 8 0 vmmpepl 168 704155 0 701758 301 170 131 143 0 357 21 vmsppl 368 5539 0 5523 2 0 2 2 0 8 0 pdppl 4096 11143 0 11087 9 1 8 8 0 8 0 pvpl 32 1621621 0 1599629 343 127 216 219 0 265 34 pmappl 232 5567 0 5536 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 768 0 92 20 0 20 20 0 8 0