panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8066f82f00+24 0xdf3c1c5308e83e1!=0xf20c3c455da727e1 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *188836 55183 0 0 0x4000000 1 syz-executor.0 130543 72369 0 0x2 0x480 0 syz-executor.0 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(ffffffff82664228) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82664228) 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(fffffd8079875d00,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8079875d00,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 ether_resolve(ffff8000001732a8,fffffd8079875d00,fffffd806f6d33c8,fffffd806f4730e0,ffff800022d7f198) at ether_resolve+0x49f sys/net/if_ethersubr.c:224 ether_output(ffff8000001732a8,fffffd8079875d00,fffffd806f6d33c8,fffffd806f4730e0) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:307 [inline] ether_output(ffff8000001732a8,fffffd8079875d00,fffffd806f6d33c8,fffffd806f4730e0) at ether_output+0x47 sys/net/if_ethersubr.c:336 ip_output(fffffd806f14c200,0,fffffd806f6d33b8,0,0,fffffd806f6d3348) at ip_output+0x125d sys/netinet/ip_output.c:511 udp_output(fffffd806f6d3348,fffffd806f14c200,0,0) at udp_output+0x5af sys/netinet/udp_usrreq.c:1004 sosend(fffffd8064a6b498,0,ffff800022d7f4c0,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acf168,6,ffff800022d7f5a0,0,ffff800022d7f680) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acf168,ffff800022d7f638,ffff800022d7f680) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022d7f700) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d7f700) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,8392ab6010) at Xsyscall+0x128 end of kernel end trace frame: 0x86317bd2a0, count: 1 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 0xfffffd8066f82f00+24 0xdf3c1c5308e83e1!=0xf20c3c455da727e1 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(ffffffff82664228) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82664228) 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(fffffd8079875d00,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8079875d00,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 ether_resolve(ffff8000001732a8,fffffd8079875d00,fffffd806f6d33c8,fffffd806f4730e0,ffff800022d7f198) at ether_resolve+0x49f sys/net/if_ethersubr.c:224 ether_output(ffff8000001732a8,fffffd8079875d00,fffffd806f6d33c8,fffffd806f4730e0) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:307 [inline] ether_output(ffff8000001732a8,fffffd8079875d00,fffffd806f6d33c8,fffffd806f4730e0) at ether_output+0x47 sys/net/if_ethersubr.c:336 ip_output(fffffd806f14c200,0,fffffd806f6d33b8,0,0,fffffd806f6d3348) at ip_output+0x125d sys/netinet/ip_output.c:511 udp_output(fffffd806f6d3348,fffffd806f14c200,0,0) at udp_output+0x5af sys/netinet/udp_usrreq.c:1004 sosend(fffffd8064a6b498,0,ffff800022d7f4c0,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acf168,6,ffff800022d7f5a0,0,ffff800022d7f680) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acf168,ffff800022d7f638,ffff800022d7f680) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022d7f700) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d7f700) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,8392ab6010) at Xsyscall+0x128 end of kernel end trace frame: 0x86317bd2a0, count: -14 ddb{1}> show registers rdi 0xffffffff819807c7 db_enter+0x17 rsi 0x9477 __ALIGN_SIZE+0x8477 rbp 0xffff800022d7ee70 rbx 0xffff800022d7ef20 rdx 0x9478 __ALIGN_SIZE+0x8478 rcx 0xffff800020b56000 rax 0xffff800020b56000 r8 0xffffffff81186cff kprintf+0x16f r9 0x1 r10 0x25 r11 0xf26eaa2c466bf3a9 r12 0x3000000008 r13 0xffff800022d7ee80 r14 0x100 r15 0x1 rip 0xffffffff819807c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d7ee60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=188836 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf3e0,0xffff800020acef00 process=0xffff800020a8aa90 user=0xffff800022d7a000, vmspace=0xfffffd807f00b000 estcpu=31, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 58720 168079 46579 0 2 0 syz-executor.1 55183 111703 72369 0 2 0 syz-executor.0 *55183 188836 72369 0 7 0x4000000 syz-executor.0 59604 122202 0 0 3 0x14200 acct acct 46579 29460 3754 0 2 0x482 syz-executor.1 72369 130543 3754 0 7 0x482 syz-executor.0 27035 25046 0 0 3 0x14200 bored sosplice 3754 456734 99869 0 3 0x82 kqread syz-fuzzer 3754 102511 99869 0 2 0x4000482 syz-fuzzer 3754 158327 99869 0 3 0x4000082 thrsleep syz-fuzzer 3754 440846 99869 0 3 0x4000082 thrsleep syz-fuzzer 3754 297997 99869 0 3 0x4000082 thrsleep syz-fuzzer 3754 470251 99869 0 3 0x4000082 thrsleep syz-fuzzer 3754 388685 99869 0 3 0x4000082 thrsleep syz-fuzzer 3754 483452 99869 0 3 0x4000082 thrsleep syz-fuzzer 3754 383931 99869 0 3 0x4000082 thrsleep syz-fuzzer 3754 79732 99869 0 2 0x4000482 syz-fuzzer 99869 394653 2054 0 3 0x10008a pause ksh 2054 460284 21726 0 3 0x92 select sshd 78828 91208 1 0 3 0x100083 ttyopn getty 21726 358145 1 0 3 0x80 select sshd 84619 73451 59562 74 3 0x100092 bpf pflogd 59562 438156 1 0 3 0x80 netio pflogd 49324 440218 64505 73 3 0x100090 kqread syslogd 64505 444345 1 0 3 0x100082 netio syslogd 92764 84805 1 77 3 0x100090 poll dhclient 72630 253495 1 0 3 0x80 poll dhclient 49034 500722 0 0 2 0x14200 zerothread 26527 124853 0 0 3 0x14200 aiodoned aiodoned 95711 206282 0 0 3 0x14200 syncer update 92513 89219 0 0 3 0x14200 cleaner cleaner 58435 395211 0 0 3 0x14200 reaper reaper 92570 517689 0 0 3 0x14200 pgdaemon pagedaemon 1542 173767 0 0 3 0x14200 bored crynlk 22737 202715 0 0 3 0x14200 bored crypto 4473 411094 0 0 3 0x40014200 acpi0 acpi0 15033 10284 0 0 3 0x40014200 idle1 24295 135847 0 0 2 0x14200 softnet 66423 209066 0 0 3 0x14200 bored systqmp 76870 507460 0 0 3 0x14200 bored systq 14090 448838 0 0 3 0x40014200 bored softclock 19146 253086 0 0 3 0x40014200 idle0 64177 225097 0 0 3 0x14200 bored smr 1 333387 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55183 (syz-executor.0) thread 0xffff800020acf168 (188836) exclusive rwlock netlock r = 0 (0xffffffff824b31d8) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9551 6433K 7113K 78643K 13132 0 0 pcb 13 8K 8K 78643K 251 0 0 rtable 88 12K 12K 78643K 769 0 0 ifaddr 68 14K 15K 78643K 252 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1495 0 0 iov 0 0K 28K 78643K 176 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 77K 77K 78643K 2099 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 10 0 0 VM map 2 1K 1K 78643K 14 0 0 sem 12 1K 1K 78643K 117 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1202 0 0 sigio 2 0K 0K 78643K 91 0 0 proc 61 63K 83K 78643K 734 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 61 0 0 in_multi 22 1K 2K 78643K 146 0 0 ether_multi 1 0K 0K 78643K 16 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 384 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 107 22K 23K 78643K 5031 0 0 UVM aobj 48 2K 2K 78643K 56 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 253 0 0 NDP 16 0K 0K 78643K 75 0 0 temp 200 3556K 4188K 78643K 54677 0 0 kqueue 0 0K 0K 78643K 33 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 21 0 18 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 99 0 97 1 0 1 1 0 8 0 rtentry 112 116 0 85 2 0 2 2 0 8 0 unpcb 120 367 0 354 1 0 1 1 0 8 0 syncache 264 16 0 16 5 4 1 1 0 8 1 tcpqe 32 6526 0 6526 4 3 1 2 0 8 1 tcpcb 544 448 0 444 1 0 1 1 0 8 0 inpcb 280 1922 0 1914 5 3 2 2 0 8 1 nd6 48 14 0 12 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 ppxss 1128 32 0 32 5 5 0 1 0 8 0 pffrag 232 21 0 20 6 5 1 1 0 482 0 pffrnode 88 21 0 20 6 5 1 1 0 8 0 pffrent 40 217 0 212 6 5 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 106 0 46 1 0 1 1 0 8 0 pfstkey 112 106 0 46 2 0 2 2 0 8 0 pfstate 328 106 0 46 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 5 6 3 3 3 0 8 2 art_heap4 256 512 0 341 15 3 12 14 0 8 1 art_table 32 518 0 346 2 0 2 2 0 8 0 art_node 16 114 0 86 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 17 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 115 0 105 1 0 1 1 0 8 0 shmpl 112 54 0 8 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3142 0 1733 46 0 46 46 0 8 0 ffsino 272 3142 0 1733 95 0 95 95 0 8 0 nchpl 144 5632 0 4015 61 0 61 61 0 8 0 uvmvnodes 72 3805 0 0 70 0 70 70 0 8 0 vnodes 208 3805 0 0 201 0 201 201 0 8 0 namei 1024 19259 0 19259 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 12 0 12 4 3 1 1 0 8 1 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 15835 0 15835 18 16 2 7 0 8 2 plimitpl 152 63 0 55 1 0 1 1 0 8 0 sigapl 432 1387 0 1371 3 1 2 3 0 8 0 futexpl 56 27744 0 27744 1 0 1 1 0 8 1 knotepl 112 350 0 331 3 0 3 3 0 8 2 kqueuepl 104 483 0 481 1 0 1 1 0 8 0 pipepl 112 666 0 647 3 2 1 2 0 8 0 fdescpl 488 1388 0 1371 3 0 3 3 0 8 0 filepl 152 11368 0 11266 7 2 5 6 0 8 0 lockfpl 104 351 0 350 1 0 1 1 0 8 0 lockfspl 48 126 0 125 1 0 1 1 0 8 0 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 44 0 33 1 0 1 1 0 8 0 ucredpl 96 1415 0 1406 1 0 1 1 0 8 0 zombiepl 144 1373 0 1373 4 3 1 1 0 8 1 processpl 896 1407 0 1373 4 0 4 4 0 8 0 procpl 632 4026 0 3982 5 0 5 5 0 8 0 srpgc 64 10 0 10 4 4 0 1 0 8 0 sosppl 128 12 0 12 4 4 0 1 0 8 0 sockpl 384 2402 0 2379 5 1 4 4 0 8 0 mcl64k 65536 258 0 0 33 4 29 33 0 8 1 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 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 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 239 0 0 28 0 28 28 0 8 0 mtagpl 80 34 0 0 1 0 1 1 0 8 0 mbufpl 256 471 0 0 24 0 24 24 0 8 0 bufpl 256 11261 0 4213 441 0 441 441 0 8 0 anonpl 16 169629 0 152611 105 30 75 86 0 124 4 amapchunkpl 152 8426 0 8312 13 7 6 8 0 158 0 amappl16 192 7608 0 6641 91 41 50 61 0 8 1 amappl14 176 279 0 278 2 1 1 1 0 8 0 amappl13 168 80 0 79 2 1 1 1 0 8 0 amappl12 160 92 0 86 1 0 1 1 0 8 0 amappl11 152 422 0 406 1 0 1 1 0 8 0 amappl10 144 381 0 375 1 0 1 1 0 8 0 amappl9 136 720 0 714 1 0 1 1 0 8 0 amappl8 128 283 0 254 2 0 2 2 0 8 0 amappl7 120 411 0 405 1 0 1 1 0 8 0 amappl6 112 420 0 405 1 0 1 1 0 8 0 amappl5 104 244 0 229 1 0 1 1 0 8 0 amappl4 96 1535 0 1507 1 0 1 1 0 8 0 amappl3 88 518 0 513 1 0 1 1 0 8 0 amappl2 80 9928 0 9854 4 2 2 3 0 8 0 amappl1 72 40483 0 40044 25 15 10 20 0 8 0 amappl 80 4353 0 4313 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 55 0 8 1 0 1 1 0 8 0 uaddrrnd 24 1400 0 1371 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1400 0 1371 1 0 1 1 0 8 0 vmmpekpl 168 14241 0 14208 2 0 2 2 0 8 0 vmmpepl 168 181589 0 179408 200 72 128 133 0 357 31 vmsppl 368 1387 0 1371 2 0 2 2 0 8 0 pdppl 4096 2807 0 2766 7 1 6 6 0 8 0 pvpl 32 460157 0 439945 243 51 192 202 0 265 24 pmappl 232 1399 0 1383 7 5 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 670 0 17 19 0 19 19 0 8 0