panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *296003 40347 0 0 0x4000000 1K syz-executor.1 15897 68824 0 0 0x4000000 0 syz-executor.0 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(ffff800000ade000,ffff800000adbe00,ffff800021ba5450) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800021ba5440,ffff800000ade000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd807e7d2e08,80206913,ffff800021ba5440,ffff800020acf658) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf658,ffff800021ba5558,ffff800021ba55a0) at sys_ioctl+0x5b9 syscall(ffff800021ba5620) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba5620) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,bf93da93010) at Xsyscall+0x128 end of kernel end trace frame: 0xbfb72146210, 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(ffff800000ade000,ffff800000adbe00,ffff800021ba5450) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800021ba5440,ffff800000ade000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd807e7d2e08,80206913,ffff800021ba5440,ffff800020acf658) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf658,ffff800021ba5558,ffff800021ba55a0) at sys_ioctl+0x5b9 syscall(ffff800021ba5620) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba5620) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,bf93da93010) at Xsyscall+0x128 end of kernel end trace frame: 0xbfb72146210, count: -8 ddb{1}> show registers rdi 0xffffffff815a92f7 db_enter+0x17 rsi 0x1bbe __ALIGN_SIZE+0xbbe rbp 0xffff800021ba51e0 rbx 0xffff800021ba5290 rdx 0x1bbf __ALIGN_SIZE+0xbbf rcx 0xffff8000225f2000 rax 0xffff8000225f2000 r8 0xffffffff821269af kprintf+0x16f r9 0x1 r10 0x25 r11 0x40da97cbf4a36778 r12 0x3000000008 r13 0xffff800021ba51f0 r14 0x100 r15 0x1 rip 0xffffffff815a92f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021ba51d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=296003 stat=onproc flags process=0 proc=4000000 pri=75, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf168,0xffff800020acf8e0 process=0xffff800020adca80 user=0xffff800021ba0000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40347 295044 58409 0 2 0 syz-executor.1 *40347 296003 58409 0 7 0x4000000 syz-executor.1 68824 5052 39722 0 2 0 syz-executor.0 68824 15897 39722 0 7 0x4000000 syz-executor.0 39722 23450 71339 0 3 0x82 nanosleep syz-executor.0 58409 271097 71339 0 3 0x82 nanosleep syz-executor.1 42920 135914 1 0 3 0x100083 ttyin getty 45395 245763 0 0 3 0x14200 acct acct 53605 202972 0 0 3 0x14200 bored sosplice 71339 250049 99240 0 3 0x82 thrsleep syz-fuzzer 71339 141442 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 88441 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 494480 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 101525 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 154455 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 172477 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 73985 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 259305 99240 0 3 0x4000082 thrsleep syz-fuzzer 71339 8226 99240 0 3 0x4000082 kqread syz-fuzzer 99240 93812 54193 0 3 0x10008a pause ksh 54193 416111 5296 0 3 0x92 select sshd 5296 352833 1 0 3 0x80 select sshd 2615 390681 72448 74 3 0x100092 bpf pflogd 72448 85698 1 0 3 0x80 netio pflogd 74740 423372 87466 73 3 0x100090 kqread syslogd 87466 404552 1 0 3 0x100082 netio syslogd 43390 3633 1 77 3 0x100090 poll dhclient 90770 290788 1 0 3 0x80 poll dhclient 82485 72965 0 0 2 0x14200 zerothread 91988 115170 0 0 3 0x14200 aiodoned aiodoned 4759 402243 0 0 3 0x14200 syncer update 35368 311528 0 0 3 0x14200 cleaner cleaner 12179 203232 0 0 3 0x14200 reaper reaper 83912 381009 0 0 3 0x14200 pgdaemon pagedaemon 39102 439038 0 0 3 0x14200 bored crynlk 79189 271563 0 0 3 0x14200 bored crypto 24990 355880 0 0 3 0x40014200 acpi0 acpi0 55940 176369 0 0 3 0x40014200 idle1 38761 391155 0 0 3 0x14200 bored softnet 64291 110416 0 0 3 0x14200 bored systqmp 80971 124062 0 0 3 0x14200 bored systq 80861 36443 0 0 3 0x40014200 bored softclock 76132 227825 0 0 3 0x40014200 idle0 56613 21133 0 0 3 0x14200 bored smr 1 51175 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 40347 (syz-executor.1) thread 0xffff800020acf658 (296003) exclusive rwlock netlock r = 0 (0xffffffff824895c8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl+0x142 #2 ifioctl+0xb64 sys/net/if.c:2202 #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 (0xffffffff82663580) #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 9592 6443K 8090K 78643K 15263 0 0 pcb 13 12K 14K 78643K 459 0 0 rtable 139 14K 15K 78643K 1356 0 0 ifaddr 91 18K 19K 78643K 400 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1611 0 0 iov 0 0K 16K 78643K 471 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 3051 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 24 0 0 VM map 22 11K 11K 78643K 38 0 0 sem 12 0K 1K 78643K 562 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2014 0 0 sigio 0 0K 0K 78643K 33 0 0 proc 61 63K 95K 78643K 1169 0 0 subproc 32 2K 2K 78643K 238 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 150 0 0 in_multi 33 2K 2K 78643K 328 0 0 ether_multi 1 0K 0K 78643K 26 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 626 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 161 186K 186K 78643K 8266 0 0 UVM aobj 130 6K 6K 78643K 133 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 482 0 0 NDP 21 0K 1K 78643K 128 0 0 temp 235 3565K 4204K 78643K 62425 0 0 kqueue 0 0K 0K 78643K 23 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 28 0 21 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 189 0 187 1 0 1 1 0 8 0 rtentry 112 257 0 205 2 0 2 2 0 8 0 unpcb 120 1190 0 1180 3 2 1 2 0 8 0 syncache 264 18 0 18 6 6 0 1 0 8 0 tcpqe 32 86 0 86 5 5 0 1 0 8 0 tcpcb 544 1120 0 1115 14 11 3 11 0 8 2 inpcb 280 9669 0 9654 27 24 3 13 0 8 1 rttmr 72 5 0 5 2 2 0 1 0 8 0 nd6 48 40 0 37 2 1 1 1 0 8 0 pkpcb 40 20 0 20 4 4 0 1 0 8 0 ppxss 1128 44 0 44 9 8 1 1 0 8 1 pffrag 232 54 0 54 6 5 1 1 0 482 1 pffrnode 88 54 0 54 6 5 1 1 0 8 1 pffrent 40 1402 0 1402 6 5 1 1 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 177 0 106 1 0 1 1 0 8 0 pfstkey 112 177 0 106 3 0 3 3 0 8 0 pfstate 328 177 0 106 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 4 4 2 2 4 0 8 0 art_heap4 256 1128 0 903 22 7 15 17 0 8 0 art_table 32 1134 0 907 3 1 2 3 0 8 0 art_node 16 254 0 211 1 0 1 1 0 8 0 sysvmsgpl 40 45 0 25 1 0 1 1 0 8 0 semapl 112 560 0 550 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4435 0 3026 46 0 46 46 0 8 0 ffsino 272 4435 0 3026 95 0 95 95 0 8 0 nchpl 144 7506 0 5901 61 0 61 61 0 8 0 uvmvnodes 72 5838 0 0 107 0 107 107 0 8 0 vnodes 208 5838 0 0 308 0 308 308 0 8 0 namei 1024 25162 0 25162 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 21 0 1 3 0 3 3 0 8 0 vmpool 552 36 0 16 2 0 2 2 0 8 0 scsiplug 64 8 0 8 4 4 0 1 0 8 0 scxspl 192 25284 0 25284 19 18 1 7 0 8 1 plimitpl 152 194 0 186 1 0 1 1 0 8 0 sigapl 432 2179 0 2163 3 1 2 3 0 8 0 futexpl 56 57640 0 57640 1 0 1 1 0 8 1 knotepl 112 604 0 585 4 1 3 3 0 8 2 kqueuepl 104 825 0 823 4 3 1 4 0 8 0 pipepl 112 2514 0 2495 7 5 2 2 0 8 1 fdescpl 488 2180 0 2163 3 0 3 3 0 8 0 filepl 152 24536 0 24429 27 20 7 14 0 8 2 lockfpl 104 673 0 672 1 0 1 1 0 8 0 lockfspl 48 247 0 246 1 0 1 1 0 8 0 sessionpl 112 33 0 22 1 0 1 1 0 8 0 pgrppl 48 60 0 49 1 0 1 1 0 8 0 ucredpl 96 2210 0 2201 1 0 1 1 0 8 0 zombiepl 144 2163 0 2163 1 0 1 1 0 8 1 processpl 896 2197 0 2163 5 1 4 5 0 8 0 procpl 632 6787 0 6742 5 0 5 5 0 8 0 srpgc 64 20 0 20 6 6 0 1 0 8 0 sosppl 128 44 0 44 6 6 0 1 0 8 0 sockpl 384 11112 0 11086 39 33 6 21 0 8 3 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 22 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 14 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 177 0 0 22 2 20 22 0 8 0 mtagpl 80 28 0 0 1 0 1 1 0 8 0 mbufpl 256 678 0 0 35 0 35 35 0 8 0 bufpl 256 16538 0 9480 442 0 442 442 0 8 0 anonpl 16 285196 0 264888 139 50 89 106 0 124 2 amapchunkpl 152 16398 0 16236 32 24 8 14 0 158 0 amappl16 192 11560 0 10402 120 54 66 71 0 8 8 amappl15 184 1048 0 1048 1 1 0 1 0 8 0 amappl14 176 232 0 223 1 0 1 1 0 8 0 amappl13 168 177 0 175 3 2 1 1 0 8 0 amappl12 160 87 0 87 2 2 0 1 0 8 0 amappl11 152 243 0 227 1 0 1 1 0 8 0 amappl10 144 479 0 472 1 0 1 1 0 8 0 amappl9 136 843 0 838 1 0 1 1 0 8 0 amappl8 128 418 0 371 2 0 2 2 0 8 0 amappl7 120 553 0 546 1 0 1 1 0 8 0 amappl6 112 220 0 208 1 0 1 1 0 8 0 amappl5 104 344 0 328 1 0 1 1 0 8 0 amappl4 96 2538 0 2506 1 0 1 1 0 8 0 amappl3 88 378 0 372 1 0 1 1 0 8 0 amappl2 80 16397 0 16311 3 1 2 3 0 8 0 amappl1 72 59008 0 58555 25 15 10 20 0 8 0 amappl 80 7293 0 7233 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 2216 0 2163 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2216 0 2163 1 0 1 1 0 8 0 vmmpekpl 168 23594 0 23554 3 0 3 3 0 8 0 vmmpepl 168 287002 0 284528 226 77 149 153 0 357 39 vmsppl 368 2179 0 2163 2 0 2 2 0 8 0 pdppl 4096 4439 0 4378 8 0 8 8 0 8 0 pvpl 32 763591 0 740185 277 71 206 248 0 265 9 pmappl 232 2215 0 2179 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 659 0 25 20 1 19 19 0 8 0