panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 220324 96064 0 0 0 0 syz-executor.0 *134351 96064 0 0 0x4000000 1K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82277cd0) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a2d000,ffff800000a42700,ffff80002419d050) at ifa_update_broadaddr+0x61 sys/net/if.c:3076 in_ioctl_change_ifaddr(8040691a,ffff80002419d030,ffff800000a2d000,1) at in_ioctl_change_ifaddr+0x66c sys/netinet/in.c:518 in_ioctl(8040691a,ffff80002419d030,ffff800000a2d000,1) at in_ioctl+0x2fb sys/netinet/in.c:246 ifioctl(fffffd806f6f67d0,8040691a,ffff80002419d030,ffff800020ec64f8) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd807a935c90,8040691a,ffff80002419d030,ffff800020ec64f8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ec64f8,ffff80002419d148,ffff80002419d190) at sys_ioctl+0x4a5 syscall(ffff80002419d210) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002419d210) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1a2620edf00, count: 5 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(ffffffff82277cd0) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a2d000,ffff800000a42700,ffff80002419d050) at ifa_update_broadaddr+0x61 sys/net/if.c:3076 in_ioctl_change_ifaddr(8040691a,ffff80002419d030,ffff800000a2d000,1) at in_ioctl_change_ifaddr+0x66c sys/netinet/in.c:518 in_ioctl(8040691a,ffff80002419d030,ffff800000a2d000,1) at in_ioctl+0x2fb sys/netinet/in.c:246 ifioctl(fffffd806f6f67d0,8040691a,ffff80002419d030,ffff800020ec64f8) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd807a935c90,8040691a,ffff80002419d030,ffff800020ec64f8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ec64f8,ffff80002419d148,ffff80002419d190) at sys_ioctl+0x4a5 syscall(ffff80002419d210) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002419d210) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1a2620edf00, count: -10 ddb{1}> show registers rdi 0xffffffff8132e3b7 db_enter+0x17 rsi 0x1c2d __ALIGN_SIZE+0xc2d rbp 0xffff80002419cce0 rbx 0xffff80002419cd90 rdx 0x1c2e __ALIGN_SIZE+0xc2e rcx 0xffff800021168000 rax 0xffff800021168000 r8 0xffffffff8205b1df kprintf+0x16f r9 0x1 r10 0x25 r11 0xe011e34b6b664391 r12 0x3000000008 r13 0xffff80002419ccf0 r14 0x100 r15 0x1 rip 0xffffffff8132e3b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002419ccd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=134351 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ec7398,0xffffffff82673380 process=0xffff800020e92ba8 user=0xffff800024198000, vmspace=0xfffffd807f000000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96064 220324 86971 0 7 0 syz-executor.0 96064 286942 86971 0 2 0x4000000 syz-executor.0 *96064 134351 86971 0 7 0x4000000 syz-executor.0 17977 282263 0 0 3 0x14200 bored sosplice 86971 194991 42269 0 3 0x82 nanosleep syz-executor.0 72962 23218 42269 0 3 0x2 biowait syz-executor.1 42269 315960 7860 0 3 0x82 thrsleep syz-fuzzer 42269 138826 7860 0 3 0x4000082 nanosleep syz-fuzzer 42269 253433 7860 0 3 0x4000082 thrsleep syz-fuzzer 42269 184603 7860 0 3 0x4000082 thrsleep syz-fuzzer 42269 320716 7860 0 3 0x4000082 thrsleep syz-fuzzer 42269 252149 7860 0 3 0x4000082 thrsleep syz-fuzzer 42269 288661 7860 0 3 0x4000082 thrsleep syz-fuzzer 42269 358371 7860 0 3 0x4000082 thrsleep syz-fuzzer 42269 207860 7860 0 3 0x4000082 thrsleep syz-fuzzer 42269 274519 7860 0 3 0x4000082 kqread syz-fuzzer 7860 509759 3836 0 3 0x10008a pause ksh 3836 384848 60697 0 3 0x92 select sshd 98352 210691 1 0 3 0x100083 ttyin getty 60697 6852 1 0 3 0x80 select sshd 2930 91872 95533 74 3 0x100092 bpf pflogd 95533 388551 1 0 3 0x80 netio pflogd 71944 157071 62607 73 3 0x100090 kqread syslogd 62607 6691 1 0 3 0x100082 netio syslogd 67286 437539 1 77 3 0x100090 poll dhclient 98516 205082 1 0 3 0x80 poll dhclient 34286 95995 0 0 3 0x14200 bored smr 57115 458769 0 0 3 0x14200 pgzero zerothread 13779 71392 0 0 3 0x14200 aiodoned aiodoned 82032 455396 0 0 3 0x14200 syncer update 40544 215747 0 0 3 0x14200 cleaner cleaner 21202 18332 0 0 3 0x14200 reaper reaper 12506 358669 0 0 3 0x14200 pgdaemon pagedaemon 4050 220644 0 0 3 0x14200 bored crynlk 9840 259374 0 0 3 0x14200 bored crypto 63501 315102 0 0 3 0x40014200 acpi0 acpi0 16615 98766 0 0 3 0x40014200 idle1 40340 282542 0 0 3 0x14200 bored softnet 29378 393126 0 0 3 0x14200 bored systqmp 15547 246891 0 0 3 0x14200 bored systq 87674 247501 0 0 3 0x40014200 bored softclock 71056 410633 0 0 3 0x40014200 idle0 1 215630 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 96064 (syz-executor.0) thread 0xffff800020ec64f8 (134351) exclusive rwlock netlock r = 0 (0xffffffff824ee828) #0 witness_lock+0x4c5 sys/kern/subr_witness.c:1164 #1 in_ioctl_change_ifaddr+0x91 #2 in_ioctl+0x2fb sys/netinet/in.c:246 #3 ifioctl+0xe70 sys/net/if.c:2289 #4 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #5 sys_ioctl+0x4a5 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826822e8) #0 witness_lock+0x4c5 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 Process 72962 (syz-executor.1) thread 0xffff800020e6d868 (23218) exclusive rrwlock inode r = 0 (0xfffffd8067d79a38) #0 witness_lock+0x4c5 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1329 #8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806b4512b8) #0 witness_lock+0x4c5 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9526 6544K 6866K 78643K 10861 0 pcb 13 8K 8K 78643K 77 0 rtable 105 3K 3K 78643K 277 0 ifaddr 75 15K 15K 78643K 104 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1478 0 iov 0 0K 16K 78643K 25 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1311 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 55 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 282 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 95K 78643K 507 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 21 0 in_multi 53 3K 3K 78643K 89 0 ether_multi 1 0K 0K 78643K 11 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 227 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 102 37K 37K 78643K 1790 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 56 0 NDP 12 0K 0K 78643K 23 0 temp 132 3046K 3110K 78643K 3269 0 kqueue 3 4K 9K 78643K 12 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 26 0 24 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 unpcb 120 95 0 85 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 371 0 371 1 1 0 1 0 8 0 tcpcb 544 111 0 107 1 0 1 1 0 8 0 inpcb 280 285 0 277 2 0 2 2 0 8 1 nd6 48 9 0 3 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 23 0 9 1 0 1 1 0 8 0 pfstkey 112 23 0 9 1 0 1 1 0 8 0 pfstate 328 23 0 9 2 0 2 2 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 233 0 44 12 0 12 12 0 8 0 art_table 32 234 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 21 1 0 1 1 0 8 0 semapl 112 53 0 43 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 dino1pl 128 1800 0 391 46 0 46 46 0 8 0 ffsino 272 1800 0 391 96 1 95 95 0 8 0 nchpl 144 2518 0 912 61 0 61 61 0 8 0 uvmvnodes 72 1912 0 0 35 0 35 35 0 8 0 vnodes 208 1912 0 0 101 0 101 101 0 8 0 namei 1024 7036 0 7036 2 1 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 192 7167 0 7166 11 10 1 6 0 8 0 plimitpl 152 45 0 37 1 0 1 1 0 8 0 sigapl 424 495 0 463 4 0 4 4 0 8 0 futexpl 56 3205 0 3205 3 2 1 1 0 8 1 knotepl 112 78 0 59 1 0 1 1 0 8 0 kqueuepl 144 28 0 26 1 0 1 1 0 8 0 pipelkpl 48 90 0 80 1 0 1 1 0 8 0 pipepl 120 180 0 161 1 0 1 1 0 8 0 fdescpl 496 479 0 463 3 0 3 3 0 8 0 filepl 152 2503 0 2402 5 0 5 5 0 8 1 lockfpl 104 41 0 40 1 0 1 1 0 8 0 lockfspl 48 14 0 13 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 154 0 145 1 0 1 1 0 8 0 zombiepl 144 463 0 463 1 0 1 1 0 8 1 processpl 984 495 0 463 5 0 5 5 0 8 0 procpl 624 998 0 955 5 0 5 5 0 8 1 sosppl 128 8 0 8 2 1 1 1 0 8 1 sockpl 400 408 0 388 4 1 3 3 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 177 0 0 21 2 19 21 0 8 0 mtagpl 80 14 0 0 1 0 1 1 0 8 0 mbufpl 256 231 0 0 12 0 12 12 0 8 0 bufpl 280 4562 0 174 314 0 314 314 0 8 0 anonpl 16 59863 0 45596 70 10 60 69 0 124 2 amapchunkpl 152 2531 0 2394 11 4 7 8 0 158 0 amappl16 192 2266 0 1496 48 9 39 48 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 11 0 10 2 1 1 1 0 8 0 amappl13 168 158 0 155 1 0 1 1 0 8 0 amappl12 160 1 0 1 1 1 0 1 0 8 0 amappl11 152 77 0 58 1 0 1 1 0 8 0 amappl10 144 47 0 38 1 0 1 1 0 8 0 amappl9 136 500 0 496 1 0 1 1 0 8 0 amappl8 128 422 0 407 1 0 1 1 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 27 0 22 1 0 1 1 0 8 0 amappl5 104 373 0 357 1 0 1 1 0 8 0 amappl4 96 639 0 606 1 0 1 1 0 8 0 amappl3 88 118 0 113 1 0 1 1 0 8 0 amappl2 80 2820 0 2752 3 1 2 3 0 8 0 amappl1 72 20088 0 19644 26 16 10 20 0 8 0 amappl 80 1264 0 1219 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 481 0 463 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 481 0 463 1 0 1 1 0 8 0 vmmpekpl 168 7433 0 7401 2 0 2 2 0 8 0 vmmpepl 168 65237 0 63331 125 25 100 108 0 357 14 vmsppl 368 480 0 463 2 0 2 2 0 8 0 pdppl 4096 970 0 928 6 0 6 6 0 8 0 pvpl 32 189610 0 172186 166 9 157 166 0 265 15 pmappl 232 480 0 463 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 174 0 8 5 0 5 5 0 8 0