panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 334512 84056 0 0 0 0 syz-executor.0 *400892 84056 0 0 0x4000000 1K 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(ffff800000a9d800,ffff800000ad4d00,ffff800022d82df0) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800022d82de0,ffff800000a9d800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8008232038,80206913,ffff800022d82de0,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0290,ffff800022d82ef8,ffff800022d82f40) at sys_ioctl+0x5b9 syscall(ffff800022d82fc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d82fc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,7588a073010) at Xsyscall+0x128 end of kernel end trace frame: 0x75aa3cf5bc0, 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(ffff800000a9d800,ffff800000ad4d00,ffff800022d82df0) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800022d82de0,ffff800000a9d800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8008232038,80206913,ffff800022d82de0,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0290,ffff800022d82ef8,ffff800022d82f40) at sys_ioctl+0x5b9 syscall(ffff800022d82fc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d82fc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,7588a073010) at Xsyscall+0x128 end of kernel end trace frame: 0x75aa3cf5bc0, count: -8 ddb{1}> show registers rdi 0xffffffff819f8947 db_enter+0x17 rsi 0x15e9 __ALIGN_SIZE+0x5e9 rbp 0xffff800022d82b80 rbx 0xffff800022d82c30 rdx 0x15ea __ALIGN_SIZE+0x5ea rcx 0xffff800021d64000 rax 0xffff800021d64000 r8 0xffffffff81b887df kprintf+0x16f r9 0x1 r10 0x25 r11 0x388d6016746331f1 r12 0x3000000008 r13 0xffff800022d82b90 r14 0x100 r15 0x1 rip 0xffffffff819f8948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d82b70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=400892 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff826269b8 process=0xffff800020addc00 user=0xffff800022d7e000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84056 334512 67952 0 7 0 syz-executor.0 *84056 400892 67952 0 7 0x4000000 syz-executor.0 76865 86520 29212 0 2 0 syz-executor.1 76865 245409 29212 0 3 0x4000080 kqread syz-executor.1 76865 19438 29212 0 2 0x4000000 syz-executor.1 91998 506518 1 0 3 0x100083 ttyin getty 67952 498323 40627 0 3 0x82 nanosleep syz-executor.0 13966 126540 0 0 3 0x14200 bored sosplice 29212 282453 40627 0 3 0x82 nanosleep syz-executor.1 40627 343772 74021 0 3 0x82 thrsleep syz-fuzzer 40627 243472 74021 0 3 0x4000082 nanosleep syz-fuzzer 40627 15816 74021 0 3 0x4000082 thrsleep syz-fuzzer 40627 292530 74021 0 3 0x4000082 thrsleep syz-fuzzer 40627 68935 74021 0 3 0x4000082 thrsleep syz-fuzzer 40627 450187 74021 0 3 0x4000082 thrsleep syz-fuzzer 40627 475714 74021 0 3 0x4000082 thrsleep syz-fuzzer 40627 401442 74021 0 3 0x4000082 thrsleep syz-fuzzer 40627 357672 74021 0 3 0x4000082 thrsleep syz-fuzzer 40627 110300 74021 0 3 0x4000082 kqread syz-fuzzer 74021 43803 12680 0 3 0x10008a pause ksh 12680 513969 6459 0 3 0x92 select sshd 6459 69678 1 0 3 0x80 select sshd 59571 310142 19396 74 3 0x100092 bpf pflogd 19396 43503 1 0 3 0x80 netio pflogd 76035 83399 41925 73 3 0x100090 kqread syslogd 41925 218149 1 0 3 0x100082 netio syslogd 63150 166939 1 77 3 0x100090 poll dhclient 49586 260932 1 0 3 0x80 poll dhclient 77987 333778 0 0 2 0x14200 zerothread 96895 457391 0 0 3 0x14200 aiodoned aiodoned 49176 262083 0 0 3 0x14200 syncer update 94342 451369 0 0 3 0x14200 cleaner cleaner 31256 193191 0 0 3 0x14200 reaper reaper 35954 387853 0 0 3 0x14200 pgdaemon pagedaemon 89524 489149 0 0 3 0x14200 bored crynlk 5755 251740 0 0 3 0x14200 bored crypto 82293 253240 0 0 3 0x40014200 acpi0 acpi0 53253 306027 0 0 3 0x40014200 idle1 10270 401351 0 0 3 0x14200 bored softnet 33879 384560 0 0 3 0x14200 bored systqmp 70556 325109 0 0 3 0x14200 bored systq 2793 8867 0 0 3 0x40014200 bored softclock 10143 301149 0 0 3 0x40014200 idle0 93178 325705 0 0 3 0x14200 bored smr 1 109622 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 84056 (syz-executor.0) thread 0xffff800020ab0290 (400892) exclusive rwlock netlock r = 0 (0xffffffff8246c3e8) #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 (0xffffffff82674a48) #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 9550 6425K 7497K 78643K 12204 0 0 pcb 13 10K 12K 78643K 270 0 0 rtable 90 12K 12K 78643K 660 0 0 ifaddr 67 14K 14K 78643K 170 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1517 0 0 iov 0 0K 28K 78643K 144 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 77K 78643K 1834 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 7 0 0 VM map 8 4K 4K 78643K 12 0 0 sem 11 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 705 0 0 sigio 0 0K 0K 78643K 13 0 0 proc 61 63K 95K 78643K 685 0 0 subproc 32 2K 2K 78643K 102 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 326 0 0 in_multi 18 1K 2K 78643K 135 0 0 ether_multi 1 0K 0K 78643K 12 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 335 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 133 71K 72K 78643K 4008 0 0 UVM aobj 63 3K 3K 78643K 68 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 2K 78643K 178 0 0 NDP 16 0K 0K 78643K 53 0 0 temp 199 3560K 3638K 78643K 40271 0 0 kqueue 0 0K 0K 78643K 2 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 21 0 19 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 797 0 794 1 0 1 1 0 8 0 rtentry 112 116 0 86 2 0 2 2 0 8 0 unpcb 120 429 0 419 2 1 1 2 0 8 0 syncache 264 7 0 7 3 2 1 1 0 8 1 tcpqe 32 192 0 192 1 1 0 1 0 8 0 tcpcb 544 816 0 811 4 2 2 2 0 8 1 inpcb 280 1766 0 1756 18 15 3 13 0 8 2 nd6 48 15 0 14 2 1 1 1 0 8 0 ppxss 1128 14 0 14 5 5 0 1 0 8 0 pffrag 232 18 0 18 6 6 0 1 0 482 0 pffrnode 88 18 0 18 6 6 0 1 0 8 0 pffrent 40 661 0 661 6 6 0 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 pfstitem 24 88 0 50 1 0 1 1 0 8 0 pfstkey 112 88 0 50 2 0 2 2 0 8 0 pfstate 328 88 0 50 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 0 3 3 0 8 1 art_heap4 256 536 0 365 19 5 14 15 0 8 0 art_table 32 539 0 366 2 0 2 2 0 8 0 art_node 16 115 0 87 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 29 1 0 1 1 0 8 0 semupl 112 4 0 4 2 2 0 1 0 8 0 semapl 112 10 0 1 1 0 1 1 0 8 0 shmpl 112 66 0 5 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2462 0 1059 46 0 46 46 0 8 0 ffsino 272 2462 0 1059 95 0 95 95 0 8 0 nchpl 144 3714 0 2111 60 0 60 60 0 8 0 uvmvnodes 72 2952 0 0 54 0 54 54 0 8 0 vnodes 208 2952 0 0 156 0 156 156 0 8 0 namei 1024 11665 0 11665 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 552 10 0 4 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 13182 0 13182 12 11 1 6 0 8 1 plimitpl 152 87 0 79 1 0 1 1 0 8 0 sigapl 432 893 0 877 3 1 2 3 0 8 0 futexpl 56 18109 0 18109 1 0 1 1 0 8 1 knotepl 112 538 0 519 1 0 1 1 0 8 0 kqueuepl 104 857 0 854 1 0 1 1 0 8 0 pipepl 112 806 0 787 2 1 1 2 0 8 0 fdescpl 488 894 0 877 3 0 3 3 0 8 0 filepl 152 8986 0 8881 18 12 6 13 0 8 1 lockfpl 104 267 0 266 1 0 1 1 0 8 0 lockfspl 48 96 0 95 1 0 1 1 0 8 0 sessionpl 112 24 0 13 1 0 1 1 0 8 0 pgrppl 48 38 0 27 1 0 1 1 0 8 0 ucredpl 96 804 0 795 1 0 1 1 0 8 0 zombiepl 144 877 0 877 1 0 1 1 0 8 1 processpl 896 910 0 877 4 0 4 4 0 8 0 procpl 632 3010 0 2965 5 0 5 5 0 8 0 srpgc 64 10 0 10 5 5 0 1 0 8 0 sosppl 128 27 0 27 4 4 0 1 0 8 0 sockpl 384 3035 0 3012 30 24 6 22 0 8 3 mcl64k 65536 265 0 0 34 8 26 34 0 8 1 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 21 1 20 21 0 8 0 mtagpl 80 25 0 0 1 0 1 1 0 8 0 mbufpl 256 537 0 0 29 0 29 29 0 8 0 bufpl 256 8512 0 1454 442 0 442 442 0 8 0 anonpl 16 122657 0 102809 125 44 81 104 0 124 0 amapchunkpl 152 7513 0 7356 28 20 8 21 0 158 0 amappl16 192 4761 0 3671 88 32 56 73 0 8 0 amappl15 184 48 0 47 1 0 1 1 0 8 0 amappl14 176 536 0 530 1 0 1 1 0 8 0 amappl13 168 82 0 80 1 0 1 1 0 8 0 amappl12 160 10 0 9 1 0 1 1 0 8 0 amappl11 152 115 0 100 1 0 1 1 0 8 0 amappl10 144 17 0 11 1 0 1 1 0 8 0 amappl9 136 662 0 657 1 0 1 1 0 8 0 amappl8 128 237 0 201 2 0 2 2 0 8 0 amappl7 120 58 0 49 1 0 1 1 0 8 0 amappl6 112 114 0 97 1 0 1 1 0 8 0 amappl5 104 170 0 156 1 0 1 1 0 8 0 amappl4 96 924 0 892 1 0 1 1 0 8 0 amappl3 88 905 0 895 1 0 1 1 0 8 0 amappl2 80 5872 0 5790 3 0 3 3 0 8 0 amappl1 72 30501 0 30047 25 15 10 20 0 8 0 amappl 80 3332 0 3280 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 67 0 5 1 0 1 1 0 8 0 uaddrrnd 24 904 0 877 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 904 0 877 1 0 1 1 0 8 0 vmmpekpl 168 12940 0 12905 2 0 2 2 0 8 0 vmmpepl 168 125236 0 122862 207 81 126 146 0 357 21 vmsppl 368 893 0 877 2 0 2 2 0 8 0 pdppl 4096 1815 0 1768 6 0 6 6 0 8 0 pvpl 32 373627 0 350473 281 77 204 239 0 265 15 pmappl 232 903 0 881 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 669 0 19 19 0 19 19 0 8 0