panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 442726 52966 0 0 0 1 syz-executor.1 *253381 52966 0 0 0x4000000 0K 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(ffff800000a98000,ffff800000ae7300,ffff800023b87580) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800023b87570,ffff800000a98000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8062235318,80206913,ffff800023b87570,ffff800020ab09f8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab09f8,ffff800023b87688,ffff800023b876d0) at sys_ioctl+0x5b9 syscall(ffff800023b87750) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b87750) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,1fb84201010) at Xsyscall+0x128 end of kernel end trace frame: 0x1fdccaaf930, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic ifa_update_broadaddr does not support dynamic length ddb{0}> 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(ffff800000a98000,ffff800000ae7300,ffff800023b87580) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800023b87570,ffff800000a98000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8062235318,80206913,ffff800023b87570,ffff800020ab09f8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab09f8,ffff800023b87688,ffff800023b876d0) at sys_ioctl+0x5b9 syscall(ffff800023b87750) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b87750) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,1fb84201010) at Xsyscall+0x128 end of kernel end trace frame: 0x1fdccaaf930, count: -8 ddb{0}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x160e __ALIGN_SIZE+0x60e rbp 0xffff800023b87310 rbx 0xffff800023b873c0 rdx 0x160f __ALIGN_SIZE+0x60f rcx 0xffff800022d82000 rax 0xffff800022d82000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x9ccdd9adbf110564 r12 0x3000000008 r13 0xffff800023b87320 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b87300 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=253381 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffffffff8265b7c8 process=0xffff800020adc700 user=0xffff800023b82000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 52966 442726 58214 0 7 0 syz-executor.1 *52966 253381 58214 0 7 0x4000000 syz-executor.1 58214 105569 34656 0 3 0x82 nanosleep syz-executor.1 15442 96508 0 0 3 0x14200 bored sosplice 54162 170079 34656 0 3 0x82 nanosleep syz-executor.0 34656 468465 28073 0 3 0x82 thrsleep syz-fuzzer 34656 347446 28073 0 3 0x4000082 nanosleep syz-fuzzer 34656 436661 28073 0 3 0x4000082 thrsleep syz-fuzzer 34656 186858 28073 0 3 0x4000082 thrsleep syz-fuzzer 34656 260181 28073 0 3 0x4000082 thrsleep syz-fuzzer 34656 28457 28073 0 3 0x4000082 thrsleep syz-fuzzer 34656 332847 28073 0 3 0x4000082 thrsleep syz-fuzzer 34656 466834 28073 0 3 0x4000082 thrsleep syz-fuzzer 34656 261182 28073 0 3 0x4000082 thrsleep syz-fuzzer 34656 138877 28073 0 3 0x4000082 kqread syz-fuzzer 34656 355033 28073 0 3 0x4000082 thrsleep syz-fuzzer 28073 34975 73894 0 3 0x10008a pause ksh 73894 69061 10879 0 3 0x92 select sshd 11923 365547 1 0 3 0x100083 ttyin getty 10879 308894 1 0 3 0x80 select sshd 76543 79555 56801 74 3 0x100092 bpf pflogd 56801 403010 1 0 3 0x80 netio pflogd 30188 354980 67118 73 3 0x100090 kqread syslogd 67118 493967 1 0 3 0x100082 netio syslogd 25659 333108 1 77 3 0x100090 poll dhclient 38643 178867 1 0 3 0x80 poll dhclient 68340 245749 0 0 3 0x14200 pgzero zerothread 47434 360716 0 0 3 0x14200 aiodoned aiodoned 47537 211927 0 0 3 0x14200 syncer update 40288 45947 0 0 3 0x14200 cleaner cleaner 64689 428589 0 0 3 0x14200 reaper reaper 63693 104875 0 0 3 0x14200 pgdaemon pagedaemon 60127 331626 0 0 3 0x14200 bored crynlk 38413 54078 0 0 3 0x14200 bored crypto 56139 491074 0 0 3 0x40014200 acpi0 acpi0 17550 440536 0 0 3 0x40014200 idle1 38529 443134 0 0 3 0x14200 bored softnet 18711 229165 0 0 3 0x14200 bored systqmp 53048 486754 0 0 3 0x14200 bored systq 11113 196941 0 0 3 0x40014200 bored softclock 70262 436384 0 0 3 0x40014200 idle0 95833 481200 0 0 3 0x14200 bored smr 1 234020 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 52966 (syz-executor.1) thread 0xffff800020ab09f8 (253381) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (0xffffffff82648ec0) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9493 6397K 6784K 78643K 10842 0 0 pcb 13 8K 8K 78643K 53 0 0 rtable 107 12K 12K 78643K 306 0 0 ifaddr 48 11K 11K 78643K 67 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1480 0 0 iov 0 0K 16K 78643K 65 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 1324 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 4 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 26 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 148 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 60 63K 95K 78643K 496 0 0 subproc 32 2K 2K 78643K 51 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 73 0 0 in_multi 29 1K 2K 78643K 52 0 0 ether_multi 1 0K 0K 78643K 3 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 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 228 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 116 22K 26K 78643K 1418 0 0 UVM aobj 14 2K 2K 78643K 14 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 26 0 0 NDP 11 0K 0K 78643K 19 0 0 temp 124 3548K 3615K 78643K 5388 0 0 kqueue 0 0K 0K 78643K 2 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 12 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 39 0 37 1 0 1 1 0 8 0 rtentry 112 63 0 21 2 0 2 2 0 8 0 unpcb 120 117 0 106 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 10 0 10 1 1 0 1 0 8 0 tcpcb 544 278 0 274 5 0 5 5 0 8 4 inpcb 280 406 0 395 6 0 6 6 0 8 5 nd6 48 6 0 3 1 0 1 1 0 8 0 pkpcb 40 8 0 8 1 0 1 1 0 8 1 ppxss 1128 1 0 1 1 0 1 1 0 8 1 pffrag 232 7 0 5 1 0 1 1 0 482 0 pffrnode 88 6 0 5 1 0 1 1 0 8 0 pffrent 40 250 0 220 1 0 1 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 28 0 0 1 0 1 1 0 8 0 pfstkey 112 28 0 0 1 0 1 1 0 8 0 pfstate 328 28 0 0 3 0 3 3 0 8 0 pfrule 1360 21 0 16 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 67 14 0 14 14 0 8 0 art_table 32 279 0 67 2 0 2 2 0 8 0 art_node 16 62 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1597 0 188 46 0 46 46 0 8 0 ffsino 272 1597 0 188 95 0 95 95 0 8 0 nchpl 144 2017 0 420 60 0 60 60 0 8 0 uvmvnodes 72 1717 0 0 32 0 32 32 0 8 0 vnodes 208 1717 0 0 91 0 91 91 0 8 0 namei 1024 5856 0 5856 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 5654 0 5654 4 1 3 3 0 8 3 plimitpl 152 26 0 18 1 0 1 1 0 8 0 sigapl 432 343 0 328 3 0 3 3 0 8 1 futexpl 56 3536 0 3536 1 0 1 1 0 8 1 knotepl 112 86 0 67 1 0 1 1 0 8 0 kqueuepl 104 32 0 30 1 0 1 1 0 8 0 pipepl 112 208 0 189 1 0 1 1 0 8 0 fdescpl 488 344 0 328 3 0 3 3 0 8 0 filepl 152 2640 0 2539 8 0 8 8 0 8 4 lockfpl 104 46 0 45 1 0 1 1 0 8 0 lockfspl 48 13 0 12 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 60 0 49 1 0 1 1 0 8 0 ucredpl 96 455 0 446 1 0 1 1 0 8 0 zombiepl 144 328 0 327 1 0 1 1 0 8 0 processpl 896 360 0 327 4 0 4 4 0 8 0 procpl 632 602 0 558 5 0 5 5 0 8 1 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 384 576 0 555 9 0 9 9 0 8 6 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 181 0 0 22 0 22 22 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 724 0 0 45 0 45 45 0 8 0 bufpl 256 6537 0 1309 327 0 327 327 0 8 0 anonpl 16 54297 0 38654 97 1 96 96 0 124 16 amapchunkpl 152 1899 0 1761 10 0 10 10 0 158 3 amappl16 192 1868 0 780 63 0 63 63 0 8 8 amappl15 184 5 0 3 1 0 1 1 0 8 0 amappl14 176 54 0 50 1 0 1 1 0 8 0 amappl13 168 46 0 46 1 0 1 1 0 8 1 amappl12 160 3 0 3 2 1 1 1 0 8 1 amappl11 152 58 0 41 1 0 1 1 0 8 0 amappl10 144 23 0 14 1 0 1 1 0 8 0 amappl9 136 622 0 619 1 0 1 1 0 8 0 amappl8 128 179 0 153 2 0 2 2 0 8 0 amappl7 120 56 0 48 1 0 1 1 0 8 0 amappl6 112 71 0 59 1 0 1 1 0 8 0 amappl5 104 141 0 126 1 0 1 1 0 8 0 amappl4 96 639 0 608 1 0 1 1 0 8 0 amappl3 88 113 0 107 1 0 1 1 0 8 0 amappl2 80 1783 0 1711 3 1 2 3 0 8 0 amappl1 72 17543 0 17101 26 14 12 20 0 8 2 amappl 80 875 0 829 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 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 344 0 328 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 344 0 328 1 0 1 1 0 8 0 vmmpekpl 168 6908 0 6873 2 0 2 2 0 8 0 vmmpepl 168 50766 0 48533 147 6 141 141 0 357 43 vmsppl 368 343 0 328 2 0 2 2 0 8 0 pdppl 4096 695 0 656 6 0 6 6 0 8 1 pvpl 32 173060 0 154216 223 0 223 223 0 265 36 pmappl 232 343 0 328 2 0 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 529 0 3 16 0 16 16 0 8 0