panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 1652 64313 0 0 0 0 syz-executor.1 *365311 64313 0 0 0x4000000 1K 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(ffff800000a67000,ffff800000a97a00,ffff800021d89340) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800021d89330,ffff800000a67000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80661334a8,80206913,ffff800021d89330,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff800021d89448,ffff800021d89490) at sys_ioctl+0x5b9 syscall(ffff800021d89510) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021d89510) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,aa88c8c3010) at Xsyscall+0x128 end of kernel end trace frame: 0xaab7b9aa220, 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(ffff800000a67000,ffff800000a97a00,ffff800021d89340) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800021d89330,ffff800000a67000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80661334a8,80206913,ffff800021d89330,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff800021d89448,ffff800021d89490) at sys_ioctl+0x5b9 syscall(ffff800021d89510) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021d89510) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,aa88c8c3010) at Xsyscall+0x128 end of kernel end trace frame: 0xaab7b9aa220, count: -8 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x1ec5 __ALIGN_SIZE+0xec5 rbp 0xffff800021d890d0 rbx 0xffff800021d89180 rdx 0x1ec6 __ALIGN_SIZE+0xec6 rcx 0xffff800020b58000 rax 0xffff800020b58000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x7f21610ed2dafc58 r12 0x3000000008 r13 0xffff800021d890e0 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021d890c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=365311 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1650,0xffffffff8265b7c8 process=0xffff800020a4b888 user=0xffff800021d84000, 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 64313 1652 34978 0 7 0 syz-executor.1 *64313 365311 34978 0 7 0x4000000 syz-executor.1 34978 127019 79393 0 3 0x82 nanosleep syz-executor.1 54592 497912 1 0 3 0x100083 ttyin getty 10326 360900 79393 0 3 0x2 biowait syz-executor.0 48229 303801 0 0 3 0x14200 bored sosplice 79393 206256 80223 0 3 0x82 thrsleep syz-fuzzer 79393 188784 80223 0 3 0x4000082 nanosleep syz-fuzzer 79393 230589 80223 0 3 0x4000082 thrsleep syz-fuzzer 79393 409305 80223 0 3 0x4000082 thrsleep syz-fuzzer 79393 17621 80223 0 3 0x4000082 thrsleep syz-fuzzer 79393 217554 80223 0 3 0x4000082 thrsleep syz-fuzzer 79393 175608 80223 0 3 0x4000082 thrsleep syz-fuzzer 79393 19838 80223 0 3 0x4000082 kqread syz-fuzzer 79393 196718 80223 0 3 0x4000082 nanosleep syz-fuzzer 79393 103234 80223 0 3 0x4000082 thrsleep syz-fuzzer 80223 34263 1315 0 3 0x10008a pause ksh 1315 173956 83873 0 3 0x92 select sshd 83873 272058 1 0 3 0x80 select sshd 2482 108937 68771 74 3 0x100092 bpf pflogd 68771 431042 1 0 3 0x80 netio pflogd 15850 28759 68227 73 3 0x100090 kqread syslogd 68227 115671 1 0 3 0x100082 netio syslogd 67872 241773 1 77 3 0x100090 poll dhclient 49115 260119 1 0 3 0x80 poll dhclient 83030 433469 0 0 3 0x14200 pgzero zerothread 82673 492526 0 0 3 0x14200 aiodoned aiodoned 5938 348983 0 0 3 0x14200 syncer update 203 121044 0 0 3 0x14200 cleaner cleaner 14473 165930 0 0 3 0x14200 reaper reaper 57526 38638 0 0 3 0x14200 pgdaemon pagedaemon 67488 110441 0 0 3 0x14200 bored crynlk 72050 115319 0 0 3 0x14200 bored crypto 58438 437601 0 0 3 0x40014200 acpi0 acpi0 69726 318181 0 0 3 0x40014200 idle1 4450 107664 0 0 3 0x14200 bored softnet 93782 147183 0 0 3 0x14200 bored systqmp 39296 135665 0 0 3 0x14200 bored systq 39098 374135 0 0 3 0x40014200 bored softclock 63316 66488 0 0 3 0x40014200 idle0 91583 403661 0 0 3 0x14200 bored smr 1 46584 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 64313 (syz-executor.1) thread 0xffff800020ab0c70 (365311) 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 Process 10326 (syz-executor.0) thread 0xffff800020ab0780 (360900) exclusive rrwlock inode r = 0 (0xfffffd806ebba1a8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8078357d60) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9511 6403K 7040K 78643K 12808 0 0 pcb 13 8K 8K 78643K 236 0 0 rtable 88 3K 4K 78643K 628 0 0 ifaddr 56 13K 15K 78643K 225 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1562 0 0 iov 0 0K 32K 78643K 92 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 77K 77K 78643K 2343 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 9 0 0 VM map 12 6K 6K 78643K 12 0 0 sem 11 1K 1K 78643K 11 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1936 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 60 63K 95K 78643K 760 0 0 subproc 32 2K 2K 78643K 68 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 358 0 0 in_multi 22 1K 2K 78643K 166 0 0 ether_multi 1 0K 0K 78643K 33 0 0 mrt 0 0K 0K 78643K 11 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 349 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 119 151K 151K 78643K 5610 0 0 UVM aobj 122 3K 3K 78643K 130 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 322 0 0 NDP 11 0K 0K 78643K 66 0 0 temp 165 3555K 3624K 78643K 11562 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 10 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 135 0 133 1 0 1 1 0 8 0 rtentry 112 69 0 35 2 0 2 2 0 8 0 unpcb 120 782 0 765 1 0 1 1 0 8 0 syncache 264 22 0 22 3 3 0 1 0 8 0 tcpqe 32 11 0 11 2 2 0 1 0 8 0 tcpcb 544 682 0 676 1 0 1 1 0 8 0 inpcb 280 1857 0 1848 4 2 2 2 0 8 1 nd6 48 12 0 10 2 1 1 1 0 8 0 ppxss 1128 37 0 36 2 1 1 1 0 8 0 pffrag 232 49 0 49 3 2 1 1 0 482 1 pffrnode 88 49 0 49 3 2 1 1 0 8 1 pffrent 40 2155 0 2155 3 2 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 121 0 73 1 0 1 1 0 8 0 pfstkey 112 121 0 73 3 0 3 3 0 8 0 pfstate 328 121 0 73 9 3 6 9 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 314 0 141 15 4 11 14 0 8 0 art_table 32 315 0 141 2 0 2 2 0 8 0 art_node 16 68 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 70 0 30 1 0 1 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 128 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4726 0 3322 46 0 46 46 0 8 0 ffsino 272 4726 0 3322 95 0 95 95 0 8 0 nchpl 144 7600 0 6012 60 0 60 60 0 8 0 uvmvnodes 72 5329 0 0 97 0 97 97 0 8 0 vnodes 208 5329 0 0 281 0 281 281 0 8 0 namei 1024 20236 0 20235 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 552 10 0 0 1 0 1 1 0 8 0 scxspl 192 21598 0 21597 10 9 1 6 0 8 0 plimitpl 152 136 0 128 1 0 1 1 0 8 0 sigapl 432 2129 0 2114 3 1 2 3 0 8 0 futexpl 56 33368 0 33368 1 0 1 1 0 8 1 knotepl 112 270 0 251 1 0 1 1 0 8 0 kqueuepl 104 419 0 417 1 0 1 1 0 8 0 pipepl 112 1058 0 1039 2 1 1 2 0 8 0 fdescpl 488 2130 0 2114 3 0 3 3 0 8 0 filepl 152 11373 0 11272 7 2 5 6 0 8 0 lockfpl 104 273 0 272 1 0 1 1 0 8 0 lockfspl 48 111 0 110 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 29 0 18 1 0 1 1 0 8 0 ucredpl 96 1594 0 1585 1 0 1 1 0 8 0 zombiepl 144 2114 0 2114 1 0 1 1 0 8 1 processpl 896 2146 0 2114 4 0 4 4 0 8 0 procpl 632 4648 0 4606 9 4 5 5 0 8 1 srpgc 64 6 0 6 2 2 0 1 0 8 0 sosppl 128 94 0 94 4 3 1 1 0 8 1 sockpl 384 2803 0 2775 9 4 5 5 0 8 2 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 14 0 14 14 0 8 0 mtagpl 80 50 0 0 1 0 1 1 0 8 0 mbufpl 256 373 0 0 20 0 20 20 0 8 0 bufpl 256 10100 0 3042 442 0 442 442 0 8 0 anonpl 16 215535 0 210908 81 52 29 50 0 124 10 amapchunkpl 152 9942 0 9847 23 18 5 14 0 158 0 amappl16 192 11152 0 10949 50 38 12 32 0 8 1 amappl14 176 68 0 63 1 0 1 1 0 8 0 amappl13 168 287 0 285 1 0 1 1 0 8 0 amappl12 160 110 0 107 1 0 1 1 0 8 0 amappl11 152 860 0 843 1 0 1 1 0 8 0 amappl10 144 25 0 20 1 0 1 1 0 8 0 amappl9 136 1322 0 1318 1 0 1 1 0 8 0 amappl8 128 876 0 849 1 0 1 1 0 8 0 amappl7 120 47 0 42 1 0 1 1 0 8 0 amappl6 112 865 0 854 1 0 1 1 0 8 0 amappl5 104 240 0 226 1 0 1 1 0 8 0 amappl4 96 2682 0 2648 2 1 1 2 0 8 0 amappl3 88 151 0 143 1 0 1 1 0 8 0 amappl2 80 16182 0 16108 3 1 2 3 0 8 0 amappl1 72 46888 0 46458 26 16 10 20 0 8 0 amappl 80 4966 0 4922 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 129 0 8 2 0 2 2 0 8 0 uaddrrnd 24 2140 0 2114 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2140 0 2114 1 0 1 1 0 8 0 vmmpekpl 168 13936 0 13896 2 0 2 2 0 8 0 vmmpepl 168 252315 0 250972 124 60 64 81 0 357 0 vmsppl 368 2129 0 2114 2 0 2 2 0 8 0 pdppl 4096 4287 0 4238 7 0 7 7 0 8 0 pvpl 32 701419 0 693562 196 83 113 133 0 265 45 pmappl 232 2139 0 2114 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 613 0 7 18 0 18 18 0 8 0