panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 372154 33000 0 0 0 0 syz-executor.0 *262952 23321 0 0 0x4000000 1K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a67000,ffff800000bea600,ffff800023bb5900) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800023bb58f0,ffff800000a67000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd806f6cd900,80206913,ffff800023bb58f0,ffff800020ab13d8) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab13d8,ffff800023bb5a08,ffff800023bb5a50) at sys_ioctl+0x5b9 syscall(ffff800023bb5ad0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb5ad0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,72030b33010) at Xsyscall+0x128 end of kernel end trace frame: 0x72296e15390, count: 7 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() at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a67000,ffff800000bea600,ffff800023bb5900) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800023bb58f0,ffff800000a67000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd806f6cd900,80206913,ffff800023bb58f0,ffff800020ab13d8) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab13d8,ffff800023bb5a08,ffff800023bb5a50) at sys_ioctl+0x5b9 syscall(ffff800023bb5ad0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb5ad0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,72030b33010) at Xsyscall+0x128 end of kernel end trace frame: 0x72296e15390, count: -8 ddb{1}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x17d8 __ALIGN_SIZE+0x7d8 rbp 0xffff800023bb5690 rbx 0xffff800023bb5740 rdx 0x17d9 __ALIGN_SIZE+0x7d9 rcx 0xffff800021f5e000 rax 0xffff800021f5e000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x825116ec67767cc r12 0x3000000008 r13 0xffff800023bb56a0 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bb5680 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=262952 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff82646fa0 process=0xffff800020a8a390 user=0xffff800023bb0000, vmspace=0xfffffd807f00a2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33000 372154 39371 0 7 0 syz-executor.0 33000 312102 39371 0 2 0x4000000 syz-executor.0 23321 39446 93385 0 2 0 syz-executor.1 *23321 262952 93385 0 7 0x4000000 syz-executor.1 93385 359327 9794 0 3 0x82 nanosleep syz-executor.1 39371 395233 9794 0 3 0x82 nanosleep syz-executor.0 16041 341733 0 0 3 0x14200 acct acct 41634 514408 1 0 3 0x100083 ttyin getty 80707 15582 0 0 3 0x14200 bored sosplice 9794 85413 83631 0 3 0x82 thrsleep syz-fuzzer 9794 490146 83631 0 3 0x4000082 nanosleep syz-fuzzer 9794 360915 83631 0 3 0x4000082 thrsleep syz-fuzzer 9794 8777 83631 0 3 0x4000082 thrsleep syz-fuzzer 9794 250875 83631 0 3 0x4000082 thrsleep syz-fuzzer 9794 271570 83631 0 3 0x4000082 kqread syz-fuzzer 9794 227921 83631 0 3 0x4000082 thrsleep syz-fuzzer 9794 318001 83631 0 3 0x4000082 thrsleep syz-fuzzer 9794 146031 83631 0 3 0x4000082 thrsleep syz-fuzzer 9794 483060 83631 0 3 0x4000082 thrsleep syz-fuzzer 83631 220806 20575 0 3 0x10008a pause ksh 20575 284741 25146 0 3 0x92 select sshd 25146 358599 1 0 3 0x80 select sshd 4712 297064 67786 74 3 0x100092 bpf pflogd 67786 5296 1 0 3 0x80 netio pflogd 85902 352963 12573 73 3 0x100090 kqread syslogd 12573 423181 1 0 3 0x100082 netio syslogd 30195 27558 0 0 2 0x14200 zerothread 2065 201059 0 0 3 0x14200 aiodoned aiodoned 86661 81490 0 0 3 0x14200 syncer update 64856 60140 0 0 3 0x14200 cleaner cleaner 72802 263881 0 0 3 0x14200 reaper reaper 9582 259625 0 0 3 0x14200 pgdaemon pagedaemon 55097 31920 0 0 3 0x14200 bored crynlk 30362 182755 0 0 3 0x14200 bored crypto 16366 301298 0 0 3 0x40014200 acpi0 acpi0 33146 265317 0 0 3 0x40014200 idle1 13778 140554 0 0 3 0x14200 bored softnet 54730 76562 0 0 3 0x14200 bored systqmp 2654 328417 0 0 3 0x14200 bored systq 87059 277319 0 0 3 0x40014200 bored softclock 90648 291485 0 0 3 0x40014200 idle0 91526 188596 0 0 3 0x14200 bored smr 1 120312 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 23321 (syz-executor.1) thread 0xffff800020ab13d8 (262952) exclusive rwlock netlock r = 0 (0xffffffff824d4548) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl+0x142 #2 ifioctl+0xb64 sys/net/if.c:2218 #3 sys_ioctl+0x5b9 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82677638) #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 9639 7052K 8601K 78643K 44265 0 0 pcb 13 12K 14K 78643K 3114 0 0 rtable 211 20K 20K 78643K 5386 0 0 ifaddr 140 38K 45K 78643K 2514 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2330 0 0 iov 0 0K 28K 78643K 3099 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 77K 78643K 14119 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 373 0 0 VM map 112 56K 56K 78643K 183 0 0 sem 12 0K 1K 78643K 7200 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 14446 0 0 sigio 0 0K 0K 78643K 219 0 0 proc 57 51K 95K 78643K 6071 0 0 subproc 32 2K 2K 78643K 1685 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 5927 0 0 in_multi 52 3K 4K 78643K 1872 0 0 ether_multi 1 0K 0K 78643K 163 0 0 mrt 0 0K 0K 78643K 88 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 2941 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 330 874K 874K 78643K 55326 0 0 UVM aobj 130 4K 4K 78643K 155 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 3238 0 0 NDP 27 0K 1K 78643K 812 0 0 temp 251 3561K 4207K 78643K 584191 0 0 kqueue 0 0K 0K 78643K 216 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 224 0 218 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1296 0 1296 26 25 1 1 0 8 1 rtentry 112 1502 0 1417 4 1 3 3 0 8 0 unpcb 120 8873 0 8855 15 14 1 2 0 8 0 syncache 264 68 0 68 37 37 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 46 0 46 22 22 0 1 0 8 0 tcpcb 544 10639 0 10635 150 149 1 15 0 8 0 inpcb 280 24490 0 24485 148 145 3 13 0 8 2 rttmr 72 29 0 29 15 14 1 1 0 8 1 ip6q 72 12 0 12 8 8 0 1 0 8 0 ip6af 40 32 0 32 8 8 0 1 0 8 0 nd6 48 249 0 247 7 6 1 1 0 8 0 pkpcb 40 100 0 100 31 31 0 1 0 8 0 swfcl 56 9 0 0 1 0 1 1 0 8 0 ppxss 1128 359 0 359 71 70 1 1 0 8 1 pffrag 232 399 0 399 58 58 0 1 0 482 0 pffrnode 88 399 0 399 58 58 0 1 0 8 0 pffrent 40 12579 0 12579 58 58 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 1167 0 1128 1 0 1 1 0 8 0 pfstkey 112 1169 0 1130 4 2 2 3 0 8 0 pfstate 328 1169 0 1130 15 9 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 12 0 6 10 4 6 8 0 8 0 art_heap4 256 6583 0 6286 88 66 22 23 0 8 0 art_table 32 6595 0 6292 3 0 3 3 0 8 0 art_node 16 1489 0 1432 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 19 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 7198 0 7188 1 0 1 1 0 8 0 shmpl 112 153 0 25 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 22912 0 21431 48 0 48 48 0 8 0 ffsino 272 22912 0 21431 100 1 99 99 0 8 0 nchpl 144 44765 0 44301 60 41 19 60 0 8 0 uvmvnodes 72 7951 0 0 145 0 145 145 0 8 0 vnodes 208 7951 0 0 419 0 419 419 0 8 0 namei 1024 161423 0 161423 7 6 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 111 0 1 14 0 14 14 0 8 0 vmpool 552 181 0 71 12 4 8 8 0 8 0 scsiplug 64 20 0 20 17 17 0 1 0 8 0 scxspl 192 152526 0 152526 109 108 1 7 0 8 1 plimitpl 152 1175 0 1168 1 0 1 1 0 8 0 sigapl 432 14354 0 14340 4 2 2 3 0 8 0 futexpl 56 411187 0 411187 4 3 1 1 0 8 1 knotepl 112 16421 0 16402 48 47 1 3 0 8 0 kqueuepl 104 26790 0 26780 29 28 1 4 0 8 0 pipepl 112 57880 0 57861 40 38 2 3 0 8 1 fdescpl 488 14355 0 14340 3 0 3 3 0 8 0 filepl 152 190132 0 190034 169 164 5 14 0 8 1 lockfpl 104 5244 0 5244 5 4 1 1 0 8 1 lockfspl 48 1660 0 1660 5 4 1 1 0 8 1 sessionpl 112 116 0 107 1 0 1 1 0 8 0 pgrppl 48 353 0 344 1 0 1 1 0 8 0 ucredpl 96 14900 0 14890 1 0 1 1 0 8 0 zombiepl 144 14343 0 14343 6 5 1 1 0 8 1 processpl 896 14375 0 14343 5 1 4 5 0 8 0 procpl 632 49271 0 49228 15 10 5 5 0 8 1 srpgc 64 176 0 176 53 52 1 1 0 8 1 sosppl 128 308 0 308 60 60 0 1 0 8 0 sockpl 384 35098 0 35075 211 206 5 21 0 8 1 mcl64k 65536 927 0 0 88 83 5 34 0 8 0 mcl16k 16384 42 0 0 5 2 3 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 3 1 2 2 0 8 0 mcl8k 8192 57 0 0 7 4 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 331 0 0 31 24 7 31 0 8 0 mtagpl 80 227 0 0 2 1 1 2 0 8 0 mbufpl 256 1609 0 0 34 5 29 31 0 8 0 bufpl 256 52124 0 44175 498 0 498 498 0 8 0 anonpl 16 1772969 0 1726259 616 402 214 218 0 124 11 amapchunkpl 152 112585 0 110627 235 158 77 79 0 158 0 amappl16 192 76080 0 74775 519 445 74 78 0 8 8 amappl15 184 3113 0 3112 1 0 1 1 0 8 0 amappl14 176 3243 0 3235 1 0 1 1 0 8 0 amappl13 168 2241 0 2237 14 13 1 1 0 8 0 amappl12 160 1014 0 1012 2 1 1 1 0 8 0 amappl11 152 1444 0 1436 1 0 1 1 0 8 0 amappl10 144 1917 0 1911 1 0 1 1 0 8 0 amappl9 136 3894 0 3889 1 0 1 1 0 8 0 amappl8 128 3488 0 3396 4 0 4 4 0 8 0 amappl7 120 2225 0 2217 1 0 1 1 0 8 0 amappl6 112 1263 0 1244 1 0 1 1 0 8 0 amappl5 104 1949 0 1938 1 0 1 1 0 8 0 amappl4 96 15853 0 15810 5 3 2 2 0 8 0 amappl3 88 3025 0 3007 1 0 1 1 0 8 0 amappl2 80 110814 0 110729 3 1 2 3 0 8 0 amappl1 72 338601 0 338177 25 15 10 20 0 8 0 amappl 80 51494 0 51385 4 1 3 3 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 154 0 25 3 0 3 3 0 8 0 uaddrrnd 24 14536 0 14340 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14536 0 14340 2 0 2 2 0 8 0 vmmpekpl 168 205405 0 205358 4 1 3 3 0 8 0 vmmpepl 168 1878005 0 1875220 1039 871 168 174 0 357 41 vmsppl 368 14354 0 14340 2 0 2 2 0 8 0 pdppl 4096 29079 0 28932 27 8 19 19 0 8 0 pvpl 32 4558327 0 4538398 932 716 216 238 0 265 11 pmappl 232 14535 0 14411 9 1 8 8 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1057 0 355 23 2 21 22 0 8 0