panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 200184 88811 0 0 0 1 syz-executor.0 *281198 88811 0 0 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82273772) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff8000009d0000,ffff800000aead00,ffff800023b710b0) at ifa_update_broadaddr+0x61 sys/net/if.c:3077 in_ioctl(80206913,ffff800023b710a0,ffff8000009d0000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd807ca307f0,80206913,ffff800023b710a0,ffff800020ac7ae8) at ifioctl+0xe70 sys/net/if.c:2290 soo_ioctl(fffffd80639a4e40,80206913,ffff800023b710a0,ffff800020ac7ae8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ac7ae8,ffff800023b711b8,ffff800023b71200) at sys_ioctl+0x4a5 syscall(ffff800023b71280) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023b71280) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x990ac365da0, 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{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(ffffffff82273772) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff8000009d0000,ffff800000aead00,ffff800023b710b0) at ifa_update_broadaddr+0x61 sys/net/if.c:3077 in_ioctl(80206913,ffff800023b710a0,ffff8000009d0000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd807ca307f0,80206913,ffff800023b710a0,ffff800020ac7ae8) at ifioctl+0xe70 sys/net/if.c:2290 soo_ioctl(fffffd80639a4e40,80206913,ffff800023b710a0,ffff800020ac7ae8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ac7ae8,ffff800023b711b8,ffff800023b71200) at sys_ioctl+0x4a5 syscall(ffff800023b71280) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023b71280) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x990ac365da0, count: -9 ddb{0}> show registers rdi 0xffffffff81ec9677 db_enter+0x17 rsi 0x1570 __ALIGN_SIZE+0x570 rbp 0xffff800023b70dd0 rbx 0xffff800023b70e80 rdx 0x1571 __ALIGN_SIZE+0x571 rcx 0xffff800020b6c000 rax 0xffff800020b6c000 r8 0xffffffff81542c6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x7ecd3dda4c18faf6 r12 0x3000000008 r13 0xffff800023b70de0 r14 0x100 r15 0x1 rip 0xffffffff81ec9678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b70dc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=281198 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac6c48,0xffffffff82663540 process=0xffff800020a923e0 user=0xffff800023b6c000, vmspace=0xfffffd806e9c8178 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88811 200184 64957 0 7 0 syz-executor.0 *88811 281198 64957 0 7 0x4000000 syz-executor.0 66537 505482 1 0 3 0x100083 ttyin getty 11554 484972 87002 0 3 0x82 nanosleep syz-executor.1 59347 500600 0 0 3 0x14200 acct acct 14456 184440 0 0 3 0x14200 bored sosplice 64957 226527 87002 0 3 0x82 nanosleep syz-executor.0 87002 506047 15184 0 3 0x82 kqread syz-fuzzer 87002 240770 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 288527 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 317682 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 217407 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 176340 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 162129 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 402672 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 518497 15184 0 3 0x4000082 thrsleep syz-fuzzer 87002 402845 15184 0 3 0x4000082 thrsleep syz-fuzzer 15184 521641 51935 0 3 0x10008a pause ksh 51935 426012 53527 0 3 0x92 select sshd 53527 369900 1 0 3 0x80 select sshd 85613 262731 76439 74 3 0x100092 bpf pflogd 76439 128737 1 0 3 0x80 netio pflogd 1738 288455 36745 73 3 0x100090 kqread syslogd 36745 135559 1 0 3 0x100082 netio syslogd 88623 383699 1 77 3 0x100090 poll dhclient 45200 7337 1 0 3 0x80 poll dhclient 49103 204555 0 0 3 0x14200 bored smr 97671 481468 0 0 3 0x14200 pgzero zerothread 18564 507303 0 0 3 0x14200 aiodoned aiodoned 91859 79383 0 0 3 0x14200 syncer update 91806 304196 0 0 3 0x14200 cleaner cleaner 5189 496182 0 0 3 0x14200 reaper reaper 44214 41973 0 0 3 0x14200 pgdaemon pagedaemon 31787 47818 0 0 3 0x14200 bored crynlk 60781 230361 0 0 3 0x14200 bored crypto 12151 81913 0 0 3 0x40014200 acpi0 acpi0 93132 5646 0 0 3 0x40014200 idle1 65723 416945 0 0 3 0x14200 bored softnet 83028 202028 0 0 3 0x14200 bored systqmp 24158 323140 0 0 3 0x14200 bored systq 17249 137101 0 0 2 0x40014200 softclock 35468 100718 0 0 3 0x40014200 idle0 1 237592 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 88811 (syz-executor.0) thread 0xffff800020ac7ae8 (281198) exclusive rwlock netlock r = 0 (0xffffffff824d6f68) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 in_ioctl+0x1f5 #2 ifioctl+0xe70 sys/net/if.c:2290 #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 (0xffffffff82677228) #0 witness_lock+0x52e 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9584 6471K 8329K 78643K 17549 0 pcb 13 8K 8K 78643K 4063 0 rtable 83 3K 5K 78643K 753 0 ifaddr 121 22K 22K 78643K 297 0 counters 43 33K 34K 78643K 97 0 ioctlops 0 0K 4K 78643K 1534 0 iov 0 0K 32K 78643K 197 0 mount 1 1K 1K 78643K 1 0 vnodes 1241 78K 78K 78643K 3199 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 20 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 225 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 2152 0 sigio 0 0K 0K 78643K 33 0 proc 64 63K 83K 78643K 709 0 subproc 32 2K 2K 78643K 89 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 204 0 in_multi 132 6K 6K 78643K 370 0 ether_multi 1 0K 0K 78643K 60 0 mrt 0 0K 0K 78643K 21 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 1K 78643K 375 0 pfkey data 0 0K 1K 78643K 4 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 144 56K 72K 78643K 7549 0 UVM aobj 89 6K 6K 78643K 105 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 2505 0 NDP 20 0K 0K 78643K 61 0 temp 164 3031K 3109K 78643K 29024 0 kqueue 3 4K 16K 78643K 82 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 26 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 131 0 129 1 0 1 1 0 8 0 rtentry 112 154 0 124 2 0 2 2 0 8 0 unpcb 120 815 0 805 2 1 1 2 0 8 0 syncache 264 17 0 17 6 5 1 1 0 8 1 tcpqe 32 171 0 171 3 3 0 1 0 8 0 tcpcb 544 2365 0 2361 3 2 1 2 0 8 0 inpcb 280 8389 0 8381 15 12 3 5 0 8 2 rttmr 72 8 0 8 4 4 0 1 0 8 0 nd6 48 23 0 21 1 0 1 1 0 8 0 pkpcb 40 19 0 19 6 5 1 1 0 8 1 ppxss 1128 6 0 6 5 5 0 1 0 8 0 pffrag 232 7 0 7 3 3 0 1 0 482 0 pffrnode 88 7 0 7 3 3 0 1 0 8 0 pffrent 40 143 0 143 4 4 0 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 113 0 77 1 0 1 1 0 8 0 pfstkey 112 113 0 77 2 0 2 2 0 8 0 pfstate 328 113 0 77 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 828 0 685 17 5 12 15 0 8 0 art_table 32 830 0 685 2 0 2 2 0 8 0 art_node 16 148 0 122 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 219 0 209 1 0 1 1 0 8 0 shmpl 112 103 0 16 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4041 0 2635 46 0 46 46 0 8 0 ffsino 272 4041 0 2635 95 0 95 95 0 8 0 nchpl 144 7226 0 5619 61 0 61 61 0 8 0 uvmvnodes 72 5864 0 0 107 0 107 107 0 8 0 vnodes 208 5864 0 0 309 0 309 309 0 8 0 namei 1024 21259 0 21259 1 0 1 1 0 8 1 percpumem 16 59 0 27 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 16 0 12 2 1 1 1 0 8 0 scxspl 192 21130 0 21130 12 9 3 5 0 8 3 plimitpl 152 87 0 79 1 0 1 1 0 8 0 sigapl 424 2364 0 2331 4 0 4 4 0 8 0 futexpl 56 46010 0 46010 1 0 1 1 0 8 1 knotepl 112 195 0 176 1 0 1 1 0 8 0 kqueuepl 144 355 0 353 1 0 1 1 0 8 0 pipelkpl 48 360 0 350 1 0 1 1 0 8 0 pipepl 120 720 0 701 2 1 1 2 0 8 0 fdescpl 496 2345 0 2329 3 0 3 3 0 8 0 filepl 152 19441 0 19340 13 7 6 7 0 8 1 lockfpl 104 316 0 315 1 0 1 1 0 8 0 lockfspl 48 106 0 105 1 0 1 1 0 8 0 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 1015 0 1006 1 0 1 1 0 8 0 zombiepl 144 2331 0 2330 1 0 1 1 0 8 0 processpl 960 2364 0 2330 5 0 5 5 0 8 0 procpl 624 6510 0 6466 7 3 4 5 0 8 0 sosppl 128 53 0 53 4 3 1 1 0 8 1 sockpl 400 9508 0 9488 20 15 5 8 0 8 2 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 16 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 19 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 177 0 0 22 0 22 22 0 8 0 mtagpl 80 93 0 0 2 0 2 2 0 8 0 mbufpl 256 835 0 0 46 1 45 45 0 8 0 bufpl 280 7812 0 1545 448 0 448 448 0 8 0 anonpl 16 238092 0 219782 116 27 89 91 0 124 12 amapchunkpl 152 13695 0 13552 35 15 20 20 0 158 10 amappl16 192 12366 0 11356 102 45 57 63 0 8 6 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 105 0 104 2 1 1 1 0 8 0 amappl13 168 174 0 172 1 0 1 1 0 8 0 amappl12 160 222 0 220 1 0 1 1 0 8 0 amappl11 152 84 0 66 1 0 1 1 0 8 0 amappl10 144 1669 0 1661 1 0 1 1 0 8 0 amappl9 136 398 0 394 1 0 1 1 0 8 0 amappl8 128 413 0 377 3 1 2 2 0 8 0 amappl7 120 1779 0 1763 1 0 1 1 0 8 0 amappl6 112 31 0 27 1 0 1 1 0 8 0 amappl5 104 2433 0 2415 1 0 1 1 0 8 0 amappl4 96 683 0 655 1 0 1 1 0 8 0 amappl3 88 170 0 165 1 0 1 1 0 8 0 amappl2 80 17707 0 17634 3 1 2 3 0 8 0 amappl1 72 59119 0 58682 27 18 9 20 0 8 0 amappl 80 6858 0 6809 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 104 0 16 2 0 2 2 0 8 0 uaddrrnd 24 2361 0 2341 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2361 0 2341 1 0 1 1 0 8 0 vmmpekpl 168 20080 0 20051 2 0 2 2 0 8 0 vmmpepl 168 293801 0 291625 198 85 113 129 0 357 13 vmsppl 368 2360 0 2341 2 0 2 2 0 8 0 pdppl 4096 4730 0 4686 6 0 6 6 0 8 0 pvpl 32 607248 0 586274 248 42 206 208 0 265 32 pmappl 232 2360 0 2341 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 237 0 29 6 0 6 6 0 8 0