panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *379409 35733 0 0 0x4000000 1K syz-executor.0 369757 62689 0 0x2 0 0 syz-fuzzer 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(ffff800000b1f800,ffff800000bcfc00,ffff800022b79c20) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800022b79c10,ffff800000b1f800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8077818c88,80206913,ffff800022b79c10,ffff800020acfb50) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020acfb50,ffff800022b79d28,ffff800022b79d70) at sys_ioctl+0x5b9 syscall(ffff800022b79df0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b79df0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,352dfa6f010) at Xsyscall+0x128 end of kernel end trace frame: 0x3557ddefa50, 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(ffff800000b1f800,ffff800000bcfc00,ffff800022b79c20) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800022b79c10,ffff800000b1f800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8077818c88,80206913,ffff800022b79c10,ffff800020acfb50) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020acfb50,ffff800022b79d28,ffff800022b79d70) at sys_ioctl+0x5b9 syscall(ffff800022b79df0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b79df0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,352dfa6f010) at Xsyscall+0x128 end of kernel end trace frame: 0x3557ddefa50, count: -8 ddb{1}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x1c3f __ALIGN_SIZE+0xc3f rbp 0xffff800022b799b0 rbx 0xffff800022b79a60 rdx 0x1c40 __ALIGN_SIZE+0xc40 rcx 0xffff800020d52000 rax 0xffff800020d52000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x9da0db275e6e6e26 r12 0x3000000008 r13 0xffff800022b799c0 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b799a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=379409 stat=onproc flags process=0 proc=4000000 pri=70, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace790,0xffffffff82646fa0 process=0xffff800020adca80 user=0xffff800022b74000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35733 143601 39799 0 2 0 syz-executor.0 *35733 379409 39799 0 7 0x4000000 syz-executor.0 64845 424066 62689 0 2 0x2 syz-executor.1 39799 342360 62689 0 3 0x82 nanosleep syz-executor.0 9741 30751 1 0 3 0x100083 ttyin getty 18562 209285 0 0 3 0x14200 bored sosplice 62689 369757 76606 0 7 0x2 syz-fuzzer 62689 451083 76606 0 3 0x4000082 nanosleep syz-fuzzer 62689 277688 76606 0 3 0x4000082 thrsleep syz-fuzzer 62689 298374 76606 0 3 0x4000082 thrsleep syz-fuzzer 62689 66136 76606 0 3 0x4000082 thrsleep syz-fuzzer 62689 223841 76606 0 3 0x4000082 thrsleep syz-fuzzer 62689 316746 76606 0 3 0x4000082 thrsleep syz-fuzzer 62689 340285 76606 0 3 0x4000082 nanosleep syz-fuzzer 62689 292070 76606 0 3 0x4000082 thrsleep syz-fuzzer 62689 340590 76606 0 3 0x4000082 thrsleep syz-fuzzer 76606 173913 82175 0 3 0x10008a pause ksh 82175 284469 53106 0 3 0x92 select sshd 53106 157584 1 0 3 0x80 select sshd 60116 436756 14850 74 3 0x100092 bpf pflogd 14850 245204 1 0 3 0x80 netio pflogd 33848 86755 11140 73 3 0x100090 kqread syslogd 11140 271175 1 0 3 0x100082 netio syslogd 88825 233513 1 77 3 0x100090 poll dhclient 39699 304595 1 0 3 0x80 poll dhclient 60718 205817 0 0 3 0x14200 pgzero zerothread 56383 6330 0 0 3 0x14200 aiodoned aiodoned 33137 189934 0 0 3 0x14200 syncer update 14548 391143 0 0 3 0x14200 cleaner cleaner 49035 100664 0 0 3 0x14200 reaper reaper 69934 166124 0 0 3 0x14200 pgdaemon pagedaemon 7836 122450 0 0 3 0x14200 bored crynlk 19674 202941 0 0 3 0x14200 bored crypto 1803 245172 0 0 3 0x40014200 acpi0 acpi0 10971 266552 0 0 3 0x40014200 idle1 47298 323147 0 0 3 0x14200 bored softnet 35210 423303 0 0 3 0x14200 bored systqmp 35343 112262 0 0 3 0x14200 bored systq 94626 483509 0 0 3 0x40014200 bored softclock 83085 186717 0 0 3 0x40014200 idle0 44695 133589 0 0 3 0x14200 bored smr 1 77840 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 35733 (syz-executor.0) thread 0xffff800020acfb50 (379409) 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 9613 6477K 8916K 78643K 56663 0 0 pcb 13 12K 14K 78643K 1948 0 0 rtable 183 17K 18K 78643K 7341 0 0 ifaddr 114 29K 30K 78643K 1701 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1896 0 0 iov 0 0K 32K 78643K 2372 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 14815 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 119 0 0 VM map 80 40K 40K 78643K 113 0 0 sem 12 0K 0K 78643K 1944 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 8238 0 0 sigio 0 0K 0K 78643K 62 0 0 proc 62 63K 95K 78643K 3352 0 0 subproc 32 2K 2K 78643K 871 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 764 0 0 in_multi 46 3K 3K 78643K 977 0 0 ether_multi 1 0K 0K 78643K 87 0 0 mrt 1 0K 0K 78643K 43 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 1724 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 268 621K 621K 78643K 29818 0 0 UVM aobj 130 6K 6K 78643K 138 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 1864 0 0 NDP 23 0K 1K 78643K 523 0 0 temp 228 3561K 4201K 78643K 355336 0 0 kqueue 0 0K 0K 78643K 76 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 142 0 136 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 3447 0 3445 1 0 1 1 0 8 0 rtentry 112 817 0 743 3 0 3 3 0 8 0 unpcb 120 8673 0 8653 26 25 1 3 0 8 0 syncache 264 40 0 40 17 17 0 1 0 8 0 tcpqe 32 112 0 112 11 11 0 1 0 8 0 tcpcb 544 3798 0 3793 42 41 1 12 0 8 0 inpcb 280 12651 0 12642 70 68 2 13 0 8 0 rttmr 72 17 0 16 8 7 1 1 0 8 0 ip6q 72 10 0 10 5 5 0 1 0 8 0 ip6af 40 26 0 26 5 5 0 1 0 8 0 nd6 48 128 0 125 4 3 1 1 0 8 0 pkpcb 40 51 0 51 11 11 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 238 0 238 12 11 1 1 0 8 1 pffrag 232 207 0 207 20 19 1 1 0 482 1 pffrnode 88 207 0 207 20 19 1 1 0 8 1 pffrent 40 6769 0 6769 20 19 1 1 0 8 1 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 674 0 629 1 0 1 1 0 8 0 pfstkey 112 674 0 629 3 0 3 3 0 8 0 pfstate 328 674 0 629 11 5 6 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 9 0 1 9 1 8 8 0 8 0 art_heap4 256 3557 0 3223 49 28 21 24 0 8 0 art_table 32 3566 0 3224 4 1 3 4 0 8 0 art_node 16 808 0 749 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 3 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1940 0 1930 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13941 0 12486 48 0 48 48 0 8 0 ffsino 272 13941 0 12486 98 0 98 98 0 8 0 nchpl 144 27241 0 26788 60 41 19 60 0 8 0 uvmvnodes 72 6505 0 0 119 0 119 119 0 8 0 vnodes 208 6505 0 0 343 0 343 343 0 8 0 namei 1024 101862 0 101862 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 78 0 0 10 0 10 10 0 8 0 vmpool 552 111 0 33 8 2 6 6 0 8 0 scsiplug 64 10 0 10 9 9 0 1 0 8 0 scxspl 192 89770 0 89770 54 52 2 7 0 8 2 plimitpl 152 703 0 695 1 0 1 1 0 8 0 sigapl 432 8295 0 8280 4 2 2 3 0 8 0 futexpl 56 205380 0 205380 2 1 1 1 0 8 1 knotepl 112 1751 0 1732 9 8 1 3 0 8 0 kqueuepl 104 2542 0 2540 7 6 1 4 0 8 0 pipepl 112 7338 0 7319 26 24 2 2 0 8 1 fdescpl 488 8296 0 8280 3 0 3 3 0 8 0 filepl 152 84497 0 84396 71 65 6 14 0 8 2 lockfpl 104 3211 0 3210 1 0 1 1 0 8 0 lockfspl 48 1040 0 1039 1 0 1 1 0 8 0 sessionpl 112 73 0 62 1 0 1 1 0 8 0 pgrppl 48 213 0 202 1 0 1 1 0 8 0 ucredpl 96 9277 0 9268 1 0 1 1 0 8 0 zombiepl 144 8284 0 8284 3 2 1 1 0 8 1 processpl 896 8316 0 8284 5 1 4 5 0 8 0 procpl 632 26217 0 26175 6 1 5 5 0 8 0 srpgc 64 94 0 94 26 26 0 1 0 8 0 sosppl 128 241 0 241 26 26 0 1 0 8 0 sockpl 384 24970 0 24939 115 110 5 22 0 8 0 mcl64k 65536 513 0 0 64 32 32 34 0 8 1 mcl16k 16384 42 0 0 5 3 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 43 0 0 5 2 3 3 0 8 0 mcl4k 4096 48 0 0 4 2 2 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 212 0 0 23 5 18 23 0 8 1 mtagpl 80 122 0 0 1 0 1 1 0 8 0 mbufpl 256 871 0 0 51 0 51 51 0 8 0 bufpl 256 32917 0 25859 442 0 442 442 0 8 0 anonpl 16 1017774 0 995911 287 182 105 114 0 124 9 amapchunkpl 152 61308 0 61154 120 112 8 20 0 158 1 amappl16 192 43540 0 42218 286 207 79 80 0 8 11 amappl15 184 2694 0 2692 7 6 1 1 0 8 0 amappl14 176 1619 0 1613 1 0 1 1 0 8 0 amappl13 168 1310 0 1310 9 9 0 1 0 8 0 amappl12 160 1026 0 1021 1 0 1 1 0 8 0 amappl11 152 1649 0 1634 1 0 1 1 0 8 0 amappl10 144 269 0 262 1 0 1 1 0 8 0 amappl9 136 1681 0 1678 1 0 1 1 0 8 0 amappl8 128 1345 0 1265 3 0 3 3 0 8 0 amappl7 120 500 0 490 1 0 1 1 0 8 0 amappl6 112 1517 0 1501 1 0 1 1 0 8 0 amappl5 104 1569 0 1553 1 0 1 1 0 8 0 amappl4 96 8225 0 8187 2 1 1 2 0 8 0 amappl3 88 1629 0 1616 1 0 1 1 0 8 0 amappl2 80 65401 0 65322 3 1 2 3 0 8 0 amappl1 72 195232 0 194790 25 15 10 20 0 8 0 amappl 80 27488 0 27402 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 8407 0 8280 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8407 0 8280 1 0 1 1 0 8 0 vmmpekpl 168 69362 0 69317 5 2 3 3 0 8 0 vmmpepl 168 1066355 0 1063651 382 215 167 167 0 357 39 vmsppl 368 8295 0 8280 2 0 2 2 0 8 0 pdppl 4096 16821 0 16704 19 4 15 15 0 8 0 pvpl 32 2616175 0 2593144 525 299 226 257 0 265 28 pmappl 232 8406 0 8313 7 1 6 6 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 822 0 122 21 0 21 21 0 8 0