panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f21b800+16 0x0!=0xc45f7ac096748530 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *406784 46244 0 0 0x4000000 1 syz-executor.0 293600 4990 0 0x14000 0x40000200 0 softclock 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(ffffffff82652290) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82652290) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 icmp_do_error(fffffd806f21b400,3,3,0,0) at icmp_do_error+0x2e9 sys/netinet/ip_icmp.c:215 icmp_error(fffffd806f21b400,3,3,0,0) at icmp_error+0x49 sys/netinet/ip_icmp.c:296 udp_input(ffff800022ba31d8,ffff800022ba31e4,11,2) at udp_input+0x1351 sys/netinet/udp_usrreq.c:515 ip_deliver(ffff800022ba31d8,ffff800022ba31e4,11,2) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip_ours(ffff800022ba31d8,ffff800022ba31e4,105a,0) at ip_ours+0x412 ip_input_if(ffff800022ba31d8,ffff800022ba31e4,4,0,ffff8000001732a8) at ip_input_if+0x6b9 ipv4_input(ffff8000001732a8,fffffd806d73cf00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff8000001732a8,fffffd806d73cf00,2) at if_input_local+0xf9 sys/net/if.c:779 ether_resolve(ffff8000001732a8,fffffd806f0b3400,fffffd806f6cf080,fffffd806f31d380,ffff800022ba3328) at ether_resolve+0x4c2 sys/net/if_ethersubr.c:225 end trace frame: 0xffff800022ba3380, 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{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 0xfffffd806f21b800+16 0x0!=0xc45f7ac096748530 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(ffffffff82652290) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82652290) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 icmp_do_error(fffffd806f21b400,3,3,0,0) at icmp_do_error+0x2e9 sys/netinet/ip_icmp.c:215 icmp_error(fffffd806f21b400,3,3,0,0) at icmp_error+0x49 sys/netinet/ip_icmp.c:296 udp_input(ffff800022ba31d8,ffff800022ba31e4,11,2) at udp_input+0x1351 sys/netinet/udp_usrreq.c:515 ip_deliver(ffff800022ba31d8,ffff800022ba31e4,11,2) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip_ours(ffff800022ba31d8,ffff800022ba31e4,105a,0) at ip_ours+0x412 ip_input_if(ffff800022ba31d8,ffff800022ba31e4,4,0,ffff8000001732a8) at ip_input_if+0x6b9 ipv4_input(ffff8000001732a8,fffffd806d73cf00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff8000001732a8,fffffd806d73cf00,2) at if_input_local+0xf9 sys/net/if.c:779 ether_resolve(ffff8000001732a8,fffffd806f0b3400,fffffd806f6cf080,fffffd806f31d380,ffff800022ba3328) at ether_resolve+0x4c2 sys/net/if_ethersubr.c:225 ether_output(ffff8000001732a8,fffffd806f0b3400,fffffd806f6cf080,fffffd806f31d380) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:307 [inline] ether_output(ffff8000001732a8,fffffd806f0b3400,fffffd806f6cf080,fffffd806f31d380) at ether_output+0x47 sys/net/if_ethersubr.c:336 ip_output(fffffd807aa0dd00,0,fffffd806f6cf070,20,0,fffffd806f6cf000) at ip_output+0x125d sys/netinet/ip_output.c:511 rip_output(fffffd807aa0dd00,fffffd807e6e61b0,ffff800022ba3538,ffff800024bb8000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd807e6e61b0,9,fffffd807aa0dd00,0,0,ffff800020ab0c70) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd807e6e61b0,0,ffff800022ba37d0,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0c70,6,ffff800022ba37d0,0,ffff800022ba38c0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_writev(ffff800020ab0c70,ffff800022ba3878,ffff800022ba38c0) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff800022ba3940) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022ba3940) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,d,0,3,a7c61b6e1b0) at Xsyscall+0x128 end of kernel end trace frame: 0xa7ee8f21a70, count: -23 ddb{1}> show registers rdi 0xffffffff812d2ac7 db_enter+0x17 rsi 0x444d __ALIGN_SIZE+0x344d rbp 0xffff800022ba2bf0 rbx 0xffff800022ba2ca0 rdx 0x444e __ALIGN_SIZE+0x344e rcx 0xffff800024bb8000 rax 0xffff800024bb8000 r8 0xffffffff81c6670f kprintf+0x16f r9 0x1 r10 0x25 r11 0xecd954fdafd02e3e r12 0x3000000008 r13 0xffff800022ba2c00 r14 0x100 r15 0x1 rip 0xffffffff812d2ac8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022ba2be0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=406784 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff8264fc48 process=0xffff800020adca80 user=0xffff800022b9e000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46244 230275 88826 0 2 0 syz-executor.0 46244 414301 88826 0 3 0x4000080 fsleep syz-executor.0 46244 399064 88826 0 3 0x4000080 fsleep syz-executor.0 *46244 406784 88826 0 7 0x4000000 syz-executor.0 88826 384341 95292 0 2 0x482 syz-executor.0 76761 463693 95292 0 2 0x2 syz-executor.1 91133 438085 0 0 3 0x14200 acct acct 23560 294958 0 0 3 0x14200 bored sosplice 95292 357132 94594 0 3 0x82 thrsleep syz-fuzzer 95292 296841 94594 0 3 0x4000082 nanosleep syz-fuzzer 95292 150857 94594 0 3 0x4000082 thrsleep syz-fuzzer 95292 178526 94594 0 3 0x4000082 thrsleep syz-fuzzer 95292 386409 94594 0 3 0x4000082 thrsleep syz-fuzzer 95292 176118 94594 0 3 0x4000082 kqread syz-fuzzer 95292 292834 94594 0 3 0x4000082 thrsleep syz-fuzzer 95292 486020 94594 0 3 0x4000082 thrsleep syz-fuzzer 95292 401877 94594 0 3 0x4000082 thrsleep syz-fuzzer 95292 21759 94594 0 3 0x4000082 nanosleep syz-fuzzer 94594 89183 91911 0 3 0x10008a pause ksh 91911 358762 48805 0 3 0x92 select sshd 16514 260969 1 0 3 0x100083 ttyin getty 48805 48047 1 0 3 0x80 select sshd 21724 270058 5024 74 3 0x100092 bpf pflogd 5024 55951 1 0 3 0x80 netio pflogd 18893 401008 56966 73 3 0x100090 kqread syslogd 56966 285390 1 0 3 0x100082 netio syslogd 42253 277968 1 77 3 0x100090 poll dhclient 98546 84212 1 0 3 0x80 poll dhclient 16491 517324 0 0 2 0x14200 zerothread 1399 377078 0 0 3 0x14200 aiodoned aiodoned 30869 257598 0 0 3 0x14200 syncer update 54086 365890 0 0 3 0x14200 cleaner cleaner 61185 252861 0 0 3 0x14200 reaper reaper 36794 23489 0 0 3 0x14200 pgdaemon pagedaemon 32088 127330 0 0 3 0x14200 bored crynlk 37765 331166 0 0 3 0x14200 bored crypto 14362 123939 0 0 3 0x40014200 acpi0 acpi0 75994 262398 0 0 3 0x40014200 idle1 28602 251747 0 0 2 0x14200 softnet 32626 359069 0 0 3 0x14200 bored systqmp 58910 5511 0 0 3 0x14200 bored systq 4990 293600 0 0 7 0x40014200 softclock 6099 137715 0 0 3 0x40014200 idle0 77447 36326 0 0 3 0x14200 bored smr 1 214129 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 46244 (syz-executor.0) thread 0xffff800020ab0c70 (406784) exclusive rwlock netlock r = 0 (0xffffffff8246c0b8) #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_writev+0xa7 sys/kern/sys_generic.c:311 #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 76761 (syz-executor.1) thread 0xffff800020ab1650 (463693) exclusive rrwlock inode r = 0 (0xfffffd806fa97f80) #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 (0xfffffd807da274d8) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9584 6564K 7048K 78643K 12373 0 0 pcb 13 8K 8K 78643K 176 0 0 rtable 101 12K 14K 78643K 844 0 0 ifaddr 83 16K 17K 78643K 261 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1516 0 0 iov 1 16K 20K 78643K 184 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 77K 78643K 1931 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 8 0 0 VM map 2 1K 1K 78643K 7 0 0 sem 12 0K 1K 78643K 170 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1176 0 0 sigio 0 0K 0K 78643K 35 0 0 proc 61 63K 95K 78643K 756 0 0 subproc 32 2K 2K 78643K 136 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 87 0 0 in_multi 24 1K 2K 78643K 129 0 0 ether_multi 1 0K 0K 78643K 12 0 0 mrt 0 0K 0K 78643K 6 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 367 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 31K 78643K 4827 0 0 UVM aobj 130 4K 4K 78643K 130 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 169 0 0 NDP 20 0K 0K 78643K 79 0 0 temp 228 3557K 3652K 78643K 39025 0 0 kqueue 0 0K 0K 78643K 6 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 29 0 23 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 74 0 72 1 0 1 1 0 8 0 rtentry 112 135 0 99 2 0 2 2 0 8 0 unpcb 120 373 0 362 1 0 1 1 0 8 0 syncache 264 9 0 9 3 2 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 6480 0 6480 1 1 0 1 0 8 0 tcpcb 544 349 0 345 1 0 1 1 0 8 0 inpcb 280 3187 0 3176 5 2 3 3 0 8 2 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 16 0 14 2 1 1 1 0 8 0 pkpcb 40 3 0 3 2 2 0 1 0 8 0 ppxss 1128 28 0 28 5 4 1 1 0 8 1 pffrag 232 8 0 8 3 2 1 1 0 482 1 pffrnode 88 8 0 8 3 2 1 1 0 8 1 pffrent 40 102 0 102 3 2 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 72 0 25 1 0 1 1 0 8 0 pfstkey 112 72 0 25 2 0 2 2 0 8 0 pfstate 328 72 0 25 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 545 0 364 23 9 14 15 0 8 0 art_table 32 546 0 364 2 0 2 2 0 8 0 art_node 16 133 0 100 1 0 1 1 0 8 0 sysvmsgpl 40 62 0 27 1 0 1 1 0 8 0 semapl 112 168 0 158 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3022 0 1618 46 0 46 46 0 8 0 ffsino 272 3022 0 1618 95 0 95 95 0 8 0 nchpl 144 4730 0 3117 61 0 61 61 0 8 0 uvmvnodes 72 3560 0 0 65 0 65 65 0 8 0 vnodes 208 3560 0 0 188 0 188 188 0 8 0 namei 1024 16826 0 16825 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 5 0 5 2 2 0 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 15660 0 15660 17 15 2 7 0 8 2 plimitpl 152 94 0 86 1 0 1 1 0 8 0 sigapl 432 1358 0 1343 3 1 2 3 0 8 0 futexpl 56 24775 0 24773 1 0 1 1 0 8 0 knotepl 112 303 0 284 1 0 1 1 0 8 0 kqueuepl 104 215 0 213 1 0 1 1 0 8 0 pipepl 112 1420 0 1401 3 2 1 2 0 8 0 fdescpl 488 1359 0 1343 3 0 3 3 0 8 0 filepl 152 11810 0 11706 11 5 6 6 0 8 2 lockfpl 104 273 0 272 1 0 1 1 0 8 0 lockfspl 48 81 0 80 1 0 1 1 0 8 0 sessionpl 112 24 0 13 1 0 1 1 0 8 0 pgrppl 48 32 0 21 1 0 1 1 0 8 0 ucredpl 96 2183 0 2174 1 0 1 1 0 8 0 zombiepl 144 1343 0 1343 3 2 1 1 0 8 1 processpl 896 1376 0 1343 4 0 4 4 0 8 0 procpl 632 3776 0 3731 6 1 5 5 0 8 1 srpgc 64 14 0 14 4 3 1 1 0 8 1 sosppl 128 18 0 18 6 5 1 1 0 8 1 sockpl 384 3643 0 3619 13 7 6 6 0 8 3 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 14 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 156 0 0 19 0 19 19 0 8 0 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 325 0 0 16 0 16 16 0 8 0 bufpl 256 10529 0 3481 441 0 441 441 0 8 0 anonpl 16 155577 0 139327 91 23 68 82 0 124 0 amapchunkpl 152 8066 0 7950 16 10 6 10 0 158 0 amappl16 192 6772 0 5853 81 27 54 58 0 8 7 amappl15 184 108 0 104 1 0 1 1 0 8 0 amappl14 176 350 0 347 2 1 1 1 0 8 0 amappl13 168 288 0 287 4 3 1 1 0 8 0 amappl12 160 251 0 250 2 1 1 1 0 8 0 amappl11 152 262 0 247 1 0 1 1 0 8 0 amappl10 144 23 0 18 1 0 1 1 0 8 0 amappl9 136 697 0 690 1 0 1 1 0 8 0 amappl8 128 248 0 223 1 0 1 1 0 8 0 amappl7 120 69 0 59 1 0 1 1 0 8 0 amappl6 112 274 0 264 1 0 1 1 0 8 0 amappl5 104 422 0 407 1 0 1 1 0 8 0 amappl4 96 1610 0 1580 1 0 1 1 0 8 0 amappl3 88 392 0 387 1 0 1 1 0 8 0 amappl2 80 9888 0 9813 4 2 2 3 0 8 0 amappl1 72 39733 0 39284 26 16 10 20 0 8 0 amappl 80 4126 0 4085 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 1364 0 1343 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1364 0 1343 1 0 1 1 0 8 0 vmmpekpl 168 15331 0 15296 2 0 2 2 0 8 0 vmmpepl 168 174988 0 172933 180 62 118 124 0 357 27 vmsppl 368 1358 0 1343 2 0 2 2 0 8 0 pdppl 4096 2735 0 2696 7 1 6 6 0 8 1 pvpl 32 444968 0 425499 219 53 166 196 0 265 4 pmappl 232 1363 0 1348 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 621 0 15 18 0 18 18 0 8 0