panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd80690a3900+24 0xf97b4f801331e62b!=0x684b2006fd5652b Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *355625 21466 0 0 0x4000000 1 syz-executor.1 391449 38101 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(ffffffff82651270) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82651270) 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(fffffd806d028800,3854,5a0,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d028800,3854,5a0,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 ip_fragment(fffffd806d028800,ffff8000001732a8,5b4) at ip_fragment+0x324 ip_output(fffffd806d028800,0,fffffd806f6d2a48,20,0,fffffd806f6d29d8) at ip_output+0xfc1 sys/netinet/ip_output.c:501 rip_output(fffffd806d028800,fffffd80792931b8,ffff800024dabb58,ffff800023b96000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80792931b8,9,fffffd806d028800,0,0,ffff800020ab18c8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80792931b8,0,ffff800024dabcc0,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab18c8,6,ffff800024dabda0,0,ffff800024dabe80) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab18c8,ffff800024dabe38,ffff800024dabe80) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800024dabf00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dabf00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,a4258c81010) at Xsyscall+0x128 end of kernel end trace frame: 0xa4477beb260, 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 0xfffffd80690a3900+24 0xf97b4f801331e62b!=0x684b2006fd5652b 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(ffffffff82651270) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82651270) 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(fffffd806d028800,3854,5a0,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d028800,3854,5a0,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 ip_fragment(fffffd806d028800,ffff8000001732a8,5b4) at ip_fragment+0x324 ip_output(fffffd806d028800,0,fffffd806f6d2a48,20,0,fffffd806f6d29d8) at ip_output+0xfc1 sys/netinet/ip_output.c:501 rip_output(fffffd806d028800,fffffd80792931b8,ffff800024dabb58,ffff800023b96000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80792931b8,9,fffffd806d028800,0,0,ffff800020ab18c8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80792931b8,0,ffff800024dabcc0,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab18c8,6,ffff800024dabda0,0,ffff800024dabe80) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab18c8,ffff800024dabe38,ffff800024dabe80) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800024dabf00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dabf00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,a4258c81010) at Xsyscall+0x128 end of kernel end trace frame: 0xa4477beb260, count: -14 ddb{1}> show registers rdi 0xffffffff813dc987 db_enter+0x17 rsi 0x7178 __ALIGN_SIZE+0x6178 rbp 0xffff800024dab680 rbx 0xffff800024dab730 rdx 0x7179 __ALIGN_SIZE+0x6179 rcx 0xffff800023b96000 rax 0xffff800023b96000 r8 0xffffffff8207ddaf kprintf+0x16f r9 0x1 r10 0x25 r11 0x79582febf15d17a5 r12 0x3000000008 r13 0xffff800024dab690 r14 0x100 r15 0x1 rip 0xffffffff813dc988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024dab670 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=355625 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffff800020ab0790 process=0xffff800020add500 user=0xffff800024da6000, vmspace=0xfffffd807f00aa10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21466 148183 44081 0 2 0 syz-executor.1 *21466 355625 44081 0 7 0x4000000 syz-executor.1 21466 261447 44081 0 3 0x4000080 fsleep syz-executor.1 34176 512041 38101 0 2 0x480 syz-executor.0 34176 311963 38101 0 3 0x4000080 fsleep syz-executor.0 34176 110415 38101 0 3 0x4000080 fsleep syz-executor.0 38101 391449 41472 0 7 0x482 syz-executor.0 44081 240325 41472 0 2 0x482 syz-executor.1 88895 438513 0 0 3 0x14200 bored sosplice 51522 175111 0 0 3 0x14200 acct acct 41472 285652 30878 0 3 0x82 thrsleep syz-fuzzer 41472 41386 30878 0 3 0x4000082 thrsleep syz-fuzzer 41472 164022 30878 0 3 0x4000082 thrsleep syz-fuzzer 41472 140283 30878 0 3 0x4000082 kqread syz-fuzzer 41472 477217 30878 0 3 0x4000082 thrsleep syz-fuzzer 41472 57782 30878 0 3 0x4000082 thrsleep syz-fuzzer 41472 212895 30878 0 3 0x4000082 thrsleep syz-fuzzer 41472 199286 30878 0 3 0x4000082 thrsleep syz-fuzzer 41472 234040 30878 0 3 0x4000082 thrsleep syz-fuzzer 41472 515026 30878 0 3 0x4000082 thrsleep syz-fuzzer 30878 120232 66451 0 3 0x10008a pause ksh 66451 449501 92466 0 3 0x92 select sshd 84436 421062 1 0 3 0x100083 ttyopn getty 92466 292763 1 0 3 0x80 select sshd 74933 59398 60381 74 3 0x100092 bpf pflogd 60381 59238 1 0 3 0x80 netio pflogd 37281 437218 28923 73 3 0x100090 kqread syslogd 28923 46037 1 0 3 0x100082 netio syslogd 48413 373761 1 77 3 0x100090 poll dhclient 37452 363710 1 0 3 0x80 poll dhclient 56516 404321 0 0 2 0x14200 zerothread 7829 314842 0 0 3 0x14200 aiodoned aiodoned 87912 263307 0 0 3 0x14200 syncer update 66861 132115 0 0 3 0x14200 cleaner cleaner 81711 301194 0 0 3 0x14200 reaper reaper 24337 424406 0 0 3 0x14200 pgdaemon pagedaemon 17134 125024 0 0 3 0x14200 bored crynlk 98380 240140 0 0 3 0x14200 bored crypto 60852 278376 0 0 3 0x40014200 acpi0 acpi0 24063 440741 0 0 3 0x40014200 idle1 28031 296303 0 0 3 0x14200 bored softnet 86517 495610 0 0 3 0x14200 bored systqmp 69068 13156 0 0 3 0x14200 bored systq 76088 19069 0 0 3 0x40014200 bored softclock 6773 5076 0 0 3 0x40014200 idle0 12793 28434 0 0 3 0x14200 bored smr 1 370799 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 21466 (syz-executor.1) thread 0xffff800020ab18c8 (355625) exclusive rwlock netlock r = 0 (0xffffffff824ee388) #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 9572 6488K 8099K 78643K 15700 0 0 pcb 13 8K 8K 78643K 164 0 0 rtable 85 7K 8K 78643K 871 0 0 ifaddr 69 15K 16K 78643K 277 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1514 0 0 iov 0 0K 24K 78643K 110 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 78K 78643K 2702 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 13 0 0 VM map 2 1K 1K 78643K 4 0 0 sem 12 0K 1K 78643K 125 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1372 0 0 sigio 0 0K 0K 78643K 7 0 0 proc 62 75K 95K 78643K 807 0 0 subproc 32 2K 2K 78643K 153 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 51 0 0 in_multi 22 1K 2K 78643K 124 0 0 ether_multi 1 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 162 715K 715K 78643K 162 0 0 exec 0 0K 1K 78643K 362 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 118 22K 31K 78643K 5167 0 0 UVM aobj 41 2K 2K 78643K 47 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 170 0 0 NDP 16 0K 0K 78643K 85 0 0 temp 199 3556K 3625K 78643K 31687 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 31 0 28 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 67 0 65 1 0 1 1 0 8 0 rtentry 112 137 0 106 2 0 2 2 0 8 0 unpcb 120 1864 0 1853 2 1 1 2 0 8 0 syncache 264 11 0 11 4 4 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 5974 0 5974 1 1 0 1 0 8 0 tcpcb 544 274 0 270 1 0 1 1 0 8 0 inpcb 280 3588 0 3580 3 1 2 2 0 8 1 nd6 48 18 0 16 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 30 0 30 3 2 1 1 0 8 1 pffrag 232 187 0 187 1 0 1 1 0 482 1 pffrnode 88 187 0 187 1 0 1 1 0 8 1 pffrent 40 8162 0 8162 1 0 1 1 0 8 1 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 76 0 31 1 0 1 1 0 8 0 pfstkey 112 76 0 31 2 0 2 2 0 8 0 pfstate 328 76 0 31 5 0 5 5 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 582 0 412 16 5 11 14 0 8 0 art_table 32 583 0 412 2 0 2 2 0 8 0 art_node 16 135 0 107 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 2 1 0 1 1 0 8 0 semapl 112 123 0 113 1 0 1 1 0 8 0 shmpl 112 45 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3163 0 1762 46 0 46 46 0 8 0 ffsino 272 3163 0 1762 94 0 94 94 0 8 0 nchpl 144 5062 0 3455 61 0 61 61 0 8 0 uvmvnodes 72 4468 0 0 82 0 82 82 0 8 0 vnodes 208 4468 0 0 236 0 236 236 0 8 0 namei 1024 15678 0 15678 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 2 0 2 1 1 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 15836 0 15836 12 11 1 7 0 8 1 plimitpl 152 85 0 77 1 0 1 1 0 8 0 sigapl 432 1551 0 1535 3 1 2 3 0 8 0 futexpl 56 29373 0 29370 1 0 1 1 0 8 0 knotepl 112 293 0 274 1 0 1 1 0 8 0 kqueuepl 104 205 0 203 1 0 1 1 0 8 0 pipepl 112 610 0 591 1 0 1 1 0 8 0 fdescpl 488 1552 0 1535 3 0 3 3 0 8 0 filepl 152 12469 0 12365 13 8 5 9 0 8 0 lockfpl 104 287 0 286 1 0 1 1 0 8 0 lockfspl 48 99 0 98 1 0 1 1 0 8 0 sessionpl 112 25 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 908 0 899 1 0 1 1 0 8 0 zombiepl 144 1535 0 1535 2 1 1 1 0 8 1 processpl 896 1569 0 1535 4 0 4 4 0 8 0 procpl 632 4066 0 4019 5 0 5 5 0 8 1 srpgc 64 14 0 14 5 5 0 1 0 8 0 sosppl 128 12 0 12 3 2 1 1 0 8 1 sockpl 384 5544 0 5523 9 5 4 7 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 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 2 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 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 178 0 0 21 0 21 21 0 8 0 mtagpl 80 31 0 0 1 0 1 1 0 8 0 mbufpl 256 523 0 0 28 0 28 28 0 8 0 bufpl 256 9471 0 2423 441 0 441 441 0 8 0 anonpl 16 155037 0 138705 88 8 80 83 0 124 9 amapchunkpl 152 9392 0 9270 20 13 7 12 0 158 1 amappl16 192 6842 0 5869 60 5 55 57 0 8 6 amappl15 184 295 0 293 2 1 1 1 0 8 0 amappl14 176 110 0 108 1 0 1 1 0 8 0 amappl13 168 16 0 16 1 1 0 1 0 8 0 amappl12 160 11 0 7 1 0 1 1 0 8 0 amappl11 152 107 0 92 1 0 1 1 0 8 0 amappl10 144 14 0 9 1 0 1 1 0 8 0 amappl9 136 1628 0 1621 1 0 1 1 0 8 0 amappl8 128 1162 0 1130 2 0 2 2 0 8 0 amappl7 120 90 0 81 1 0 1 1 0 8 0 amappl6 112 107 0 97 1 0 1 1 0 8 0 amappl5 104 187 0 173 1 0 1 1 0 8 0 amappl4 96 1816 0 1782 1 0 1 1 0 8 0 amappl3 88 137 0 131 1 0 1 1 0 8 0 amappl2 80 11319 0 11237 3 1 2 3 0 8 0 amappl1 72 43597 0 43143 25 15 10 20 0 8 0 amappl 80 4439 0 4396 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 46 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1554 0 1535 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1554 0 1535 1 0 1 1 0 8 0 vmmpekpl 168 14704 0 14673 2 0 2 2 0 8 0 vmmpepl 168 198320 0 196094 182 53 129 129 0 357 32 vmsppl 368 1551 0 1535 2 0 2 2 0 8 0 pdppl 4096 3115 0 3074 7 1 6 6 0 8 0 pvpl 32 465264 0 445620 227 31 196 198 0 265 29 pmappl 232 1553 0 1537 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 630 0 10 18 0 18 18 0 8 0