login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8068b12b00+16 0x0!=0xf34cf18e35c52e71 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *412830 32268 0 0x2 0 1K ifconfig 296059 10883 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(ffffffff8261fc90) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8261fc90) 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_ifchg(ffff800000a97000) at rtm_ifchg+0x47 rtm_msg1 sys/net/rtsock.c:1511 [inline] rtm_ifchg(ffff800000a97000) at rtm_ifchg+0x47 sys/net/rtsock.c:1680 ifioctl(fffffd8065234318,8040691a,ffff800020b637f0,ffff800020abe018) at ifioctl+0xc09 sys/net/if.c:2216 sys_ioctl(ffff800020abe018,ffff800020b63900,ffff800020b63950) at sys_ioctl+0x5b9 syscall(ffff800020b639d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b639d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,36,0,36,7f7fffff5758,13ba31c63070) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff56c0, count: 5 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 0xfffffd8068b12b00+16 0x0!=0xf34cf18e35c52e71 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(ffffffff8261fc90) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8261fc90) 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_ifchg(ffff800000a97000) at rtm_ifchg+0x47 rtm_msg1 sys/net/rtsock.c:1511 [inline] rtm_ifchg(ffff800000a97000) at rtm_ifchg+0x47 sys/net/rtsock.c:1680 ifioctl(fffffd8065234318,8040691a,ffff800020b637f0,ffff800020abe018) at ifioctl+0xc09 sys/net/if.c:2216 sys_ioctl(ffff800020abe018,ffff800020b63900,ffff800020b63950) at sys_ioctl+0x5b9 syscall(ffff800020b639d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b639d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,36,0,36,7f7fffff5758,13ba31c63070) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff56c0, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b634c0 rbx 0xffff800020b63570 rdx 0xffff800020abe018 rcx 0 rax 0 r8 0xffffffff81e6f5af kprintf+0x16f r9 0x1 r10 0x25 r11 0x98ab2e4bd55008ec r12 0x3000000008 r13 0xffff800020b634d0 r14 0x100 r15 0x1 rip 0xffffffff81584398 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b634b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) pid=412830 stat=onproc flags process=2 proc=0 pri=63, usrpri=63, nice=20 forw=0xffffffffffffffff, list=0xffff800020abfb40,0xffffffff8266dec0 process=0xffff800020add180 user=0xffff800020b5e000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *32268 412830 78740 0 7 0x2 ifconfig 78740 337261 5712 0 3 0x10008a pause sh 5712 324477 31400 0 3 0x82 wait syz-executor.1 14568 157338 1 0 3 0x100083 ttyin getty 40024 115948 0 0 3 0x14200 bored sosplice 58066 316916 31400 0 3 0x82 piperd syz-executor.0 31400 271073 79663 0 3 0x82 thrsleep syz-fuzzer 31400 149315 79663 0 3 0x4000082 thrsleep syz-fuzzer 31400 392779 79663 0 3 0x4000082 thrsleep syz-fuzzer 31400 474923 79663 0 3 0x4000082 thrsleep syz-fuzzer 31400 30524 79663 0 3 0x4000082 kqread syz-fuzzer 31400 364520 79663 0 3 0x4000082 thrsleep syz-fuzzer 31400 436105 79663 0 3 0x4000082 thrsleep syz-fuzzer 31400 49440 79663 0 3 0x4000082 thrsleep syz-fuzzer 31400 296845 79663 0 3 0x4000082 thrsleep syz-fuzzer 31400 139561 79663 0 3 0x4000082 thrsleep syz-fuzzer 79663 221409 45094 0 3 0x10008a pause ksh 45094 362149 45141 0 3 0x92 select sshd 45141 366158 1 0 3 0x80 select sshd 31466 126281 69104 74 3 0x100092 bpf pflogd 69104 432246 1 0 3 0x80 netio pflogd 81334 391923 98893 73 3 0x100090 kqread syslogd 98893 272553 1 0 3 0x100082 netio syslogd 51033 357448 1 77 2 0x100090 dhclient 3940 29222 1 0 3 0x80 poll dhclient 57286 28773 0 0 3 0x14200 pgzero zerothread 311 361989 0 0 3 0x14200 aiodoned aiodoned 1553 500340 0 0 3 0x14200 syncer update 2472 163546 0 0 3 0x14200 cleaner cleaner 5090 138718 0 0 3 0x14200 reaper reaper 2809 184262 0 0 3 0x14200 pgdaemon pagedaemon 33441 113038 0 0 3 0x14200 bored crynlk 6998 255185 0 0 3 0x14200 bored crypto 60198 406869 0 0 3 0x40014200 acpi0 acpi0 14017 4043 0 0 3 0x40014200 idle1 10883 296059 0 0 7 0x14200 softnet 52480 160857 0 0 2 0x14200 systqmp 23273 179831 0 0 3 0x14200 bored systq 5191 488056 0 0 3 0x40014200 bored softclock 48187 338683 0 0 3 0x40014200 idle0 6144 283661 0 0 3 0x14200 bored smr 1 351399 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 32268 (ifconfig) thread 0xffff800020abe018 (412830) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826195b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9495 6399K 7569K 78643K 11300 0 0 pcb 13 8K 8K 78643K 67 0 0 rtable 92 3K 4K 78643K 310 0 0 ifaddr 48 11K 12K 78643K 93 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1476 0 0 iov 0 0K 12K 78643K 14 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 1526 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 5 0 0 VM map 2 1K 1K 78643K 4 0 0 sem 12 0K 1K 78643K 46 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 344 0 0 sigio 0 0K 0K 78643K 9 0 0 proc 67 75K 95K 78643K 557 0 0 subproc 32 2K 2K 78643K 85 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 41 0 0 in_multi 23 1K 2K 78643K 50 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 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 242 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 102 21K 30K 78643K 2047 0 0 UVM aobj 11 2K 2K 78643K 16 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 58 0 0 NDP 9 0K 0K 78643K 24 0 0 temp 150 3551K 3623K 78643K 4709 0 0 kqueue 0 0K 0K 78643K 1 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 9 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 55 0 19 2 0 2 2 0 8 0 unpcb 120 151 0 141 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 5232 0 5232 2 1 1 1 0 8 1 tcpcb 544 111 0 106 1 0 1 1 0 8 0 inpcb 280 763 0 754 2 0 2 2 0 8 1 nd6 48 5 0 3 1 0 1 1 0 8 0 ppxss 1128 4 0 4 2 1 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 23 0 6 1 0 1 1 0 8 0 pfstkey 112 23 0 6 1 0 1 1 0 8 0 pfstate 328 23 0 6 2 0 2 2 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 239 0 67 14 0 14 14 0 8 1 art_table 32 240 0 67 2 0 2 2 0 8 0 art_node 16 51 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semapl 112 38 0 28 1 0 1 1 0 8 0 shmpl 112 14 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1887 0 488 46 0 46 46 0 8 0 ffsino 272 1887 0 488 95 0 95 95 0 8 0 nchpl 144 2553 0 953 61 1 60 61 0 8 0 uvmvnodes 72 2143 0 0 39 0 39 39 0 8 0 vnodes 208 2143 0 0 113 0 113 113 0 8 0 namei 1024 7270 0 7270 3 2 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 7206 0 7206 10 9 1 7 0 8 1 plimitpl 152 57 0 49 1 0 1 1 0 8 0 sigapl 432 537 0 521 3 1 2 3 0 8 0 futexpl 56 5774 0 5774 1 0 1 1 0 8 1 knotepl 112 165 0 144 1 0 1 1 0 8 0 kqueuepl 104 70 0 68 1 0 1 1 0 8 0 pipepl 112 398 0 379 3 2 1 2 0 8 0 fdescpl 488 538 0 521 3 0 3 3 0 8 0 filepl 152 3682 0 3581 7 1 6 6 0 8 2 lockfpl 104 111 0 110 1 0 1 1 0 8 0 lockfspl 48 44 0 43 1 0 1 1 0 8 0 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 488 0 479 1 0 1 1 0 8 0 zombiepl 144 521 0 521 3 2 1 1 0 8 1 processpl 896 554 0 521 4 0 4 4 0 8 0 procpl 632 1222 0 1180 6 1 5 5 0 8 1 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 939 0 918 5 1 4 4 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 149 0 0 18 0 18 18 0 8 0 mtagpl 80 26 0 0 1 0 1 1 0 8 0 mbufpl 256 202 0 0 12 0 12 12 0 8 0 bufpl 256 6579 0 1317 329 0 329 329 0 8 0 anonpl 16 67631 0 55794 84 5 79 79 0 124 15 amapchunkpl 152 3131 0 3004 12 4 8 10 0 158 2 amappl16 192 2869 0 2005 63 11 52 56 0 8 8 amappl14 176 171 0 168 2 1 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 10 0 10 2 2 0 1 0 8 0 amappl11 152 54 0 39 1 0 1 1 0 8 0 amappl10 144 12 0 9 1 0 1 1 0 8 0 amappl9 136 641 0 634 1 0 1 1 0 8 0 amappl8 128 186 0 165 1 0 1 1 0 8 0 amappl7 120 49 0 42 1 0 1 1 0 8 0 amappl6 112 85 0 75 1 0 1 1 0 8 0 amappl5 104 137 0 123 1 0 1 1 0 8 0 amappl4 96 802 0 772 1 0 1 1 0 8 0 amappl3 88 260 0 255 1 0 1 1 0 8 0 amappl2 80 3264 0 3201 4 2 2 3 0 8 0 amappl1 72 21772 0 21321 25 15 10 20 0 8 0 amappl 80 1490 0 1451 2 1 1 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 15 0 5 1 0 1 1 0 8 0 uaddrrnd 24 540 0 521 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 540 0 521 1 0 1 1 0 8 0 vmmpekpl 168 8189 0 8158 2 0 2 2 0 8 0 vmmpepl 168 75180 0 73257 160 41 119 119 0 357 29 vmsppl 368 537 0 521 2 0 2 2 0 8 0 pdppl 4096 1087 0 1046 7 1 6 6 0 8 0 pvpl 32 218990 0 203946 207 19 188 191 0 265 35 pmappl 232 539 0 523 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 493 0 6 14 0 14 14 0 8 0