panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd80625bb200+16 0x0!=0xe4fc3af8ccece77f Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *337894 48315 0 0 0x4000000 1K syz-executor.1 274958 17273 0 0x14000 0x200 0 systqmp 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(ffffffff82641720) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82641720) 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,ffff800023bed830) at rtm_msg1+0x6e sys/net/rtsock.c:1511 rtm_send(fffffd80663fe468,1,0,0) at rtm_send+0x120 rtm_miss sys/net/rtsock.c:1656 [inline] rtm_send(fffffd80663fe468,1,0,0) at rtm_send+0x120 sys/net/rtsock.c:1634 rt_ifa_add(ffff800000b34c00,240404,ffff800000b34c58,0) at rt_ifa_add+0x2ee sys/net/route.c:1143 rt_ifa_addlocal(ffff800000b34c00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b4b000,ffff800000b34c00,ffff800023bedd70,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_change_ifaddr(8040691a,ffff800023bedd60,ffff800000b4b000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023bedd60,ffff800000b4b000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8062edcd80,8040691a,ffff800023bedd60,ffff800020ab0780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0780,ffff800023bede78,ffff800023bedec0) at sys_ioctl+0x5b9 end trace frame: 0xffff800023bedf30, 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 0xfffffd80625bb200+16 0x0!=0xe4fc3af8ccece77f 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(ffffffff82641720) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82641720) 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,ffff800023bed830) at rtm_msg1+0x6e sys/net/rtsock.c:1511 rtm_send(fffffd80663fe468,1,0,0) at rtm_send+0x120 rtm_miss sys/net/rtsock.c:1656 [inline] rtm_send(fffffd80663fe468,1,0,0) at rtm_send+0x120 sys/net/rtsock.c:1634 rt_ifa_add(ffff800000b34c00,240404,ffff800000b34c58,0) at rt_ifa_add+0x2ee sys/net/route.c:1143 rt_ifa_addlocal(ffff800000b34c00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b4b000,ffff800000b34c00,ffff800023bedd70,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_change_ifaddr(8040691a,ffff800023bedd60,ffff800000b4b000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023bedd60,ffff800000b4b000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8062edcd80,8040691a,ffff800023bedd60,ffff800020ab0780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0780,ffff800023bede78,ffff800023bedec0) at sys_ioctl+0x5b9 syscall(ffff800023bedf40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bedf40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,d1f80fa8010) at Xsyscall+0x128 end of kernel end trace frame: 0xd21af864080, count: -16 ddb{1}> show registers rdi 0xffffffff81807637 db_enter+0x17 rsi 0x8341 __ALIGN_SIZE+0x7341 rbp 0xffff800023bed550 rbx 0xffff800023bed600 rdx 0x8342 __ALIGN_SIZE+0x7342 rcx 0xffff800021b58000 rax 0xffff800021b58000 r8 0xffffffff8142986f kprintf+0x16f r9 0x1 r10 0x25 r11 0x19f2e596109821ac r12 0x3000000008 r13 0xffff800023bed560 r14 0x100 r15 0x1 rip 0xffffffff81807638 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bed540 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=337894 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffff800020a5e290 process=0xffff800020add880 user=0xffff800023be8000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48315 396345 20027 0 2 0 syz-executor.1 *48315 337894 20027 0 7 0x4000000 syz-executor.1 48315 302241 20027 0 3 0x4000080 fsleep syz-executor.1 20027 484433 79982 0 3 0x82 nanosleep syz-executor.1 93148 188087 79982 0 3 0x82 nanosleep syz-executor.0 53777 431303 0 0 3 0x14200 bored sosplice 79982 398573 91730 0 3 0x82 thrsleep syz-fuzzer 79982 407090 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 431756 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 510574 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 62721 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 473955 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 110218 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 53615 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 493090 91730 0 3 0x4000082 thrsleep syz-fuzzer 79982 370248 91730 0 3 0x4000082 kqread syz-fuzzer 91730 71023 54924 0 3 0x10008a pause ksh 54924 425755 92422 0 3 0x92 select sshd 48194 304197 1 0 3 0x100083 ttyin getty 92422 346792 1 0 3 0x80 select sshd 77155 69721 60660 74 3 0x100092 bpf pflogd 60660 312257 1 0 3 0x80 netio pflogd 75654 497432 10254 73 3 0x100090 kqread syslogd 10254 497653 1 0 3 0x100082 netio syslogd 74290 138826 1 77 2 0x100090 dhclient 2692 201068 1 0 3 0x80 poll dhclient 43353 310673 0 0 3 0x14200 pgzero zerothread 76364 173941 0 0 3 0x14200 aiodoned aiodoned 27316 135923 0 0 3 0x14200 syncer update 65041 12494 0 0 3 0x14200 cleaner cleaner 76620 69239 0 0 3 0x14200 reaper reaper 35530 468315 0 0 3 0x14200 pgdaemon pagedaemon 29196 260043 0 0 3 0x14200 bored crynlk 27480 135702 0 0 3 0x14200 bored crypto 98275 205777 0 0 3 0x40014200 acpi0 acpi0 35338 316348 0 0 3 0x40014200 idle1 61068 199050 0 0 2 0x14200 softnet 17273 274958 0 0 7 0x14200 systqmp 81251 234361 0 0 3 0x14200 bored systq 94082 43997 0 0 3 0x40014200 bored softclock 233 140757 0 0 3 0x40014200 idle0 34461 498177 0 0 3 0x14200 bored smr 1 57160 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 48315 (syz-executor.1) thread 0xffff800020ab0780 (337894) exclusive rwlock netlock r = 0 (0xffffffff824b42d8) #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 (0xffffffff826329b0) #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 9626 6485K 7730K 78643K 25290 0 0 pcb 13 13K 14K 78643K 1245 0 0 rtable 118 14K 14K 78643K 4393 0 0 ifaddr 104 26K 30K 78643K 1410 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1782 0 0 iov 0 0K 24K 78643K 1186 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1225 77K 77K 78643K 6835 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 98 0 0 VM map 32 16K 16K 78643K 59 0 0 sem 12 0K 1K 78643K 2623 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 6221 0 0 sigio 0 0K 0K 78643K 224 0 0 proc 62 63K 95K 78643K 2439 0 0 subproc 32 2K 2K 78643K 616 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 559 0 0 in_multi 32 2K 2K 78643K 775 0 0 ether_multi 1 0K 0K 78643K 59 0 0 mrt 1 0K 0K 78643K 31 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 1212 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 189 334K 344K 78643K 24313 0 0 UVM aobj 130 8K 8K 78643K 136 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 1285 0 0 NDP 24 0K 1K 78643K 452 0 0 temp 256 3561K 4201K 78643K 184382 0 0 kqueue 0 0K 0K 78643K 51 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 133 0 128 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 476 0 474 1 0 1 1 0 8 0 rtentry 112 686 0 645 2 0 2 2 0 8 0 unpcb 120 2680 0 2668 3 2 1 2 0 8 0 syncache 264 27 0 27 13 13 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 160 0 160 6 6 0 1 0 8 0 tcpcb 544 4156 0 4152 19 18 1 12 0 8 0 inpcb 280 9179 0 9171 53 50 3 14 0 8 2 rttmr 72 13 0 12 7 6 1 1 0 8 0 ip6q 72 5 0 5 3 3 0 1 0 8 0 ip6af 40 14 0 14 3 3 0 1 0 8 0 nd6 48 107 0 103 5 4 1 1 0 8 0 pkpcb 40 41 0 41 15 15 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 212 0 212 29 28 1 1 0 8 1 pffrag 232 112 0 112 29 29 0 1 0 482 0 pffrnode 88 112 0 112 29 29 0 1 0 8 0 pffrent 40 2434 0 2434 28 28 0 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 497 0 447 1 0 1 1 0 8 0 pfstkey 112 503 0 453 3 1 2 2 0 8 0 pfstate 328 503 0 453 10 5 5 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 7 0 6 7 6 1 3 0 8 0 art_heap4 256 2999 0 2724 44 26 18 18 0 8 0 art_table 32 3006 0 2730 4 1 3 3 0 8 0 art_node 16 682 0 641 1 0 1 1 0 8 0 sysvmsgpl 40 73 0 55 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 2621 0 2611 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10970 0 9550 46 0 46 46 0 8 0 ffsino 272 10970 0 9550 95 0 95 95 0 8 0 nchpl 144 22450 0 20826 61 0 61 61 0 8 0 uvmvnodes 72 6053 0 0 111 0 111 111 0 8 0 vnodes 208 6053 0 0 319 0 319 319 0 8 0 namei 1024 91370 0 91370 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 32 0 2 4 0 4 4 0 8 0 vmpool 552 57 0 27 4 1 3 3 0 8 0 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 64622 0 64622 46 45 1 7 0 8 1 plimitpl 152 462 0 454 1 0 1 1 0 8 0 sigapl 432 6319 0 6304 3 1 2 3 0 8 0 futexpl 56 154368 0 154367 2 1 1 1 0 8 0 knotepl 112 1418 0 1399 3 2 1 2 0 8 0 kqueuepl 104 1584 0 1582 5 4 1 4 0 8 0 pipepl 112 6036 0 6017 6 5 1 2 0 8 0 fdescpl 488 6320 0 6304 3 0 3 3 0 8 0 filepl 152 68968 0 68866 56 50 6 14 0 8 2 lockfpl 104 1990 0 1988 1 0 1 1 0 8 0 lockfspl 48 707 0 705 1 0 1 1 0 8 0 sessionpl 112 52 0 41 1 0 1 1 0 8 0 pgrppl 48 155 0 144 1 0 1 1 0 8 0 ucredpl 96 19165 0 19156 1 0 1 1 0 8 0 zombiepl 144 6308 0 6307 2 1 1 1 0 8 0 processpl 896 6340 0 6307 4 0 4 4 0 8 0 procpl 632 21721 0 21677 9 4 5 5 0 8 1 srpgc 64 38 0 38 15 15 0 1 0 8 0 sosppl 128 75 0 75 26 26 0 1 0 8 0 sockpl 384 12433 0 12410 68 63 5 23 0 8 2 mcl64k 65536 867 0 0 103 69 34 66 0 8 1 mcl16k 16384 26 0 0 3 1 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 1 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 41 0 0 4 1 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 194 0 0 20 6 14 20 0 8 0 mtagpl 80 137 0 0 1 0 1 1 0 8 0 mbufpl 256 980 0 0 39 0 39 39 0 8 0 bufpl 256 25146 0 18098 441 0 441 441 0 8 0 anonpl 16 748358 0 729470 301 221 80 95 0 124 0 amapchunkpl 152 47230 0 47116 87 76 11 19 0 158 4 amappl16 192 35265 0 34138 278 219 59 69 0 8 1 amappl15 184 1120 0 1120 5 5 0 1 0 8 0 amappl14 176 767 0 760 1 0 1 1 0 8 0 amappl13 168 1297 0 1297 5 5 0 1 0 8 0 amappl12 160 468 0 465 2 1 1 1 0 8 0 amappl11 152 227 0 211 1 0 1 1 0 8 0 amappl10 144 1263 0 1257 1 0 1 1 0 8 0 amappl9 136 1927 0 1919 1 0 1 1 0 8 0 amappl8 128 1532 0 1472 3 0 3 3 0 8 0 amappl7 120 1404 0 1394 1 0 1 1 0 8 0 amappl6 112 204 0 188 1 0 1 1 0 8 0 amappl5 104 947 0 933 1 0 1 1 0 8 0 amappl4 96 6680 0 6643 1 0 1 1 0 8 0 amappl3 88 1175 0 1164 1 0 1 1 0 8 0 amappl2 80 49292 0 49220 3 0 3 3 0 8 0 amappl1 72 153962 0 153524 25 15 10 20 0 8 0 amappl 80 22624 0 22563 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 6377 0 6304 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6377 0 6304 1 0 1 1 0 8 0 vmmpekpl 168 64157 0 64117 4 1 3 3 0 8 0 vmmpepl 168 816342 0 813983 574 429 145 150 0 357 31 vmsppl 368 6319 0 6304 2 0 2 2 0 8 0 pdppl 4096 12761 0 12692 15 6 9 10 0 8 0 pvpl 32 2015856 0 1994978 594 413 181 214 0 265 1 pmappl 232 6376 0 6331 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 806 0 139 20 0 20 20 0 8 0