panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8068838600+16 0x0!=0x72788b85af6a9667 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 332718 55523 0 0x14000 0x200 1 reaper 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(ffffffff82664748) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82664748) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sbappendaddr(fffffd806661ddf0,fffffd806661de78,ffffffff82329a08,fffffd806d6c0a00,0) at sbappendaddr+0x140 sys/kern/uipc_socket2.c:802 rtm_sendup(fffffd806661ddf0,fffffd806f1ff200,1) at rtm_sendup+0xe7 sys/net/rtsock.c:594 route_input(fffffd806f1ff200,0,0) at route_input+0x1cc sys/net/rtsock.c:560 if_detach(ffff800000b22800) at if_detach+0x381 sys/net/if.c:1145 tun_clone_destroy(ffff800000b22800) at tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 spec_close(ffff800022babab0) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd8067dd1b78,1,fffffd807f7c6a80,ffff800020ab09f8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd8070e889a0,ffff800020ab09f8) at vn_closefile+0xd8 vn_close sys/kern/vfs_vnops.c:289 [inline] vn_closefile(fffffd8070e889a0,ffff800020ab09f8) at vn_closefile+0xd8 sys/kern/vfs_vnops.c:601 fdrop(fffffd8070e889a0,ffff800020ab09f8) at fdrop+0xc2 sys/kern/kern_descrip.c:1273 end trace frame: 0xffff800022babc20, 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 0xfffffd8068838600+16 0x0!=0x72788b85af6a9667 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(ffffffff82664748) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82664748) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sbappendaddr(fffffd806661ddf0,fffffd806661de78,ffffffff82329a08,fffffd806d6c0a00,0) at sbappendaddr+0x140 sys/kern/uipc_socket2.c:802 rtm_sendup(fffffd806661ddf0,fffffd806f1ff200,1) at rtm_sendup+0xe7 sys/net/rtsock.c:594 route_input(fffffd806f1ff200,0,0) at route_input+0x1cc sys/net/rtsock.c:560 if_detach(ffff800000b22800) at if_detach+0x381 sys/net/if.c:1145 tun_clone_destroy(ffff800000b22800) at tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 spec_close(ffff800022babab0) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd8067dd1b78,1,fffffd807f7c6a80,ffff800020ab09f8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd8070e889a0,ffff800020ab09f8) at vn_closefile+0xd8 vn_close sys/kern/vfs_vnops.c:289 [inline] vn_closefile(fffffd8070e889a0,ffff800020ab09f8) at vn_closefile+0xd8 sys/kern/vfs_vnops.c:601 fdrop(fffffd8070e889a0,ffff800020ab09f8) at fdrop+0xc2 sys/kern/kern_descrip.c:1273 closef(fffffd8070e889a0,ffff800020ab09f8) at closef+0x11d sys/kern/kern_descrip.c:1257 fdfree(ffff800020ab09f8) at fdfree+0x101 sys/kern/kern_descrip.c:1189 exit1(ffff800020ab09f8,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020ab09f8,ffff800022babd40,ffff800022babd90) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800022babe10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022babe10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffe6ce4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6cb0, count: -20 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022bab5d0 rbx 0xffff800022bab680 rdx 0xffff800020ab09f8 rcx 0 rax 0 r8 0xffffffff810c469f kprintf+0x16f r9 0x1 r10 0x25 r11 0xe2baeb4ebed7ad9a r12 0x3000000008 r13 0xffff800022bab5e0 r14 0x100 r15 0x1 rip 0xffffffff8216a6f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bab5c0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=300850 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0ee8,0xffff800020ab0c80 process=0xffff800020add500 user=0xffff800022ba6000, vmspace=0xfffffd807f00acf0 estcpu=31, cpticks=1, pctcpu=0.1 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27977 183269 28351 0 2 0 syz-executor.0 28351 15622 29343 0 3 0x82 nanosleep syz-executor.0 90157 228663 1 0 3 0x100083 ttyin getty 11080 51639 29343 0 3 0x82 nanosleep syz-executor.1 27521 354409 0 0 3 0x14200 bored sosplice 14037 83279 0 0 3 0x14200 acct acct 29343 83377 46974 0 3 0x82 thrsleep syz-fuzzer 29343 463633 46974 0 3 0x4000082 nanosleep syz-fuzzer 29343 226478 46974 0 3 0x4000082 thrsleep syz-fuzzer 29343 111919 46974 0 3 0x4000082 thrsleep syz-fuzzer 29343 310678 46974 0 3 0x4000082 thrsleep syz-fuzzer 29343 342207 46974 0 3 0x4000082 thrsleep syz-fuzzer 29343 343270 46974 0 3 0x4000082 thrsleep syz-fuzzer 29343 514341 46974 0 3 0x4000082 thrsleep syz-fuzzer 29343 478273 46974 0 3 0x4000082 kqread syz-fuzzer 29343 7250 46974 0 3 0x4000082 nanosleep syz-fuzzer 46974 420081 13422 0 3 0x10008a pause ksh 13422 220205 3262 0 3 0x92 select sshd 3262 174560 1 0 3 0x80 select sshd 19552 379650 42196 74 3 0x100092 bpf pflogd 42196 348536 1 0 3 0x80 netio pflogd 52916 164499 57227 73 3 0x100090 kqread syslogd 57227 180670 1 0 3 0x100082 netio syslogd 61845 303408 1 77 3 0x100090 poll dhclient 94500 162743 1 0 3 0x80 poll dhclient 47259 284122 0 0 2 0x14200 zerothread 4560 125472 0 0 3 0x14200 aiodoned aiodoned 44751 144787 0 0 3 0x14200 syncer update 183 295761 0 0 3 0x14200 cleaner cleaner 55523 332718 0 0 7 0x14200 reaper 63404 206212 0 0 3 0x14200 pgdaemon pagedaemon 70730 449442 0 0 3 0x14200 bored crynlk 72692 474966 0 0 3 0x14200 bored crypto 69925 120478 0 0 3 0x40014200 acpi0 acpi0 56559 13876 0 0 3 0x40014200 idle1 32451 384221 0 0 2 0x14200 softnet 12636 220913 0 0 3 0x14200 bored systqmp 62199 491165 0 0 3 0x14200 bored systq 80972 86429 0 0 3 0x40014200 bored softclock 17608 30703 0 0 3 0x40014200 idle0 67646 62206 0 0 3 0x14200 bored smr 1 39331 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9620 6532K 7943K 78643K 24564 0 0 pcb 13 10K 12K 78643K 973 0 0 rtable 129 14K 14K 78643K 3073 0 0 ifaddr 93 20K 22K 78643K 985 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1760 0 0 iov 0 0K 28K 78643K 1034 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 78K 78643K 6265 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 57 0 0 VM map 38 19K 19K 78643K 64 0 0 sem 12 0K 0K 78643K 1486 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4977 0 0 sigio 0 0K 0K 78643K 576 0 0 proc 62 63K 95K 78643K 2247 0 0 subproc 32 2K 2K 78643K 541 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 348 0 0 in_multi 30 2K 2K 78643K 549 0 0 ether_multi 1 0K 0K 78643K 52 0 0 mrt 2 0K 0K 78643K 36 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 1094 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 176 340K 341K 78643K 18913 0 0 UVM aobj 130 4K 4K 78643K 137 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 964 0 0 NDP 23 0K 1K 78643K 309 0 0 temp 250 3565K 4205K 78643K 112568 0 0 kqueue 0 0K 0K 78643K 64 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 93 0 88 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 2048 0 2043 1 0 1 1 0 8 0 rtentry 112 480 0 434 2 0 2 2 0 8 0 unpcb 120 3804 0 3792 2 1 1 2 0 8 0 syncache 264 36 0 36 14 14 0 1 0 8 0 sackhl 24 4 0 4 4 4 0 1 0 8 0 tcpqe 32 5567 0 5567 8 8 0 2 0 8 0 tcpcb 544 2196 0 2192 28 27 1 14 0 8 0 inpcb 280 6288 0 6280 35 33 2 9 0 8 1 rttmr 72 8 0 8 8 8 0 1 0 8 0 nd6 48 79 0 71 1 0 1 1 0 8 0 pkpcb 40 41 0 41 11 10 1 1 0 8 1 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 131 0 131 15 14 1 1 0 8 1 pffrag 232 55 0 55 18 17 1 1 0 482 1 pffrnode 88 55 0 55 18 17 1 1 0 8 1 pffrent 40 1493 0 1493 18 17 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 311 0 262 1 0 1 1 0 8 0 pfstkey 112 312 0 263 2 0 2 2 0 8 0 pfstate 328 312 0 263 6 1 5 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 10 0 9 7 6 1 3 0 8 0 art_heap4 256 2224 0 1911 42 22 20 20 0 8 0 art_table 32 2234 0 1920 4 1 3 3 0 8 0 art_node 16 476 0 433 1 0 1 1 0 8 0 sysvmsgpl 40 39 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1484 0 1474 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9083 0 7655 47 0 47 47 0 8 0 ffsino 272 9083 0 7655 96 0 96 96 0 8 0 nchpl 144 17755 0 17293 61 39 22 61 0 8 0 uvmvnodes 72 6011 0 0 110 0 110 110 0 8 0 vnodes 208 6011 0 0 317 0 317 317 0 8 0 namei 1024 60808 0 60808 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 36 0 0 5 0 5 5 0 8 0 vmpool 552 62 0 26 3 0 3 3 0 8 0 scsiplug 64 10 0 10 8 7 1 1 0 8 1 scxspl 192 55569 0 55569 47 44 3 7 0 8 3 plimitpl 152 413 0 405 1 0 1 1 0 8 0 sigapl 432 5093 0 5077 4 2 2 3 0 8 0 futexpl 56 112816 0 112816 1 0 1 1 0 8 1 knotepl 112 1622 0 1603 6 5 1 3 0 8 0 kqueuepl 104 8434 0 8432 7 6 1 4 0 8 0 pipepl 112 3468 0 3449 9 8 1 2 0 8 0 fdescpl 488 5094 0 5077 3 0 3 3 0 8 0 filepl 152 51791 0 51687 41 36 5 14 0 8 0 lockfpl 104 1731 0 1730 1 0 1 1 0 8 0 lockfspl 48 583 0 582 1 0 1 1 0 8 0 sessionpl 112 50 0 39 1 0 1 1 0 8 0 pgrppl 48 90 0 79 1 0 1 1 0 8 0 ucredpl 96 5622 0 5612 1 0 1 1 0 8 0 zombiepl 144 5078 0 5077 3 2 1 1 0 8 0 processpl 896 5111 0 5077 4 0 4 4 0 8 0 procpl 632 16515 0 16471 7 2 5 5 0 8 1 srpgc 64 46 0 46 18 18 0 1 0 8 0 sosppl 128 64 0 64 18 17 1 1 0 8 1 sockpl 384 12281 0 12257 44 40 4 14 0 8 1 mcl64k 65536 427 0 0 47 15 32 34 0 8 1 mcl16k 16384 27 0 0 4 1 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 30 0 0 3 1 2 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 211 0 0 24 4 20 24 0 8 0 mtagpl 80 67 0 0 1 0 1 1 0 8 0 mbufpl 256 666 0 0 24 0 24 24 0 8 0 mbufpl: pool(0xffffffff82664748:mbufpl): free list modified: page 0xfffffd8065909000; item ordinal 0; addr 0xfffffd8065909100 (p 0xfffffd8066065000); offset 0x0=0x0 mbufpl: pool(0xffffffff82664748:mbufpl): page inconsistency: page 0xfffffd8065909000; item ordinal 1; addr 0x5be42b921e48550d bufpl 256 23120 0 16072 441 0 441 441 0 8 0 anonpl 16 636572 0 619220 186 105 81 89 0 124 6 amapchunkpl 152 38313 0 38185 106 95 11 19 0 158 3 amappl16 192 29388 0 28345 187 132 55 65 0 8 2 amappl15 184 916 0 916 4 4 0 1 0 8 0 amappl14 176 666 0 663 2 1 1 1 0 8 0 amappl13 168 185 0 185 4 4 0 1 0 8 0 amappl12 160 749 0 745 3 2 1 1 0 8 0 amappl11 152 1183 0 1165 1 0 1 1 0 8 0 amappl10 144 313 0 306 1 0 1 1 0 8 0 amappl9 136 2153 0 2147 1 0 1 1 0 8 0 amappl8 128 1686 0 1652 2 0 2 2 0 8 0 amappl7 120 470 0 458 1 0 1 1 0 8 0 amappl6 112 1129 0 1116 1 0 1 1 0 8 0 amappl5 104 1268 0 1255 1 0 1 1 0 8 0 amappl4 96 4743 0 4709 1 0 1 1 0 8 0 amappl3 88 1472 0 1453 1 0 1 1 0 8 0 amappl2 80 38912 0 38837 4 2 2 3 0 8 0 amappl1 72 125045 0 124588 25 15 10 20 0 8 0 amappl 80 17378 0 17311 3 1 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 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 5156 0 5077 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5156 0 5077 1 0 1 1 0 8 0 vmmpekpl 168 45281 0 45236 3 0 3 3 0 8 0 vmmpepl 168 656405 0 654042 336 201 135 139 0 357 28 vmsppl 368 5093 0 5077 2 0 2 2 0 8 0 pdppl 4096 10319 0 10242 11 1 10 10 0 8 0 pvpl 32 1609111 0 1588158 392 194 198 207 0 265 25 pmappl 232 5155 0 5103 4 0 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 743 0 83 19 0 19 19 0 8 0