panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f2f9a00+16 0x0!=0x85dbe7688c54ea22 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *518127 23927 0 0 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240bdef) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828f7de8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806d2f9f00,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d2f9f00,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 rtm_sendup(fffffd806870a4e0,fffffd806d2f9f00,1) at rtm_sendup+0x5f sys/net/rtsock.c:588 route_input(fffffd806d2f9f00,0,18) at route_input+0x1cc sys/net/rtsock.c:560 rtm_send(fffffd807ea97b60,2,0,0) at rtm_send+0x18d sys/net/rtsock.c:1659 rt_ifa_del(ffff800000aa2200,800100,ffff800000aa2240,0) at rt_ifa_del+0x3bb sys/net/route.c:1192 in6_unlink_ifa(ffff800000aa2200,ffff800000ac6000) at in6_unlink_ifa+0x571 sys/netinet6/in6.c:943 in6_purgeaddr(ffff800000aa2200) at in6_purgeaddr+0x1d7 sys/netinet6/in6.c:929 ifnewlladdr(ffff800000ac6000) at ifnewlladdr+0x108 sys/net/if.c:3039 ifioctl(fffffd806870a030,8020691f,ffff8000214e9f30,ffff800020ea3658) at ifioctl+0x1b3e sys/net/if.c:2095 soo_ioctl(fffffd807e733b48,8020691f,ffff8000214e9f30,ffff800020ea3658) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 end trace frame: 0xffff8000214ea030, 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 0xfffffd806f2f9a00+16 0x0!=0x85dbe7688c54ea22 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240bdef) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828f7de8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806d2f9f00,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d2f9f00,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 rtm_sendup(fffffd806870a4e0,fffffd806d2f9f00,1) at rtm_sendup+0x5f sys/net/rtsock.c:588 route_input(fffffd806d2f9f00,0,18) at route_input+0x1cc sys/net/rtsock.c:560 rtm_send(fffffd807ea97b60,2,0,0) at rtm_send+0x18d sys/net/rtsock.c:1659 rt_ifa_del(ffff800000aa2200,800100,ffff800000aa2240,0) at rt_ifa_del+0x3bb sys/net/route.c:1192 in6_unlink_ifa(ffff800000aa2200,ffff800000ac6000) at in6_unlink_ifa+0x571 sys/netinet6/in6.c:943 in6_purgeaddr(ffff800000aa2200) at in6_purgeaddr+0x1d7 sys/netinet6/in6.c:929 ifnewlladdr(ffff800000ac6000) at ifnewlladdr+0x108 sys/net/if.c:3039 ifioctl(fffffd806870a030,8020691f,ffff8000214e9f30,ffff800020ea3658) at ifioctl+0x1b3e sys/net/if.c:2095 soo_ioctl(fffffd807e733b48,8020691f,ffff8000214e9f30,ffff800020ea3658) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ea3658,ffff8000214ea048,ffff8000214ea090) at sys_ioctl+0x4a5 syscall(ffff8000214ea110) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000214ea110) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3f8e4b9e840, count: -17 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000214e9660 rbx 0xffff8000214e9710 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff8000214e9620 r9 0xffffffff81c9883f kprintf+0x16f r10 0x1 r11 0x9c1f78e77add2b9a r12 0x3000000008 r13 0xffff8000214e9670 r14 0x100 r15 0x1 rip 0xffffffff81c6ddc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000214e9650 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=518127 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ea2298,0xffffffff828ed090 process=0xffff8000230ef7b0 user=0xffff8000214e5000, vmspace=0xfffffd807efff5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 23927 228366 2019 0 2 0 syz-executor.0 *23927 518127 2019 0 7 0x4000000 syz-executor.0 74934 272301 52040 0 3 0x82 piperd syz-executor.1 35723 336773 0 0 3 0x14200 bored sosplice 2019 362839 52040 0 3 0x82 nanosleep syz-executor.0 52040 48163 37336 0 3 0x82 thrsleep syz-fuzzer 52040 414217 37336 0 3 0x4000082 nanosleep syz-fuzzer 52040 459976 37336 0 3 0x4000082 thrsleep syz-fuzzer 52040 346164 37336 0 3 0x4000082 thrsleep syz-fuzzer 52040 112818 37336 0 3 0x4000082 thrsleep syz-fuzzer 52040 510828 37336 0 3 0x4000082 thrsleep syz-fuzzer 52040 520136 37336 0 2 0x4000002 syz-fuzzer 52040 396487 37336 0 3 0x4000082 kqread syz-fuzzer 37336 372048 10297 0 3 0x10008a pause ksh 10297 313790 6197 0 3 0x92 select sshd 30554 353914 1 0 3 0x100083 ttyin getty 6197 260149 1 0 3 0x80 select sshd 19819 449215 89693 74 3 0x100092 bpf pflogd 89693 211573 1 0 3 0x80 netio pflogd 73301 266036 62998 73 3 0x100090 kqread syslogd 62998 434296 1 0 3 0x100082 netio syslogd 87164 134795 1 77 3 0x100090 poll dhclient 59262 320219 1 0 3 0x80 poll dhclient 36642 345520 0 0 3 0x14200 bored smr 55229 217961 0 0 2 0x14200 zerothread 34347 52708 0 0 3 0x14200 aiodoned aiodoned 13186 281147 0 0 3 0x14200 syncer update 43746 360417 0 0 3 0x14200 cleaner cleaner 94398 16851 0 0 3 0x14200 reaper reaper 42500 337195 0 0 3 0x14200 pgdaemon pagedaemon 73909 458415 0 0 3 0x14200 bored crynlk 136 5238 0 0 3 0x14200 bored crypto 55185 334291 0 0 3 0x40014200 acpi0 acpi0 51546 183125 0 0 7 0x40014200 idle1 25488 219701 0 0 3 0x14200 bored softnet 42341 466694 0 0 2 0x14200 systqmp 33047 491064 0 0 3 0x14200 bored systq 86540 466059 0 0 3 0x40014200 bored softclock 41504 379650 0 0 3 0x40014200 idle0 1 158773 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 23927 (syz-executor.0) thread 0xffff800020ea3658 (518127) exclusive rwlock netlock r = 0 (0xffffffff826f2960) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 ifioctl+0x117b sys/net/if.c:2078 #2 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #3 sys_ioctl+0x4a5 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828c5c88) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 soo_ioctl+0x26a sys/kern/sys_socket.c:138 #2 sys_ioctl+0x4a5 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9523 6433K 6735K 78643K 11071 0 pcb 13 8K 8K 78643K 75 0 rtable 118 5K 9K 78643K 402 0 ifaddr 75 14K 14K 78643K 141 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 55 0 ioctlops 0 0K 4K 78643K 1516 0 iov 0 0K 12K 78643K 34 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1374 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 70 0 dirhash 9 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 468 0 sigio 0 0K 0K 78643K 6 0 proc 66 63K 83K 78643K 527 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 30 0 in_multi 33 2K 2K 78643K 77 0 ether_multi 1 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 253 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 159 26K 26K 78643K 2334 0 UVM aobj 13 2K 2K 78643K 21 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 47 0 NDP 13 0K 0K 78643K 30 0 temp 123 3878K 3942K 78643K 9938 0 kqueue 3 4K 12K 78643K 30 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 26 0 23 1 0 1 1 0 8 0 rtentry 112 67 0 20 2 0 2 2 0 8 0 unpcb 120 205 0 195 1 0 1 1 0 8 0 syncache 272 6 0 6 2 2 0 1 0 8 0 tcpqe 32 275 0 275 1 1 0 1 0 8 0 tcpcb 592 110 0 101 3 1 2 2 0 8 1 inpcb 296 877 0 866 3 1 2 2 0 8 1 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 16 0 9 1 0 1 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 8 0 6 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 pfrktable 1344 45 0 43 1 0 1 1 0 8 0 pfstitem 24 19 0 11 1 0 1 1 0 8 0 pfstkey 112 19 0 11 1 0 1 1 0 8 0 pfstate 328 19 0 11 2 0 2 2 0 8 0 pfrule 1360 32 0 22 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 236 0 46 12 0 12 12 0 8 0 art_table 32 237 0 46 2 0 2 2 0 8 0 art_node 16 66 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 9 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 66 0 56 1 0 1 1 0 8 0 shmpl 112 18 0 8 2 1 1 1 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 1947 0 546 89 0 89 89 0 8 0 ffsino 272 1947 0 546 96 1 95 95 0 8 0 nchpl 144 2869 0 1276 60 0 60 60 0 8 0 uvmvnodes 72 2113 0 0 39 0 39 39 0 8 0 vnodes 208 2113 0 0 112 0 112 112 0 8 0 namei 1024 7725 0 7725 2 1 1 1 0 8 1 percpumem 16 38 0 6 1 0 1 1 0 8 0 pfiaddrpl 120 13 0 12 1 0 1 1 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 200 8202 0 8202 8 7 1 7 0 8 1 plimitpl 152 38 0 30 1 0 1 1 0 8 0 sigapl 424 681 0 649 4 0 4 4 0 8 0 futexpl 56 6661 0 6661 1 0 1 1 0 8 1 knotepl 112 108 0 88 1 0 1 1 0 8 0 kqueuepl 152 53 0 50 1 0 1 1 0 8 0 pipepl 304 328 0 316 2 0 2 2 0 8 0 fdescpl 496 665 0 649 3 0 3 3 0 8 0 filepl 152 4004 0 3895 6 1 5 5 0 8 0 lockfpl 104 85 0 84 1 0 1 1 0 8 0 lockfspl 48 32 0 31 1 0 1 1 0 8 0 sessionpl 120 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 266 0 257 1 0 1 1 0 8 0 zombiepl 144 649 0 649 2 1 1 1 0 8 1 processpl 1008 681 0 649 6 1 5 5 0 8 0 procpl 632 1446 0 1406 5 1 4 4 0 8 0 sosppl 144 7 0 7 3 3 0 1 0 8 0 sockpl 400 1110 0 1087 7 3 4 4 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 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 202 0 0 25 0 25 25 0 8 0 mtagpl 96 21 0 0 1 0 1 1 0 8 0 mbufpl 256 230 0 0 14 0 14 14 0 8 0 bufpl 280 4176 0 127 290 0 290 290 0 8 0 anonpl 16 81018 0 62269 93 16 77 90 0 124 0 amapchunkpl 152 3567 0 3240 16 1 15 16 0 158 0 amappl16 192 2924 0 2044 57 12 45 55 0 8 0 amappl15 184 9 0 8 2 1 1 1 0 8 0 amappl14 176 1 0 0 1 0 1 1 0 8 0 amappl13 168 147 0 144 1 0 1 1 0 8 0 amappl12 160 155 0 152 1 0 1 1 0 8 0 amappl11 152 69 0 53 1 0 1 1 0 8 0 amappl10 144 17 0 14 1 0 1 1 0 8 0 amappl9 136 660 0 656 1 0 1 1 0 8 0 amappl8 128 665 0 622 2 0 2 2 0 8 0 amappl7 120 122 0 110 1 0 1 1 0 8 0 amappl6 112 33 0 27 1 0 1 1 0 8 0 amappl5 104 578 0 562 1 0 1 1 0 8 0 amappl4 96 506 0 478 1 0 1 1 0 8 0 amappl3 88 133 0 124 1 0 1 1 0 8 0 amappl2 80 4422 0 4351 2 0 2 2 0 8 0 amappl1 72 27184 0 26733 23 13 10 18 0 8 0 amappl 80 1785 0 1702 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 20 0 8 1 0 1 1 0 8 0 uaddrrnd 24 665 0 649 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 665 0 649 1 0 1 1 0 8 0 vmmpekpl 168 9227 0 9193 2 0 2 2 0 8 0 vmmpepl 168 90201 0 88102 135 40 95 124 0 357 3 vmsppl 368 664 0 649 2 0 2 2 0 8 0 pdppl 4096 1337 0 1298 7 2 5 6 0 8 0 pvpl 32 253976 0 232036 211 31 180 211 0 265 1 pmappl 232 664 0 649 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 268 0 13 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240bdef) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828f7de8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806d2f9f00,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d2f9f00,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 rtm_sendup(fffffd806870a4e0,fffffd806d2f9f00,1) at rtm_sendup+0x5f sys/net/rtsock.c:588 route_input(fffffd806d2f9f00,0,18) at route_input+0x1cc sys/net/rtsock.c:560 rtm_send(fffffd807ea97b60,2,0,0) at rtm_send+0x18d sys/net/rtsock.c:1659 rt_ifa_del(ffff800000aa2200,800100,ffff800000aa2240,0) at rt_ifa_del+0x3bb sys/net/route.c:1192 in6_unlink_ifa(ffff800000aa2200,ffff800000ac6000) at in6_unlink_ifa+0x571 sys/netinet6/in6.c:943 in6_purgeaddr(ffff800000aa2200) at in6_purgeaddr+0x1d7 sys/netinet6/in6.c:929 ifnewlladdr(ffff800000ac6000) at ifnewlladdr+0x108 sys/net/if.c:3039 ifioctl(fffffd806870a030,8020691f,ffff8000214e9f30,ffff800020ea3658) at ifioctl+0x1b3e sys/net/if.c:2095 soo_ioctl(fffffd807e733b48,8020691f,ffff8000214e9f30,ffff800020ea3658) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ea3658,ffff8000214ea048,ffff8000214ea090) at sys_ioctl+0x4a5 syscall(ffff8000214ea110) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000214ea110) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3f8e4b9e840, count: -17 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5