panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 95067 22812 0 0 0 0 syz-executor.1 *365166 22812 0 0 0x4000000 1K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824aee90) at panic+0x164 sys/kern/subr_prf.c:218 ifa_update_broadaddr(ffff800000af6000,ffff800000b2e700,ffff8000241a9260) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff8000241a9250,ffff800000af6000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd8063eb6348,80206913,ffff8000241a9250,ffff800020e099d8) at ifioctl+0xe70 sys/net/if.c:2181 soo_ioctl(fffffd8067199be0,80206913,ffff8000241a9250,ffff800020e099d8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e099d8,ffff8000241a9368,ffff8000241a93b0) at sys_ioctl+0x4a5 syscall(ffff8000241a9430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000241a9430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3fe58eb7c60, count: 6 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 ifa_update_broadaddr does not support dynamic length ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824aee90) at panic+0x164 sys/kern/subr_prf.c:218 ifa_update_broadaddr(ffff800000af6000,ffff800000b2e700,ffff8000241a9260) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff8000241a9250,ffff800000af6000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd8063eb6348,80206913,ffff8000241a9250,ffff800020e099d8) at ifioctl+0xe70 sys/net/if.c:2181 soo_ioctl(fffffd8067199be0,80206913,ffff8000241a9250,ffff800020e099d8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e099d8,ffff8000241a9368,ffff8000241a93b0) at sys_ioctl+0x4a5 syscall(ffff8000241a9430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000241a9430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3fe58eb7c60, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000241a8f80 rbx 0xffff8000241a9030 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff823bfbdf kprintf+0x16f r9 0x1 r10 0x2 r11 0x2bd8a6ceed277cb1 r12 0x3000000008 r13 0xffff8000241a8f90 r14 0x100 r15 0x1 rip 0xffffffff8236cd38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000241a8f70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=365166 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e2a610,0xffffffff828e3090 process=0xffff80002417a418 user=0xffff8000241a4000, vmspace=0xfffffd806e8f0e68 estcpu=18, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22812 95067 90661 0 7 0 syz-executor.1 *22812 365166 90661 0 7 0x4000000 syz-executor.1 61580 312910 15719 0 2 0 syz-executor.0 61580 259279 15719 0 3 0x4000080 fsleep syz-executor.0 61580 322636 15719 0 2 0x4000000 syz-executor.0 55978 264231 0 0 3 0x14200 bored sosplice 53309 326870 0 0 3 0x14280 nfsidl nfsio 64564 87033 0 0 3 0x14280 nfsidl nfsio 71269 263359 0 0 3 0x14280 nfsidl nfsio 1556 491613 0 0 3 0x14280 nfsidl nfsio 57921 368352 0 0 3 0x14280 nfsidl nfsio 71473 153172 0 0 3 0x14280 nfsidl nfsio 68366 140443 0 0 3 0x14280 nfsidl nfsio 1983 82670 0 0 3 0x14280 nfsidl nfsio 16092 108910 0 0 3 0x14280 nfsidl nfsio 58854 432368 0 0 3 0x14280 nfsidl nfsio 57759 54357 0 0 3 0x14280 nfsidl nfsio 89464 195404 0 0 3 0x14280 nfsidl nfsio 55501 181063 0 0 3 0x14280 nfsidl nfsio 88988 477666 0 0 3 0x14280 nfsidl nfsio 88827 264584 0 0 3 0x14280 nfsidl nfsio 13157 441381 0 0 3 0x14280 nfsidl nfsio 27099 88557 0 0 3 0x14280 nfsidl nfsio 14280 194134 0 0 3 0x14280 nfsidl nfsio 28681 304145 0 0 3 0x14280 nfsidl nfsio 59311 211244 0 0 3 0x14280 nfsidl nfsio 90661 523418 85756 0 3 0x82 nanosleep syz-executor.1 15719 305750 85756 0 3 0x82 nanosleep syz-executor.0 85756 452357 82758 0 3 0x82 thrsleep syz-fuzzer 85756 230793 82758 0 3 0x4000082 nanosleep syz-fuzzer 85756 338762 82758 0 3 0x4000082 thrsleep syz-fuzzer 85756 420736 82758 0 3 0x4000082 thrsleep syz-fuzzer 85756 369042 82758 0 3 0x4000082 nanosleep syz-fuzzer 85756 169063 82758 0 3 0x4000082 thrsleep syz-fuzzer 85756 405690 82758 0 3 0x4000082 kqread syz-fuzzer 85756 264972 82758 0 3 0x4000082 thrsleep syz-fuzzer 82758 330232 52618 0 3 0x10008a pause ksh 52618 195114 95885 0 3 0x92 select sshd 15776 56779 1 0 3 0x100083 ttyin getty 95885 421948 1 0 3 0x80 select sshd 29001 231762 95278 74 3 0x100092 bpf pflogd 95278 139962 1 0 3 0x80 netio pflogd 75303 110289 22194 73 3 0x100090 kqread syslogd 22194 125207 1 0 3 0x100082 netio syslogd 1487 291881 1 77 3 0x100090 poll dhclient 77216 104381 1 0 3 0x80 poll dhclient 68124 79489 0 0 3 0x14200 bored smr 25562 279188 0 0 2 0x14200 zerothread 5962 65716 0 0 3 0x14200 aiodoned aiodoned 91741 320171 0 0 3 0x14200 syncer update 25179 293061 0 0 3 0x14200 cleaner cleaner 41367 24727 0 0 3 0x14200 reaper reaper 98027 206775 0 0 3 0x14200 pgdaemon pagedaemon 72316 206411 0 0 3 0x14200 bored crynlk 26577 476352 0 0 3 0x14200 bored crypto 21367 251942 0 0 3 0x40014200 acpi0 acpi0 7854 235004 0 0 3 0x40014200 idle1 76137 501646 0 0 3 0x14200 bored softnet 79895 239057 0 0 3 0x14200 bored systqmp 28156 279516 0 0 3 0x14200 bored systq 55568 441406 0 0 3 0x40014200 bored softclock 70959 74488 0 0 3 0x40014200 idle0 1 238222 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 22812 (syz-executor.1) thread 0xffff800020e099d8 (365166) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9507 6599K 8020K 78643K 15198 0 pcb 13 8K 8K 78643K 48 0 rtable 77 4K 5K 78643K 315 0 ifaddr 84 18K 18K 78643K 122 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 2164 0 iov 0 0K 12K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 2247 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 26 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 175 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 2014 0 sigio 0 0K 0K 78643K 87 0 proc 61 63K 95K 78643K 487 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 46 0 in_multi 63 3K 3K 78643K 96 0 ether_multi 1 0K 0K 78643K 3 0 mrt 2 0K 0K 78643K 3 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 224 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 171 27K 43K 78643K 6268 0 UVM aobj 28 4K 4K 78643K 55 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 15 0 NDP 9 0K 0K 78643K 18 0 temp 126 3878K 3942K 78643K 7773 0 kqueue 3 4K 6K 78643K 5 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 33 0 31 1 0 1 1 0 8 0 rtentry 112 58 0 32 2 0 2 2 0 8 0 unpcb 120 210 0 200 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 92 0 92 1 1 0 1 0 8 0 tcpcb 544 944 0 933 7 5 2 3 0 8 1 ipq 40 7 0 5 1 0 1 1 0 8 0 ipqe 40 423 0 420 1 0 1 1 0 8 0 inpcb 296 1176 0 1167 5 4 1 2 0 8 0 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1136 2 0 2 2 2 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 1 0 8 0 pfosfp 40 847 0 846 5 4 1 5 0 8 0 pfosfpen 112 1429 0 1428 21 20 1 21 0 8 0 pfrktable 1344 4 0 3 1 0 1 1 0 8 0 pftag 88 5 0 0 1 0 1 1 0 8 0 pfqueue 264 456 0 18 30 0 30 30 0 8 0 pfstitem 24 16 0 11 1 0 1 1 0 8 0 pfstkey 112 16 0 11 1 0 1 1 0 8 0 pfstate 328 16 0 11 2 0 2 2 0 8 0 pfsrctr 152 38 0 38 1 1 0 1 0 8 0 pfrule 1360 28 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 278 0 134 15 4 11 15 0 8 0 art_table 32 279 0 134 2 0 2 2 0 8 0 art_node 16 57 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 6 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 171 0 161 1 0 1 1 0 8 0 shmpl 112 52 0 27 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3514 0 2110 89 1 88 89 0 8 0 ffsino 272 3514 0 2110 94 0 94 94 0 8 0 nchpl 144 6011 0 4399 60 0 60 60 0 8 0 uvmvnodes 72 4543 0 0 83 0 83 83 0 8 0 vnodes 208 4543 0 0 240 0 240 240 0 8 0 namei 1024 16330 0 16330 4 3 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 vmpool 560 2 0 2 1 1 0 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 scxspl 192 17381 0 17381 9 8 1 7 0 8 1 plimitpl 152 47 0 39 1 0 1 1 0 8 0 sigapl 424 2250 0 2197 6 0 6 6 0 8 0 futexpl 56 15307 0 15306 4 3 1 1 0 8 0 knotepl 112 65 0 45 1 0 1 1 0 8 0 kqueuepl 144 37 0 35 1 0 1 1 0 8 0 pipepl 304 193 0 182 4 3 1 2 0 8 0 fdescpl 496 2214 0 2197 3 0 3 3 0 8 0 filepl 152 8020 0 7916 6 1 5 5 0 8 0 lockfpl 104 132 0 131 1 0 1 1 0 8 0 lockfspl 48 50 0 49 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 866 0 857 1 0 1 1 0 8 0 zombiepl 144 2197 0 2197 1 0 1 1 0 8 1 processpl 992 2250 0 2197 8 1 7 7 0 8 0 procpl 624 5470 0 5407 10 5 5 6 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 400 1421 0 1400 6 3 3 4 0 8 0 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 181 0 0 22 0 22 22 0 8 0 mtagpl 96 21 0 0 1 0 1 1 0 8 0 mbufpl 256 214 0 0 13 0 13 13 0 8 0 bufpl 280 5475 0 129 382 0 382 382 0 8 0 anonpl 16 181427 0 163481 92 18 74 90 0 124 0 amapchunkpl 152 10493 0 10203 32 20 12 26 0 158 0 amappl16 192 8409 0 7541 57 13 44 56 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 2 0 0 1 0 1 1 0 8 0 amappl13 168 1022 0 1017 1 0 1 1 0 8 0 amappl12 160 1018 0 1010 1 0 1 1 0 8 0 amappl11 152 53 0 38 1 0 1 1 0 8 0 amappl10 144 14 0 11 1 0 1 1 0 8 0 amappl9 136 1352 0 1349 1 0 1 1 0 8 0 amappl8 128 360 0 314 2 0 2 2 0 8 0 amappl7 120 115 0 104 1 0 1 1 0 8 0 amappl6 112 38 0 27 1 0 1 1 0 8 0 amappl5 104 2115 0 2096 1 0 1 1 0 8 0 amappl4 96 491 0 464 1 0 1 1 0 8 0 amappl3 88 158 0 150 1 0 1 1 0 8 0 amappl2 80 17755 0 17676 2 0 2 2 0 8 0 amappl1 72 66832 0 66348 22 11 11 18 0 8 0 amappl 80 5736 0 5653 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 54 0 27 1 0 1 1 0 8 0 uaddrrnd 24 2216 0 2199 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2216 0 2199 1 0 1 1 0 8 0 vmmpekpl 168 16834 0 16796 2 0 2 2 0 8 0 vmmpepl 168 275656 0 273432 122 24 98 116 0 357 1 vmsppl 368 2215 0 2199 2 0 2 2 0 8 0 pdppl 4096 4439 0 4398 6 0 6 6 0 8 0 pvpl 32 559142 0 537786 218 42 176 210 0 265 0 pmappl 232 2215 0 2199 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 281 0 24 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82721ff0) 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 end of kernel end trace frame: 0x7f7fffff7df0, count: 12 ddb{0}> trace x86_ipi_db(ffffffff82721ff0) 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 end of kernel end trace frame: 0x7f7fffff7df0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824aee90) at panic+0x164 sys/kern/subr_prf.c:218 ifa_update_broadaddr(ffff800000af6000,ffff800000b2e700,ffff8000241a9260) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff8000241a9250,ffff800000af6000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd8063eb6348,80206913,ffff8000241a9250,ffff800020e099d8) at ifioctl+0xe70 sys/net/if.c:2181 soo_ioctl(fffffd8067199be0,80206913,ffff8000241a9250,ffff800020e099d8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e099d8,ffff8000241a9368,ffff8000241a93b0) at sys_ioctl+0x4a5 syscall(ffff8000241a9430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000241a9430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3fe58eb7c60, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824aee90) at panic+0x164 sys/kern/subr_prf.c:218 ifa_update_broadaddr(ffff800000af6000,ffff800000b2e700,ffff8000241a9260) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff8000241a9250,ffff800000af6000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd8063eb6348,80206913,ffff8000241a9250,ffff800020e099d8) at ifioctl+0xe70 sys/net/if.c:2181 soo_ioctl(fffffd8067199be0,80206913,ffff8000241a9250,ffff800020e099d8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e099d8,ffff8000241a9368,ffff8000241a93b0) at sys_ioctl+0x4a5 syscall(ffff8000241a9430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000241a9430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3fe58eb7c60, count: -9