panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 341450 48418 0 0 0 0 syz-executor.1 *246138 48418 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(ffff800000b3a800,ffff800000ae6900,ffff800023b89720) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800023b89710,ffff800000b3a800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80640f24a8,80206913,ffff800023b89710,ffff800020ab0018) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0018,ffff800023b89828,ffff800023b89870) at sys_ioctl+0x5b9 syscall(ffff800023b898f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b898f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cda7a41f010) at Xsyscall+0x128 end of kernel end trace frame: 0xcdcd401eac0, 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(ffff800000b3a800,ffff800000ae6900,ffff800023b89720) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800023b89710,ffff800000b3a800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80640f24a8,80206913,ffff800023b89710,ffff800020ab0018) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0018,ffff800023b89828,ffff800023b89870) at sys_ioctl+0x5b9 syscall(ffff800023b898f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b898f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cda7a41f010) at Xsyscall+0x128 end of kernel end trace frame: 0xcdcd401eac0, count: -8 ddb{1}> show registers rdi 0xffffffff819f8947 db_enter+0x17 rsi 0x1e92 __ALIGN_SIZE+0xe92 rbp 0xffff800023b894b0 rbx 0xffff800023b89560 rdx 0x1e93 __ALIGN_SIZE+0xe93 rcx 0xffff800023bd0000 rax 0xffff800023bd0000 r8 0xffffffff81b887df kprintf+0x16f r9 0x1 r10 0x25 r11 0xf16f467589304ff5 r12 0x3000000008 r13 0xffff800023b894c0 r14 0x100 r15 0x1 rip 0xffffffff819f8948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b894a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=246138 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1650,0xffffffff826269b8 process=0xffff800020a8aa90 user=0xffff800023b84000, vmspace=0xfffffd807f00bb80 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48418 341450 81700 0 7 0 syz-executor.1 *48418 246138 81700 0 7 0x4000000 syz-executor.1 81700 52728 19922 0 3 0x82 nanosleep syz-executor.1 81198 211325 19922 0 3 0x2 biowait syz-executor.0 28625 487512 0 0 3 0x14200 acct acct 38227 104680 1 0 3 0x100083 ttyopn getty 52186 518216 0 0 3 0x14200 bored sosplice 19922 173229 72073 0 3 0x82 thrsleep syz-fuzzer 19922 83526 72073 0 3 0x4000082 nanosleep syz-fuzzer 19922 386786 72073 0 3 0x4000082 thrsleep syz-fuzzer 19922 276771 72073 0 3 0x4000082 nanosleep syz-fuzzer 19922 438373 72073 0 3 0x4000082 thrsleep syz-fuzzer 19922 121509 72073 0 3 0x4000082 kqread syz-fuzzer 19922 138936 72073 0 3 0x4000082 thrsleep syz-fuzzer 19922 384333 72073 0 3 0x4000082 thrsleep syz-fuzzer 19922 313195 72073 0 3 0x4000082 thrsleep syz-fuzzer 19922 287789 72073 0 3 0x4000082 thrsleep syz-fuzzer 72073 186952 41504 0 3 0x10008a pause ksh 41504 480236 90339 0 3 0x92 select sshd 90339 510710 1 0 3 0x80 select sshd 31107 501452 85500 74 3 0x100092 bpf pflogd 85500 68988 1 0 3 0x80 netio pflogd 94738 478130 80870 73 3 0x100090 kqread syslogd 80870 480421 1 0 3 0x100082 netio syslogd 12745 345029 1 77 3 0x100090 poll dhclient 58962 145216 1 0 3 0x80 poll dhclient 67069 134440 0 0 3 0x14200 pgzero zerothread 10215 100154 0 0 3 0x14200 aiodoned aiodoned 15988 292351 0 0 3 0x14200 syncer update 9292 365766 0 0 3 0x14200 cleaner cleaner 55234 492860 0 0 3 0x14200 reaper reaper 37518 208591 0 0 3 0x14200 pgdaemon pagedaemon 49820 382201 0 0 3 0x14200 bored crynlk 48737 466496 0 0 3 0x14200 bored crypto 74631 232008 0 0 3 0x40014200 acpi0 acpi0 17230 258369 0 0 3 0x40014200 idle1 85580 49255 0 0 3 0x14200 bored softnet 35980 465228 0 0 3 0x14200 bored systqmp 15180 470528 0 0 3 0x14200 bored systq 40842 516822 0 0 3 0x40014200 bored softclock 97952 335727 0 0 3 0x40014200 idle0 92279 3039 0 0 3 0x14200 bored smr 1 259733 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 48418 (syz-executor.1) thread 0xffff800020ab0018 (246138) 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 Process 81198 (syz-executor.0) thread 0xffff800020ab0c70 (211325) exclusive rrwlock inode r = 0 (0xfffffd806eb6ba38) #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 (0xfffffd806e58b098) #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 9598 7205K 7838K 78643K 16349 0 0 pcb 13 8K 8K 78643K 354 0 0 rtable 118 13K 14K 78643K 919 0 0 ifaddr 88 18K 19K 78643K 310 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1574 0 0 iov 0 0K 24K 78643K 366 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 3139 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 27 0 0 VM map 20 10K 10K 78643K 26 0 0 sem 12 0K 1K 78643K 419 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1528 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 60 63K 95K 78643K 864 0 0 subproc 32 2K 2K 78643K 153 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 104 0 0 in_multi 27 1K 2K 78643K 201 0 0 ether_multi 1 0K 0K 78643K 17 0 0 mrt 1 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 506 0 0 pfkey data 0 0K 0K 78643K 2 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 149 189K 191K 78643K 6278 0 0 UVM aobj 130 6K 6K 78643K 135 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 304 0 0 NDP 21 0K 0K 78643K 95 0 0 temp 235 3561K 4200K 78643K 34599 0 0 kqueue 0 0K 0K 78643K 14 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 15 0 10 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 161 0 158 1 0 1 1 0 8 0 rtentry 112 157 0 114 2 0 2 2 0 8 0 unpcb 120 799 0 786 1 0 1 1 0 8 0 syncache 264 15 0 15 5 5 0 1 0 8 0 tcpqe 32 94 0 94 6 6 0 1 0 8 0 tcpcb 544 2097 0 2093 8 6 2 2 0 8 1 inpcb 280 3563 0 3555 11 9 2 3 0 8 1 rttmr 72 6 0 5 4 3 1 1 0 8 0 nd6 48 27 0 25 3 2 1 1 0 8 0 pkpcb 40 3 0 3 2 2 0 1 0 8 0 ppxss 1128 37 0 37 6 6 0 1 0 8 0 pffrag 232 34 0 34 9 8 1 1 0 482 1 pffrnode 88 34 0 34 9 8 1 1 0 8 1 pffrent 40 1236 0 1236 9 8 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 933 0 180 5 0 5 5 0 8 0 pfstkey 112 933 0 180 23 0 23 23 0 8 0 pfstate 328 933 0 178 67 1 66 66 0 8 1 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 1 2 3 0 8 0 art_heap4 256 812 0 574 28 11 17 17 0 8 0 art_table 32 815 0 575 4 1 3 3 0 8 0 art_node 16 156 0 117 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 413 0 403 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3770 0 2364 46 0 46 46 0 8 0 ffsino 272 3770 0 2364 95 0 95 95 0 8 0 nchpl 144 6208 0 4593 61 0 61 61 0 8 0 uvmvnodes 72 5360 0 0 98 0 98 98 0 8 0 vnodes 208 5360 0 0 283 0 283 283 0 8 0 namei 1024 20662 0 20661 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 18 0 0 3 0 3 3 0 8 0 vmpool 552 24 0 6 2 0 2 2 0 8 0 scsiplug 64 9 0 9 6 6 0 1 0 8 0 scxspl 192 20484 0 20482 18 15 3 7 0 8 2 plimitpl 152 133 0 125 1 0 1 1 0 8 0 sigapl 432 1706 0 1691 3 1 2 3 0 8 0 futexpl 56 36729 0 36729 1 0 1 1 0 8 1 knotepl 112 277 0 258 1 0 1 1 0 8 0 kqueuepl 104 328 0 326 1 0 1 1 0 8 0 pipepl 112 1060 0 1041 1 0 1 1 0 8 0 fdescpl 488 1707 0 1691 3 0 3 3 0 8 0 filepl 152 14567 0 14464 11 6 5 6 0 8 0 lockfpl 104 489 0 487 1 0 1 1 0 8 0 lockfspl 48 173 0 171 1 0 1 1 0 8 0 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 52 0 41 1 0 1 1 0 8 0 ucredpl 96 1530 0 1520 1 0 1 1 0 8 0 zombiepl 144 1691 0 1691 1 0 1 1 0 8 1 processpl 896 1724 0 1691 4 0 4 4 0 8 0 procpl 632 5071 0 5028 5 0 5 5 0 8 1 srpgc 64 16 0 16 6 6 0 1 0 8 0 sosppl 128 30 0 30 6 6 0 1 0 8 0 sockpl 384 4550 0 4526 14 9 5 6 0 8 2 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 14 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 1 2 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 169 0 0 20 1 19 20 0 8 0 mtagpl 80 30 0 0 1 0 1 1 0 8 0 mbufpl 256 419 0 0 20 0 20 20 0 8 0 bufpl 256 10923 0 3865 442 0 442 442 0 8 0 anonpl 16 212416 0 192395 132 48 84 99 0 124 1 amapchunkpl 152 11967 0 11815 25 15 10 11 0 158 3 amappl16 192 9202 0 8052 114 49 65 71 0 8 7 amappl15 184 188 0 187 2 1 1 1 0 8 0 amappl14 176 809 0 800 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 344 0 344 2 2 0 1 0 8 0 amappl11 152 80 0 65 1 0 1 1 0 8 0 amappl10 144 287 0 282 1 0 1 1 0 8 0 amappl9 136 688 0 685 1 0 1 1 0 8 0 amappl8 128 292 0 250 2 0 2 2 0 8 0 amappl7 120 332 0 323 1 0 1 1 0 8 0 amappl6 112 74 0 59 1 0 1 1 0 8 0 amappl5 104 527 0 511 1 0 1 1 0 8 0 amappl4 96 1854 0 1822 1 0 1 1 0 8 0 amappl3 88 934 0 925 1 0 1 1 0 8 0 amappl2 80 12535 0 12456 3 1 2 3 0 8 0 amappl1 72 47419 0 46979 25 15 10 20 0 8 0 amappl 80 5479 0 5424 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 1731 0 1691 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1731 0 1691 1 0 1 1 0 8 0 vmmpekpl 168 17713 0 17672 3 0 3 3 0 8 0 vmmpepl 168 223188 0 220847 246 97 149 151 0 357 38 vmsppl 368 1706 0 1691 2 0 2 2 0 8 0 pdppl 4096 3469 0 3412 9 1 8 8 0 8 0 pvpl 32 590197 0 567477 264 70 194 226 0 265 5 pmappl 232 1730 0 1697 4 1 3 3 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 644 0 24 18 0 18 18 0 8 0