panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806276c200+24 0x50260e45e176d43b!=0xafd9f3c59c8c383b Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *318274 76580 0 0x2 0 1K ifconfig 265150 27212 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(ffffffff82641fe0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82641fe0) 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(1,ffff800021b5ca00) at rtm_msg1+0x6e sys/net/rtsock.c:1511 rtm_send(fffffd8065e567e8,1,0,0) at rtm_send+0x120 rtm_miss sys/net/rtsock.c:1656 [inline] rtm_send(fffffd8065e567e8,1,0,0) at rtm_send+0x120 sys/net/rtsock.c:1634 rt_ifa_add(ffff800000b34000,240404,ffff800000b34058,0) at rt_ifa_add+0x2ee sys/net/route.c:1143 rt_ifa_addlocal(ffff800000b34000) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a67000,ffff800000b34000,ffff800021b5cf40,1) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_change_ifaddr(8040691a,ffff800021b5cf30,ffff800000a67000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800021b5cf30,ffff800000a67000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8062035990,8040691a,ffff800021b5cf30,ffff800020abe018) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe018,ffff800021b5d040,ffff800021b5d090) at sys_ioctl+0x5b9 end trace frame: 0xffff800021b5d100, 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 0xfffffd806276c200+24 0x50260e45e176d43b!=0xafd9f3c59c8c383b 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(ffffffff82641fe0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82641fe0) 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(1,ffff800021b5ca00) at rtm_msg1+0x6e sys/net/rtsock.c:1511 rtm_send(fffffd8065e567e8,1,0,0) at rtm_send+0x120 rtm_miss sys/net/rtsock.c:1656 [inline] rtm_send(fffffd8065e567e8,1,0,0) at rtm_send+0x120 sys/net/rtsock.c:1634 rt_ifa_add(ffff800000b34000,240404,ffff800000b34058,0) at rt_ifa_add+0x2ee sys/net/route.c:1143 rt_ifa_addlocal(ffff800000b34000) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a67000,ffff800000b34000,ffff800021b5cf40,1) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_change_ifaddr(8040691a,ffff800021b5cf30,ffff800000a67000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800021b5cf30,ffff800000a67000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8062035990,8040691a,ffff800021b5cf30,ffff800020abe018) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe018,ffff800021b5d040,ffff800021b5d090) at sys_ioctl+0x5b9 syscall(ffff800021b5d110) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b5d110) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,36,0,36,7f7fffff6c68,14990a563070) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6bd0, count: -16 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021b5c720 rbx 0xffff800021b5c7d0 rdx 0xffff800020abe018 rcx 0 rax 0 r8 0xffffffff81a7d55f kprintf+0x16f r9 0x1 r10 0x25 r11 0xe35925dd443648db r12 0x3000000008 r13 0xffff800021b5c730 r14 0x100 r15 0x1 rip 0xffffffff8151a108 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b5c710 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (ifconfig) pid=318274 stat=onproc flags process=2 proc=0 pri=55, usrpri=55, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf160,0xffffffff82656ed8 process=0xffff800020adc700 user=0xffff800021b58000, vmspace=0xfffffd807f00bb80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *76580 318274 95781 0 7 0x2 ifconfig 95781 321316 73605 0 3 0x10008a pause sh 73605 118059 71527 0 3 0x82 wait syz-executor.1 23026 517581 71527 0 3 0x82 piperd syz-executor.0 12873 379487 0 0 3 0x14200 acct acct 56405 346928 1 0 3 0x100083 ttyin getty 18357 217476 0 0 3 0x14200 bored sosplice 71527 161718 82389 0 3 0x82 thrsleep syz-fuzzer 71527 270773 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 239993 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 289244 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 17846 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 428641 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 395925 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 386284 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 29175 82389 0 3 0x4000082 thrsleep syz-fuzzer 71527 405908 82389 0 3 0x4000082 kqread syz-fuzzer 82389 351089 92498 0 3 0x10008a pause ksh 92498 246981 18891 0 3 0x92 select sshd 18891 251489 1 0 3 0x80 select sshd 82199 285671 2288 74 3 0x100092 bpf pflogd 2288 450291 1 0 3 0x80 netio pflogd 47195 141748 75871 73 3 0x100090 kqread syslogd 75871 362437 1 0 3 0x100082 netio syslogd 23173 123549 1 77 2 0x100090 dhclient 81688 133532 1 0 3 0x80 poll dhclient 41439 301780 0 0 3 0x14200 pgzero zerothread 95336 146651 0 0 3 0x14200 aiodoned aiodoned 21165 506350 0 0 3 0x14200 syncer update 81543 220722 0 0 3 0x14200 cleaner cleaner 6872 407470 0 0 3 0x14200 reaper reaper 13711 149412 0 0 3 0x14200 pgdaemon pagedaemon 96472 509286 0 0 3 0x14200 bored crynlk 89403 408710 0 0 3 0x14200 bored crypto 47623 52362 0 0 3 0x40014200 acpi0 acpi0 1143 220326 0 0 3 0x40014200 idle1 27212 265150 0 0 7 0x14200 softnet 63323 299933 0 0 3 0x14200 bored systqmp 1320 503466 0 0 3 0x14200 bored systq 93559 353468 0 0 3 0x40014200 bored softclock 39161 200806 0 0 3 0x40014200 idle0 16106 197277 0 0 3 0x14200 bored smr 1 230576 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 76580 (ifconfig) thread 0xffff800020abe018 (318274) exclusive rwlock netlock r = 0 (0xffffffff82487d08) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_change_ifaddr+0x3f #2 in_ioctl+0x205 sys/netinet/in.c:234 #3 ifioctl+0xb64 sys/net/if.c:2202 #4 sys_ioctl+0x5b9 #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 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82644840) #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 9619 6472K 7884K 78643K 23159 0 0 pcb 13 9K 10K 78643K 1612 0 0 rtable 109 9K 10K 78643K 5536 0 0 ifaddr 100 25K 27K 78643K 1783 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1803 0 0 iov 0 0K 28K 78643K 5110 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 6419 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 74 0 0 VM map 26 13K 13K 78643K 45 0 0 sem 12 0K 1K 78643K 1906 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5567 0 0 sigio 0 0K 0K 78643K 134 0 0 proc 69 75K 95K 78643K 2809 0 0 subproc 32 2K 2K 78643K 837 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 2183 0 0 in_multi 21 1K 2K 78643K 774 0 0 ether_multi 1 0K 0K 78643K 47 0 0 mrt 0 0K 0K 78643K 28 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 1405 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 182 252K 252K 78643K 20599 0 0 UVM aobj 130 8K 8K 78643K 148 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 1048 0 0 NDP 24 0K 1K 78643K 572 0 0 temp 256 3561K 4201K 78643K 169118 0 0 kqueue 0 0K 0K 78643K 50 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 153 0 147 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 437 0 435 1 0 1 1 0 8 0 rtentry 112 851 0 815 2 0 2 2 0 8 0 unpcb 120 2305 0 2294 3 2 1 2 0 8 0 syncache 264 31 0 31 14 14 0 1 0 8 0 tcpqe 32 23 0 23 8 8 0 1 0 8 0 tcpcb 544 4270 0 4266 24 22 2 4 0 8 1 inpcb 280 14057 0 14049 36 34 2 5 0 8 1 rttmr 72 11 0 10 4 3 1 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 118 0 118 4 3 1 1 0 8 1 pkpcb 40 38 0 38 11 11 0 1 0 8 0 swfcl 56 9 0 0 1 0 1 1 0 8 0 ppxss 1128 168 0 168 18 18 0 1 0 8 0 pffrag 232 2519 0 2519 8 7 1 5 0 482 1 pffrnode 88 2451 0 2451 4 3 1 1 0 8 1 pffrent 40 7416 0 7416 5 4 1 2 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 517 0 450 1 0 1 1 0 8 0 pfstkey 112 519 0 452 4 1 3 3 0 8 0 pfstate 328 519 0 452 11 3 8 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 3 4 3 1 3 0 8 0 art_heap4 256 3158 0 2963 54 35 19 19 0 8 1 art_table 32 3162 0 2966 4 1 3 3 0 8 0 art_node 16 721 0 689 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 13 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1904 0 1894 1 0 1 1 0 8 0 shmpl 112 146 0 18 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9833 0 8419 46 0 46 46 0 8 0 ffsino 272 9833 0 8419 95 0 95 95 0 8 0 nchpl 144 19354 0 18881 61 40 21 61 0 8 0 uvmvnodes 72 5995 0 0 109 0 109 109 0 8 0 vnodes 208 5995 0 0 316 0 316 316 0 8 0 namei 1024 65470 0 65470 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 24 0 0 3 0 3 3 0 8 0 vmpool 552 43 0 19 4 2 2 2 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 56123 0 56123 46 43 3 6 0 8 3 plimitpl 152 426 0 418 1 0 1 1 0 8 0 sigapl 432 5628 0 5612 5 3 2 3 0 8 0 futexpl 56 126403 0 126403 2 1 1 1 0 8 1 knotepl 112 1645 0 1624 1 0 1 1 0 8 0 kqueuepl 104 1416 0 1414 1 0 1 1 0 8 0 pipepl 112 4506 0 4487 11 9 2 2 0 8 1 fdescpl 488 5629 0 5612 3 0 3 3 0 8 0 filepl 152 51640 0 51539 32 27 5 7 0 8 1 lockfpl 104 1747 0 1746 1 0 1 1 0 8 0 lockfspl 48 614 0 613 1 0 1 1 0 8 0 sessionpl 112 67 0 56 1 0 1 1 0 8 0 pgrppl 48 150 0 139 1 0 1 1 0 8 0 ucredpl 96 5374 0 5365 1 0 1 1 0 8 0 zombiepl 144 5613 0 5613 2 1 1 1 0 8 1 processpl 896 5647 0 5613 5 1 4 5 0 8 0 procpl 632 17350 0 17307 14 9 5 5 0 8 1 srpgc 64 78 0 78 23 22 1 1 0 8 1 sosppl 128 72 0 72 16 16 0 1 0 8 0 sockpl 384 17046 0 17025 53 48 5 9 0 8 2 mcl64k 65536 601 0 0 71 12 59 66 0 8 1 mcl16k 16384 33 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 38 0 0 3 1 2 2 0 8 0 mcl8k 8192 26 0 0 3 0 3 3 0 8 0 mcl4k 4096 42 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 347 0 0 27 12 15 24 0 8 0 mtagpl 80 48 0 0 1 0 1 1 0 8 0 mbufpl 256 1012 0 0 42 0 42 42 0 8 0 mbufpl: pool(0xffffffff82641fe0:mbufpl): free list modified: page 0xfffffd8062771000; item ordinal 4; addr 0xfffffd8062771b00 (p 0xfffffd8065ed7000); offset 0x0=0x0 bufpl 256 22576 0 15528 441 0 441 441 0 8 0 anonpl 16 717949 0 702777 229 132 97 97 0 124 16 amapchunkpl 152 42679 0 42552 80 71 9 19 0 158 4 amappl16 192 29993 0 28859 245 180 65 68 0 8 7 amappl15 184 1216 0 1216 5 5 0 1 0 8 0 amappl14 176 1733 0 1730 1 0 1 1 0 8 0 amappl13 168 394 0 394 8 7 1 1 0 8 1 amappl12 160 480 0 477 2 1 1 1 0 8 0 amappl11 152 893 0 876 1 0 1 1 0 8 0 amappl10 144 718 0 710 1 0 1 1 0 8 0 amappl9 136 1552 0 1545 1 0 1 1 0 8 0 amappl8 128 1164 0 1114 3 1 2 2 0 8 0 amappl7 120 911 0 899 1 0 1 1 0 8 0 amappl6 112 772 0 757 1 0 1 1 0 8 0 amappl5 104 1250 0 1236 1 0 1 1 0 8 0 amappl4 96 5751 0 5719 1 0 1 1 0 8 0 amappl3 88 2431 0 2424 1 0 1 1 0 8 0 amappl2 80 42753 0 42684 3 1 2 3 0 8 0 amappl1 72 137569 0 137119 26 16 10 20 0 8 0 amappl 80 18601 0 18547 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 147 0 18 3 0 3 3 0 8 0 uaddrrnd 24 5672 0 5612 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5672 0 5612 1 0 1 1 0 8 0 vmmpekpl 168 51594 0 51556 3 0 3 3 0 8 0 vmmpepl 168 733520 0 731214 430 285 145 146 0 357 32 vmsppl 368 5628 0 5612 2 0 2 2 0 8 0 pdppl 4096 11351 0 11286 16 7 9 9 0 8 0 pvpl 32 1817439 0 1800219 439 222 217 217 0 265 36 pmappl 232 5671 0 5631 6 3 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 796 0 97 21 0 21 21 0 8 0