login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806d5dce00+16 0x0!=0x348cd42969f8e74a Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 191106 23491 0 0x14000 0x200 0 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(ffffffff82647520) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82647520) 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,1) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 rtm_msg1(d,ffff800020b58b28) at rtm_msg1+0x6e sys/net/rtsock.c:1511 rtm_addr(d,ffff800000a91500) at rtm_addr+0x9b sys/net/rtsock.c:1717 rt_ifa_del(ffff800000a91500,200404,ffff800000a91540,0) at rt_ifa_del+0x422 sys/net/route.c:1196 rt_ifa_dellocal(ffff800000a91500) at rt_ifa_dellocal+0x149 sys/net/route.c:1294 in6_purgeaddr(ffff800000a91500) at in6_purgeaddr+0x111 sys/netinet6/in6.c:913 in6_ifdetach(ffff800000a67000) at in6_ifdetach+0x74 sys/netinet6/in6_ifattach.c:422 if_detach(ffff800000a67000) at if_detach+0x155 sys/net/if.c:1110 tun_clone_destroy(ffff800000a67000) at tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 spec_close(ffff800020b58ff0) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 end trace frame: 0xffff800020b59060, 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 0xfffffd806d5dce00+16 0x0!=0x348cd42969f8e74a 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(ffffffff82647520) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82647520) 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,1) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 rtm_msg1(d,ffff800020b58b28) at rtm_msg1+0x6e sys/net/rtsock.c:1511 rtm_addr(d,ffff800000a91500) at rtm_addr+0x9b sys/net/rtsock.c:1717 rt_ifa_del(ffff800000a91500,200404,ffff800000a91540,0) at rt_ifa_del+0x422 sys/net/route.c:1196 rt_ifa_dellocal(ffff800000a91500) at rt_ifa_dellocal+0x149 sys/net/route.c:1294 in6_purgeaddr(ffff800000a91500) at in6_purgeaddr+0x111 sys/netinet6/in6.c:913 in6_ifdetach(ffff800000a67000) at in6_ifdetach+0x74 sys/netinet6/in6_ifattach.c:422 if_detach(ffff800000a67000) at if_detach+0x155 sys/net/if.c:1110 tun_clone_destroy(ffff800000a67000) at tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 spec_close(ffff800020b58ff0) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd806e7c2758,7,fffffd807f7c6ae0,ffff800020a5ec60) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd806cf697c8,ffff800020a5ec60) at vn_closefile+0xd8 vn_close sys/kern/vfs_vnops.c:289 [inline] vn_closefile(fffffd806cf697c8,ffff800020a5ec60) at vn_closefile+0xd8 sys/kern/vfs_vnops.c:601 fdrop(fffffd806cf697c8,ffff800020a5ec60) at fdrop+0xc2 sys/kern/kern_descrip.c:1273 closef(fffffd806cf697c8,ffff800020a5ec60) at closef+0x11d sys/kern/kern_descrip.c:1257 fdfree(ffff800020a5ec60) at fdfree+0x101 sys/kern/kern_descrip.c:1189 exit1(ffff800020a5ec60,9,1) at exit1+0x32f sys/kern/kern_exit.c:196 postsig(ffff800020a5ec60,9) at postsig+0x4e3 sigexit sys/kern/kern_sig.c:1499 [inline] postsig(ffff800020a5ec60,9) at postsig+0x4e3 sys/kern/kern_sig.c:1431 userret(ffff800020a5ec60) at userret+0x199 sys/kern/kern_sig.c:1887 syscall(ffff800020b59470) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:115 [inline] syscall(ffff800020b59470) at syscall+0x55f sys/arch/amd64/amd64/trap.c:577 Xsyscall(6,0,89f470f8f08,4a,7f7ffffd7220,0) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7260, count: -24 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b58890 rbx 0xffff800020b58940 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81cd62ff kprintf+0x16f r9 0x1 r10 0xd06d9349df0e84ce r11 0xf8a644e3f0b924a6 r12 0x3000000008 r13 0xffff800020b588a0 r14 0x100 r15 0x1 rip 0xffffffff81823988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b58880 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=371071 stat=onproc flags process=a proc=2000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5e280,0xffff800020abfb50 process=0xffff800020add180 user=0xffff800020b54000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96714 30883 2974 0 3 0x82 wait syz-execprog 96714 306545 2974 0 3 0x4000082 nanosleep syz-execprog 96714 53464 2974 0 3 0x4000082 thrsleep syz-execprog 96714 149407 2974 0 3 0x4000082 thrsleep syz-execprog 96714 399378 2974 0 3 0x4000082 thrsleep syz-execprog 96714 446322 2974 0 3 0x4000082 thrsleep syz-execprog 96714 239959 2974 0 3 0x4000082 thrsleep syz-execprog 96714 374653 2974 0 3 0x4000082 nanosleep syz-execprog 96714 356452 2974 0 3 0x4000082 thrsleep syz-execprog 2974 434213 278 0 3 0x10008a pause ksh 278 498907 29208 0 3 0x92 select sshd 59081 382927 1 0 3 0x100083 ttyin getty 29208 275869 1 0 3 0x80 select sshd 49190 139099 41111 74 3 0x100092 bpf pflogd 41111 431362 1 0 3 0x80 netio pflogd 12184 292701 7312 73 3 0x100090 kqread syslogd 7312 211317 1 0 3 0x100082 netio syslogd 68428 57445 1 77 2 0x100090 dhclient 26625 286181 1 0 3 0x80 poll dhclient 34443 266511 0 0 3 0x14200 pgzero zerothread 90019 363282 0 0 3 0x14200 aiodoned aiodoned 22163 369167 0 0 3 0x14200 syncer update 62043 63239 0 0 3 0x14200 cleaner cleaner 68383 125935 0 0 3 0x14200 reaper reaper 87341 217169 0 0 3 0x14200 pgdaemon pagedaemon 89174 31520 0 0 3 0x14200 bored crynlk 65313 417925 0 0 3 0x14200 bored crypto 36631 38995 0 0 3 0x40014200 acpi0 acpi0 15202 62190 0 0 3 0x40014200 idle1 23491 191106 0 0 7 0x14200 softnet 48648 225417 0 0 2 0x14200 systqmp 43638 9250 0 0 3 0x14200 bored systq 82656 4428 0 0 3 0x40014200 bored softclock 84527 345380 0 0 3 0x40014200 idle0 97114 344939 0 0 3 0x14200 bored smr 1 210592 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9455 6385K 6385K 78643K 10544 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 77 2K 2K 78643K 165 0 0 ifaddr 32 9K 9K 78643K 34 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1468 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1181 74K 74K 78643K 1186 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 2 4K 12K 78643K 18 0 0 proc 59 63K 83K 78643K 384 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 22 1K 1K 78643K 22 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 199 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 71 12K 12K 78643K 956 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 6 0K 0K 78643K 7 0 0 temp 48 3542K 3606K 78643K 3335 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 4 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 17 0 15 1 0 1 1 0 8 0 rtentry 112 34 0 4 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 1 0 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 280 35 0 29 1 0 1 1 0 8 0 nd6 48 2 0 1 1 0 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 10 0 0 1 0 1 1 0 8 0 pfstkey 112 10 0 0 1 0 1 1 0 8 0 pfstate 328 10 0 0 1 0 1 1 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 168 0 2 11 0 11 11 0 8 0 art_table 32 169 0 2 2 0 2 2 0 8 0 art_node 16 33 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1422 0 20 46 0 46 46 0 8 0 ffsino 272 1422 0 20 94 0 94 94 0 8 0 nchpl 144 1661 0 49 60 0 60 60 0 8 0 uvmvnodes 72 1432 0 0 27 0 27 27 0 8 0 vnodes 208 1432 0 0 76 0 76 76 0 8 0 namei 1024 4143 0 4143 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4092 0 4092 2 1 1 2 0 8 1 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 432 226 0 213 2 0 2 2 0 8 0 futexpl 56 7 0 7 1 0 1 1 0 8 1 knotepl 112 39 0 28 1 0 1 1 0 8 0 kqueuepl 104 2 0 0 1 0 1 1 0 8 0 pipepl 112 154 0 142 2 1 1 1 0 8 0 fdescpl 488 227 0 213 3 0 3 3 0 8 0 filepl 152 1123 0 1066 3 0 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 52 0 43 1 0 1 1 0 8 0 zombiepl 144 214 0 213 2 1 1 1 0 8 0 processpl 896 242 0 213 4 0 4 4 0 8 0 procpl 632 252 0 215 4 0 4 4 0 8 0 srpgc 64 2 0 0 1 0 1 1 0 8 0 sockpl 384 81 0 63 2 0 2 2 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 72 0 0 9 0 9 9 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 103 0 0 6 0 6 6 0 8 0 bufpl 256 5887 0 1315 286 0 286 286 0 8 0 anonpl 16 22362 0 20772 15 2 13 13 0 124 6 amapchunkpl 152 798 0 733 5 0 5 5 0 158 2 amappl16 192 138 0 110 2 0 2 2 0 8 0 amappl14 176 22 0 21 2 1 1 1 0 8 0 amappl13 168 3 0 2 1 0 1 1 0 8 0 amappl12 160 9 0 8 1 0 1 1 0 8 0 amappl11 152 51 0 36 1 0 1 1 0 8 0 amappl10 144 21 0 15 1 0 1 1 0 8 0 amappl9 136 469 0 462 1 0 1 1 0 8 0 amappl8 128 127 0 116 1 0 1 1 0 8 0 amappl7 120 35 0 31 1 0 1 1 0 8 0 amappl6 112 78 0 70 1 0 1 1 0 8 0 amappl5 104 126 0 113 1 0 1 1 0 8 0 amappl4 96 500 0 472 1 0 1 1 0 8 0 amappl3 88 115 0 110 1 0 1 1 0 8 0 amappl2 80 962 0 901 3 0 3 3 0 8 1 amappl1 72 15390 0 14982 25 7 18 20 0 8 8 amappl 80 479 0 451 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 227 0 213 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 227 0 213 1 0 1 1 0 8 0 vmmpekpl 168 6410 0 6387 2 0 2 2 0 8 0 vmmpepl 168 32734 0 31827 88 8 80 80 0 357 39 vmsppl 368 226 0 213 2 0 2 2 0 8 0 pdppl 4096 461 0 426 6 0 6 6 0 8 1 pvpl 32 112459 0 108489 118 3 115 115 0 265 82 pmappl 232 226 0 213 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 425 0 3 13 0 13 13 0 8 0 ddb{1}>