panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 435174 45688 0 0 0 0 syz-executor.1 * 98568 45688 0 0 0x4000000 1K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8227c870) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a28800,ffff800000a2fb00,ffff800023fa52d0) at ifa_update_broadaddr+0x61 sys/net/if.c:3078 in_ioctl(80206913,ffff800023fa52c0,ffff800000a28800,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd806f6e2af0,80206913,ffff800023fa52c0,ffff800020ed8c48) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd80664c0dc0,80206913,ffff800023fa52c0,ffff800020ed8c48) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed8c48,ffff800023fa53d8,ffff800023fa5420) at sys_ioctl+0x4a5 syscall(ffff800023fa54a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023fa54a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2ae28da8d0, count: 6 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(ffffffff8227c870) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a28800,ffff800000a2fb00,ffff800023fa52d0) at ifa_update_broadaddr+0x61 sys/net/if.c:3078 in_ioctl(80206913,ffff800023fa52c0,ffff800000a28800,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd806f6e2af0,80206913,ffff800023fa52c0,ffff800020ed8c48) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd80664c0dc0,80206913,ffff800023fa52c0,ffff800020ed8c48) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed8c48,ffff800023fa53d8,ffff800023fa5420) at sys_ioctl+0x4a5 syscall(ffff800023fa54a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023fa54a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2ae28da8d0, count: -9 ddb{1}> show registers rdi 0xffffffff81992a17 db_enter+0x17 rsi 0x1981 __ALIGN_SIZE+0x981 rbp 0xffff800023fa4ff0 rbx 0xffff800023fa50a0 rdx 0x1982 __ALIGN_SIZE+0x982 rcx 0xffff800021f6c000 rax 0xffff800021f6c000 r8 0xffffffff813592ff kprintf+0x16f r9 0x1 r10 0x25 r11 0xa90bf44f15058e54 r12 0x3000000008 r13 0xffff800023fa5000 r14 0x100 r15 0x1 rip 0xffffffff81992a18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023fa4fe0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=98568 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020ed8018,0xffffffff8268ec60 process=0xffff800020ece3f8 user=0xffff800023fa0000, vmspace=0xfffffd807f0002e0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45688 435174 79928 0 7 0 syz-executor.1 *45688 98568 79928 0 7 0x4000000 syz-executor.1 3697 524143 88937 0 2 0 syz-executor.0 3697 166081 88937 0 3 0x4000080 poll syz-executor.0 72320 77917 0 0 3 0x14200 bored sosplice 79928 67972 69662 0 3 0x82 nanosleep syz-executor.1 88937 122939 69662 0 3 0x82 nanosleep syz-executor.0 69662 156519 66084 0 3 0x82 thrsleep syz-fuzzer 69662 91809 66084 0 3 0x4000082 nanosleep syz-fuzzer 69662 272918 66084 0 3 0x4000082 thrsleep syz-fuzzer 69662 52660 66084 0 3 0x4000082 thrsleep syz-fuzzer 69662 131046 66084 0 3 0x4000082 thrsleep syz-fuzzer 69662 491804 66084 0 3 0x4000082 thrsleep syz-fuzzer 69662 177058 66084 0 3 0x4000082 thrsleep syz-fuzzer 69662 192117 66084 0 3 0x4000082 kqread syz-fuzzer 69662 483217 66084 0 3 0x4000082 thrsleep syz-fuzzer 69662 202102 66084 0 3 0x4000082 thrsleep syz-fuzzer 66084 259493 76562 0 3 0x10008a pause ksh 76562 316575 11419 0 3 0x92 select sshd 32043 309879 1 0 3 0x100083 ttyin getty 11419 469329 1 0 3 0x80 select sshd 61650 364930 17339 74 3 0x100092 bpf pflogd 17339 325752 1 0 3 0x80 netio pflogd 22095 394854 69612 73 3 0x100090 kqread syslogd 69612 43523 1 0 3 0x100082 netio syslogd 32925 52238 1 77 3 0x100090 poll dhclient 38741 440386 1 0 3 0x80 poll dhclient 30775 218630 0 0 3 0x14200 bored smr 62597 137144 0 0 2 0x14200 zerothread 51560 130679 0 0 3 0x14200 aiodoned aiodoned 80233 243684 0 0 3 0x14200 syncer update 69207 112437 0 0 3 0x14200 cleaner cleaner 17082 225661 0 0 3 0x14200 reaper reaper 21180 152023 0 0 3 0x14200 pgdaemon pagedaemon 98217 186876 0 0 3 0x14200 bored crynlk 99662 385443 0 0 3 0x14200 bored crypto 38915 475146 0 0 3 0x40014200 acpi0 acpi0 41594 438538 0 0 3 0x40014200 idle1 84478 331151 0 0 3 0x14200 bored softnet 49963 295194 0 0 3 0x14200 bored systqmp 54231 400862 0 0 3 0x14200 bored systq 12683 259087 0 0 3 0x40014200 bored softclock 16727 190875 0 0 3 0x40014200 idle0 1 266474 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 45688 (syz-executor.1) thread 0xffff800020ed8c48 (98568) exclusive rwlock netlock r = 0 (0xffffffff82513458) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 in_ioctl+0x1f5 #2 ifioctl+0xe70 sys/net/if.c:2289 #3 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #4 sys_ioctl+0x4a5 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8263e188) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 soo_ioctl+0x26a sys/kern/sys_socket.c:138 #2 sys_ioctl+0x4a5 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9491 6404K 6664K 78643K 10767 0 pcb 13 8K 8K 78643K 43 0 rtable 108 3K 4K 78643K 243 0 ifaddr 61 13K 14K 78643K 72 0 counters 43 33K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1479 0 iov 0 0K 24K 78643K 125 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1285 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 26 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 158 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 95K 78643K 456 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 12 0 in_multi 59 3K 3K 78643K 69 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 223 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 103 21K 37K 78643K 1450 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 22 0 NDP 8 0K 0K 78643K 13 0 temp 81 3037K 3113K 78643K 6419 0 kqueue 3 4K 6K 78643K 4 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 47 0 3 2 0 2 2 0 8 0 unpcb 120 279 0 269 2 1 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 105 0 105 1 1 0 1 0 8 0 tcpcb 544 49 0 44 1 0 1 1 0 8 0 inpcb 280 176 0 168 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 7 0 1 1 0 1 1 0 8 0 pffrag 232 5 0 5 1 0 1 1 0 482 1 pffrnode 88 5 0 5 1 0 1 1 0 8 1 pffrent 40 55 0 55 1 0 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 27 0 1 1 0 1 1 0 8 0 pfstkey 112 27 0 1 1 0 1 1 0 8 0 pfstate 328 27 0 1 3 0 3 3 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 203 0 15 13 0 13 13 0 8 1 art_table 32 204 0 15 2 0 2 2 0 8 0 art_node 16 46 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1607 0 202 89 0 89 89 0 8 0 ffsino 272 1607 0 202 94 0 94 94 0 8 0 nchpl 144 2002 0 386 61 0 61 61 0 8 0 uvmvnodes 72 1692 0 0 31 0 31 31 0 8 0 vnodes 208 1692 0 0 90 0 90 90 0 8 0 namei 1024 5489 0 5489 1 0 1 1 0 8 1 percpumem 16 33 0 1 1 0 1 1 0 8 0 vmpool 560 4 0 4 1 1 0 1 0 8 0 scxspl 192 6156 0 6156 8 2 6 7 0 8 6 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 424 374 0 341 4 0 4 4 0 8 0 futexpl 56 1952 0 1952 1 0 1 1 0 8 1 knotepl 112 55 0 36 1 0 1 1 0 8 0 kqueuepl 144 16 0 14 1 0 1 1 0 8 0 pipelkpl 48 95 0 84 1 0 1 1 0 8 0 pipepl 120 190 0 169 1 0 1 1 0 8 0 fdescpl 496 358 0 341 3 0 3 3 0 8 0 filepl 152 2129 0 2026 6 1 5 6 0 8 1 lockfpl 104 22 0 21 1 0 1 1 0 8 0 lockfspl 48 10 0 9 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 164 0 155 1 0 1 1 0 8 0 zombiepl 144 341 0 341 1 0 1 1 0 8 1 processpl 984 374 0 341 5 0 5 5 0 8 0 procpl 624 679 0 635 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 482 0 462 5 1 4 5 0 8 2 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 171 0 0 21 0 21 21 0 8 0 mtagpl 80 11 0 0 1 0 1 1 0 8 0 mbufpl 256 255 0 0 17 1 16 16 0 8 0 bufpl 280 4470 0 190 306 0 306 306 0 8 0 anonpl 16 59420 0 44757 77 1 76 76 0 124 16 amapchunkpl 152 2131 0 1991 13 2 11 11 0 158 4 amappl16 192 2002 0 1211 56 8 48 52 0 8 8 amappl15 184 17 0 14 1 0 1 1 0 8 0 amappl14 176 22 0 19 1 0 1 1 0 8 0 amappl13 168 28 0 26 1 0 1 1 0 8 0 amappl12 160 16 0 13 1 0 1 1 0 8 0 amappl11 152 60 0 44 1 0 1 1 0 8 0 amappl10 144 17 0 13 1 0 1 1 0 8 0 amappl9 136 510 0 505 1 0 1 1 0 8 0 amappl8 128 431 0 410 1 0 1 1 0 8 0 amappl7 120 122 0 110 1 0 1 1 0 8 0 amappl6 112 30 0 24 1 0 1 1 0 8 0 amappl5 104 259 0 243 1 0 1 1 0 8 0 amappl4 96 487 0 458 1 0 1 1 0 8 0 amappl3 88 108 0 102 1 0 1 1 0 8 0 amappl2 80 1939 0 1862 3 1 2 3 0 8 0 amappl1 72 17828 0 17370 26 16 10 20 0 8 0 amappl 80 941 0 895 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 362 0 345 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 362 0 345 1 0 1 1 0 8 0 vmmpekpl 168 6686 0 6655 2 0 2 2 0 8 0 vmmpepl 168 50872 0 48837 110 10 100 106 0 357 11 vmsppl 368 361 0 345 2 0 2 2 0 8 0 pdppl 4096 732 0 690 6 0 6 6 0 8 0 pvpl 32 175370 0 157481 182 0 182 182 0 265 35 pmappl 232 361 0 345 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 265 0 4 8 0 8 8 0 8 0