panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 246366 83478 0 0 0 0 syz-executor.0 *468708 83478 0 0 0x4000000 1K syz-executor.0 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(ffff800000acf000,ffff800000a98f00,ffff8000239aba60) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff8000239aba50,ffff800000acf000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80624a0618,80206913,ffff8000239aba50,ffff800020ab0ee8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0ee8,ffff8000239abb68,ffff8000239abbb0) at sys_ioctl+0x5b9 syscall(ffff8000239abc30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239abc30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,efdeedd6010) at Xsyscall+0x128 end of kernel end trace frame: 0xf00b1967200, 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(ffff800000acf000,ffff800000a98f00,ffff8000239aba60) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff8000239aba50,ffff800000acf000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80624a0618,80206913,ffff8000239aba50,ffff800020ab0ee8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0ee8,ffff8000239abb68,ffff8000239abbb0) at sys_ioctl+0x5b9 syscall(ffff8000239abc30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239abc30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,efdeedd6010) at Xsyscall+0x128 end of kernel end trace frame: 0xf00b1967200, count: -8 ddb{1}> show registers rdi 0xffffffff819f8947 db_enter+0x17 rsi 0x15bf __ALIGN_SIZE+0x5bf rbp 0xffff8000239ab7f0 rbx 0xffff8000239ab8a0 rdx 0x15c0 __ALIGN_SIZE+0x5c0 rcx 0xffff800023d84000 rax 0xffff800023d84000 r8 0xffffffff81b887df kprintf+0x16f r9 0x1 r10 0x25 r11 0x960210611421ba9d r12 0x3000000008 r13 0xffff8000239ab800 r14 0x100 r15 0x1 rip 0xffffffff819f8948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239ab7e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=468708 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffffffff826269b8 process=0xffff800020adc700 user=0xffff8000239a6000, vmspace=0xfffffd807f00bcf0 estcpu=32, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 83478 246366 90005 0 7 0 syz-executor.0 *83478 468708 90005 0 7 0x4000000 syz-executor.0 70167 319417 32507 0 2 0 syz-executor.1 70167 134121 32507 0 3 0x4000080 fsleep syz-executor.1 32507 317867 62501 0 3 0x82 nanosleep syz-executor.1 90005 517785 62501 0 3 0x82 nanosleep syz-executor.0 64879 418846 0 0 3 0x14200 bored sosplice 62501 118432 61973 0 3 0x82 thrsleep syz-fuzzer 62501 476106 61973 0 3 0x4000082 nanosleep syz-fuzzer 62501 161501 61973 0 3 0x4000082 thrsleep syz-fuzzer 62501 143287 61973 0 3 0x4000082 thrsleep syz-fuzzer 62501 213496 61973 0 3 0x4000082 thrsleep syz-fuzzer 62501 173079 61973 0 3 0x4000082 thrsleep syz-fuzzer 62501 166820 61973 0 3 0x4000082 thrsleep syz-fuzzer 62501 307580 61973 0 3 0x4000082 thrsleep syz-fuzzer 62501 21019 61973 0 3 0x4000082 thrsleep syz-fuzzer 62501 442218 61973 0 3 0x4000082 kqread syz-fuzzer 61973 394798 82034 0 3 0x10008a pause ksh 82034 2419 17393 0 3 0x92 select sshd 65877 97780 1 0 3 0x100083 ttyin getty 17393 226283 1 0 3 0x80 select sshd 23863 71453 95639 74 3 0x100092 bpf pflogd 95639 464096 1 0 3 0x80 netio pflogd 49425 100129 64461 73 3 0x100090 kqread syslogd 64461 256537 1 0 3 0x100082 netio syslogd 8536 294143 1 77 3 0x100090 poll dhclient 28096 137845 1 0 3 0x80 poll dhclient 46989 6353 0 0 2 0x14200 zerothread 439 117970 0 0 3 0x14200 aiodoned aiodoned 5857 448095 0 0 3 0x14200 syncer update 78888 400923 0 0 3 0x14200 cleaner cleaner 48680 115884 0 0 3 0x14200 reaper reaper 61837 251060 0 0 3 0x14200 pgdaemon pagedaemon 94396 59539 0 0 3 0x14200 bored crynlk 33139 120829 0 0 3 0x14200 bored crypto 70087 437978 0 0 3 0x40014200 acpi0 acpi0 54579 309615 0 0 3 0x40014200 idle1 48079 52840 0 0 3 0x14200 bored softnet 39232 170405 0 0 3 0x14200 bored systqmp 11075 24368 0 0 3 0x14200 bored systq 37409 207965 0 0 3 0x40014200 bored softclock 17248 50946 0 0 3 0x40014200 idle0 52367 335963 0 0 3 0x14200 bored smr 1 286628 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 83478 (syz-executor.0) thread 0xffff800020ab0ee8 (468708) 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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9533 6411K 7307K 78643K 11648 0 0 pcb 14 10K 12K 78643K 96 0 0 rtable 91 4K 4K 78643K 407 0 0 ifaddr 62 13K 14K 78643K 126 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1497 0 0 iov 0 0K 16K 78643K 78 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 1596 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 6 0 0 VM map 2 1K 1K 78643K 3 0 0 sem 12 0K 1K 78643K 300 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 460 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 61 63K 83K 78643K 573 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 29 0 0 in_multi 22 1K 2K 78643K 71 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 283 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 124 22K 38K 78643K 2475 0 0 UVM aobj 130 4K 4K 78643K 130 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 0K 78643K 101 0 0 NDP 14 0K 0K 78643K 36 0 0 temp 185 3560K 3628K 78643K 8732 0 0 kqueue 0 0K 0K 78643K 7 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 64 0 62 1 0 1 1 0 8 0 rtentry 112 65 0 31 2 0 2 2 0 8 0 unpcb 120 290 0 279 1 0 1 1 0 8 0 syncache 264 9 0 9 3 3 0 1 0 8 0 tcpqe 32 4 0 4 2 2 0 1 0 8 0 tcpcb 544 740 0 730 14 8 6 13 0 8 4 inpcb 280 1129 0 1115 10 5 5 9 0 8 3 ip6q 72 1 0 0 1 0 1 1 0 8 0 nd6 48 8 0 6 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 ppxss 1128 10 0 10 3 2 1 1 0 8 1 pffrag 232 12 0 12 2 2 0 1 0 482 0 pffrnode 88 12 0 12 2 2 0 1 0 8 0 pffrent 40 407 0 407 2 2 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 63 0 10 1 0 1 1 0 8 0 pfstkey 112 63 0 10 2 0 2 2 0 8 0 pfstate 328 63 0 10 5 0 5 5 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 301 0 129 17 3 14 14 0 8 2 art_table 32 302 0 129 2 0 2 2 0 8 0 art_node 16 64 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 49 0 27 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 298 0 288 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2073 0 668 46 0 46 46 0 8 0 ffsino 272 2073 0 668 94 0 94 94 0 8 0 nchpl 144 3041 0 1437 61 1 60 61 0 8 0 uvmvnodes 72 2404 0 0 44 0 44 44 0 8 0 vnodes 208 2404 0 0 127 0 127 127 0 8 0 namei 1024 8869 0 8869 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 1 0 1 1 1 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 8929 0 8929 7 6 1 5 0 8 1 plimitpl 152 60 0 52 1 0 1 1 0 8 0 sigapl 432 652 0 636 3 1 2 3 0 8 0 futexpl 56 10816 0 10815 1 0 1 1 0 8 0 knotepl 112 127 0 108 1 0 1 1 0 8 0 kqueuepl 104 246 0 244 4 3 1 4 0 8 0 pipepl 112 380 0 361 1 0 1 1 0 8 0 fdescpl 488 653 0 636 3 0 3 3 0 8 0 filepl 152 5146 0 5042 15 7 8 14 0 8 4 lockfpl 104 107 0 106 1 0 1 1 0 8 0 lockfspl 48 40 0 39 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 610 0 601 1 0 1 1 0 8 0 zombiepl 144 636 0 636 1 0 1 1 0 8 1 processpl 896 669 0 636 4 0 4 4 0 8 0 procpl 632 1606 0 1562 6 1 5 5 0 8 1 srpgc 64 6 0 6 3 2 1 1 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 384 1488 0 1461 16 9 7 14 0 8 4 mcl64k 65536 272 0 0 34 0 34 34 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 160 0 0 19 0 19 19 0 8 0 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 385 0 0 24 0 24 24 0 8 0 bufpl 256 7477 0 1312 386 0 386 386 0 8 0 anonpl 16 88643 0 71853 96 1 95 95 0 124 14 amapchunkpl 152 3976 0 3819 14 6 8 14 0 158 0 amappl16 192 3645 0 2588 69 8 61 65 0 8 8 amappl14 176 244 0 240 1 0 1 1 0 8 0 amappl12 160 37 0 30 2 1 1 1 0 8 0 amappl11 152 65 0 50 1 0 1 1 0 8 0 amappl10 144 153 0 144 1 0 1 1 0 8 0 amappl9 136 698 0 695 1 0 1 1 0 8 0 amappl8 128 267 0 235 2 0 2 2 0 8 0 amappl7 120 176 0 169 1 0 1 1 0 8 0 amappl6 112 58 0 50 1 0 1 1 0 8 0 amappl5 104 178 0 162 1 0 1 1 0 8 0 amappl4 96 908 0 877 1 0 1 1 0 8 0 amappl3 88 137 0 131 1 0 1 1 0 8 0 amappl2 80 4254 0 4173 3 1 2 3 0 8 0 amappl1 72 24148 0 23701 26 16 10 20 0 8 0 amappl 80 1894 0 1842 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 0 3 0 3 3 0 8 0 uaddrrnd 24 654 0 636 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 654 0 636 1 0 1 1 0 8 0 vmmpekpl 168 9326 0 9293 2 0 2 2 0 8 0 vmmpepl 168 88880 0 86572 161 23 138 138 0 357 37 vmsppl 368 652 0 636 2 0 2 2 0 8 0 pdppl 4096 1315 0 1274 6 0 6 6 0 8 0 pvpl 32 262467 0 242380 222 0 222 222 0 265 36 pmappl 232 653 0 637 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 612 0 16 18 0 18 18 0 8 0