panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 208131 74351 0 0 0 0 syz-executor.1 * 744 74351 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(ffff800000b11800,ffff800000bb3100,ffff800020b7b4b0) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800020b7b4a0,ffff800000b11800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd806490f7f8,80206913,ffff800020b7b4a0,ffff800020acea30) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acea30,ffff800020b7b5b8,ffff800020b7b600) at sys_ioctl+0x5b9 syscall(ffff800020b7b680) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b7b680) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,36e59eb0010) at Xsyscall+0x128 end of kernel end trace frame: 0x370e20fa1c0, 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(ffff800000b11800,ffff800000bb3100,ffff800020b7b4b0) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800020b7b4a0,ffff800000b11800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd806490f7f8,80206913,ffff800020b7b4a0,ffff800020acea30) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acea30,ffff800020b7b5b8,ffff800020b7b600) at sys_ioctl+0x5b9 syscall(ffff800020b7b680) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b7b680) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,36e59eb0010) at Xsyscall+0x128 end of kernel end trace frame: 0x370e20fa1c0, count: -8 ddb{1}> show registers rdi 0xffffffff819f8947 db_enter+0x17 rsi 0x162c __ALIGN_SIZE+0x62c rbp 0xffff800020b7b240 rbx 0xffff800020b7b2f0 rdx 0x162d __ALIGN_SIZE+0x62d rcx 0xffff800020f4c000 rax 0xffff800020f4c000 r8 0xffffffff81b887df kprintf+0x16f r9 0x1 r10 0x25 r11 0x65b5d2470ea49a80 r12 0x3000000008 r13 0xffff800020b7b250 r14 0x100 r15 0x1 rip 0xffffffff819f8948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b7b230 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=744 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf900,0xffffffff826269b8 process=0xffff800020add500 user=0xffff800020b76000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74351 208131 74390 0 7 0 syz-executor.1 *74351 744 74390 0 7 0x4000000 syz-executor.1 86592 128131 80473 0 3 0x80 nanosleep syz-executor.0 86592 134969 80473 0 3 0x4000080 lockf syz-executor.0 86592 100493 80473 0 3 0x4000080 lockf syz-executor.0 86592 21404 80473 0 3 0x4000080 fsleep syz-executor.0 74390 307024 213 0 3 0x82 nanosleep syz-executor.1 80473 100297 213 0 3 0x82 nanosleep syz-executor.0 51531 320702 1 0 3 0x100083 ttyin getty 7446 281146 0 0 3 0x14200 acct acct 53998 468043 0 0 3 0x14200 bored sosplice 213 473917 56898 0 3 0x82 kqread syz-fuzzer 213 20094 56898 0 3 0x4000082 nanosleep syz-fuzzer 213 376985 56898 0 3 0x4000082 thrsleep syz-fuzzer 213 314099 56898 0 3 0x4000082 thrsleep syz-fuzzer 213 512845 56898 0 3 0x4000082 thrsleep syz-fuzzer 213 38056 56898 0 3 0x4000082 thrsleep syz-fuzzer 213 171456 56898 0 3 0x4000082 thrsleep syz-fuzzer 213 506101 56898 0 3 0x4000082 thrsleep syz-fuzzer 213 109499 56898 0 3 0x4000082 thrsleep syz-fuzzer 213 160395 56898 0 3 0x4000082 thrsleep syz-fuzzer 56898 49208 95658 0 3 0x10008a pause ksh 95658 23067 96598 0 3 0x92 select sshd 96598 481548 1 0 3 0x80 select sshd 84919 469014 9305 74 3 0x100092 bpf pflogd 9305 51244 1 0 3 0x80 netio pflogd 33075 184588 57150 73 3 0x100090 kqread syslogd 57150 27371 1 0 3 0x100082 netio syslogd 38580 39216 1 77 3 0x100090 poll dhclient 17452 263257 1 0 3 0x80 poll dhclient 4122 171918 0 0 3 0x14200 pgzero zerothread 89774 348215 0 0 3 0x14200 aiodoned aiodoned 78271 428313 0 0 3 0x14200 syncer update 35962 71540 0 0 3 0x14200 cleaner cleaner 4157 397909 0 0 3 0x14200 reaper reaper 90695 429560 0 0 3 0x14200 pgdaemon pagedaemon 13110 193362 0 0 3 0x14200 bored crynlk 82478 491502 0 0 3 0x14200 bored crypto 93790 76088 0 0 3 0x40014200 acpi0 acpi0 51773 76475 0 0 3 0x40014200 idle1 88973 328143 0 0 3 0x14200 bored softnet 40973 33406 0 0 3 0x14200 bored systqmp 35680 6761 0 0 3 0x14200 bored systq 49170 423533 0 0 3 0x40014200 bored softclock 75438 294353 0 0 3 0x40014200 idle0 12041 25151 0 0 3 0x14200 bored smr 1 181785 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 74351 (syz-executor.1) thread 0xffff800020acea30 (744) 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 9647 7141K 8172K 78643K 25555 0 0 pcb 13 12K 14K 78643K 1498 0 0 rtable 169 17K 17K 78643K 4045 0 0 ifaddr 118 29K 33K 78643K 1150 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1907 0 0 iov 0 0K 28K 78643K 1386 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 78K 78643K 7245 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 93 0 0 VM map 49 24K 25K 78643K 76 0 0 sem 12 0K 1K 78643K 2729 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 7715 0 0 sigio 0 0K 0K 78643K 498 0 0 proc 62 63K 95K 78643K 3183 0 0 subproc 32 2K 2K 78643K 884 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 1653 0 0 in_multi 37 2K 2K 78643K 902 0 0 ether_multi 1 0K 0K 78643K 76 0 0 mrt 0 0K 0K 78643K 34 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 2740 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 229 468K 484K 78643K 27410 0 0 UVM aobj 130 5K 5K 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 2K 78643K 1663 0 0 NDP 27 0K 1K 78643K 377 0 0 temp 278 3566K 4206K 78643K 167728 0 0 kqueue 0 0K 0K 78643K 48 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 120 0 114 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 584 0 582 1 0 1 1 0 8 0 rtentry 112 714 0 647 3 0 3 3 0 8 0 unpcb 120 3877 0 3857 5 4 1 2 0 8 0 syncache 264 33 0 33 13 13 0 1 0 8 0 tcpqe 32 188 0 188 11 11 0 2 0 8 0 tcpcb 544 4118 0 4114 23 22 1 13 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 15067 0 15059 44 43 1 13 0 8 0 rttmr 72 14 0 13 4 3 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 111 0 108 3 2 1 1 0 8 0 pkpcb 40 40 0 40 11 11 0 1 0 8 0 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 144 0 144 23 22 1 1 0 8 1 pffrag 232 156 0 156 21 20 1 1 0 482 1 pffrnode 88 156 0 156 21 20 1 1 0 8 1 pffrent 40 5496 0 5496 21 20 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 610 0 538 1 0 1 1 0 8 0 pfstkey 112 611 0 539 3 0 3 3 0 8 0 pfstate 328 611 0 538 10 1 9 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 12 0 8 11 7 4 4 0 8 0 art_heap4 256 2983 0 2685 39 19 20 20 0 8 0 art_table 32 2995 0 2693 5 2 3 3 0 8 0 art_node 16 711 0 657 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2727 0 2717 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 17374 0 15935 47 0 47 47 0 8 0 ffsino 272 17374 0 15935 99 2 97 97 0 8 0 nchpl 144 32156 0 31695 61 39 22 61 0 8 0 uvmvnodes 72 6462 0 0 118 0 118 118 0 8 0 vnodes 208 6462 0 0 341 0 341 341 0 8 0 namei 1024 116489 0 116489 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 47 0 0 6 0 6 6 0 8 0 vmpool 552 74 0 27 4 0 4 4 0 8 0 scsiplug 64 18 0 18 11 11 0 1 0 8 0 scxspl 192 101336 0 101336 55 54 1 7 0 8 1 plimitpl 152 523 0 515 1 0 1 1 0 8 0 sigapl 432 7765 0 7749 3 1 2 3 0 8 0 futexpl 56 214301 0 214300 2 1 1 1 0 8 0 knotepl 112 1462 0 1443 3 2 1 3 0 8 0 kqueuepl 104 4359 0 4357 4 3 1 4 0 8 0 pipepl 112 5346 0 5327 14 13 1 2 0 8 0 fdescpl 488 7766 0 7749 3 0 3 3 0 8 0 filepl 152 82515 0 82412 49 44 5 13 0 8 0 lockfpl 104 4677 0 4672 1 0 1 1 0 8 0 lockfspl 48 1897 0 1895 1 0 1 1 0 8 0 sessionpl 112 70 0 59 1 0 1 1 0 8 0 pgrppl 48 171 0 160 1 0 1 1 0 8 0 ucredpl 96 7088 0 7077 1 0 1 1 0 8 0 zombiepl 144 7749 0 7749 4 3 1 1 0 8 1 processpl 896 7783 0 7749 4 0 4 4 0 8 0 procpl 632 23992 0 23945 11 6 5 5 0 8 0 srpgc 64 124 0 124 22 21 1 1 0 8 1 sosppl 128 162 0 162 23 23 0 1 0 8 0 sockpl 384 19802 0 19772 72 68 4 22 0 8 0 mcl64k 65536 589 0 0 58 24 34 34 0 8 0 mcl16k 16384 26 0 0 4 1 3 3 0 8 0 mcl12k 12288 39 0 0 2 0 2 2 0 8 0 mcl9k 9216 31 0 0 3 1 2 2 0 8 0 mcl8k 8192 44 0 0 4 1 3 3 0 8 0 mcl4k 4096 27 0 0 4 1 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 240 0 0 28 8 20 28 0 8 0 mtagpl 80 94 0 0 1 0 1 1 0 8 0 mbufpl 256 764 0 0 28 0 28 28 0 8 0 bufpl 256 29920 0 22862 442 0 442 442 0 8 0 anonpl 16 914111 0 889942 240 134 106 119 0 124 1 amapchunkpl 152 55516 0 55082 106 87 19 25 0 158 0 amappl16 192 40943 0 39660 263 197 66 76 0 8 1 amappl15 184 969 0 969 5 5 0 1 0 8 0 amappl14 176 909 0 902 1 0 1 1 0 8 0 amappl13 168 853 0 853 8 8 0 1 0 8 0 amappl12 160 1266 0 1264 10 9 1 1 0 8 0 amappl11 152 1611 0 1595 1 0 1 1 0 8 0 amappl10 144 998 0 991 1 0 1 1 0 8 0 amappl9 136 2582 0 2579 1 0 1 1 0 8 0 amappl8 128 2119 0 2065 2 0 2 2 0 8 0 amappl7 120 1196 0 1187 1 0 1 1 0 8 0 amappl6 112 1476 0 1458 1 0 1 1 0 8 0 amappl5 104 1837 0 1820 1 0 1 1 0 8 0 amappl4 96 7640 0 7606 1 0 1 1 0 8 0 amappl3 88 2371 0 2358 1 0 1 1 0 8 0 amappl2 80 59317 0 59228 3 1 2 3 0 8 0 amappl1 72 178306 0 177833 25 15 10 20 0 8 0 amappl 80 25205 0 25122 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 7840 0 7749 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7840 0 7749 1 0 1 1 0 8 0 vmmpekpl 168 61570 0 61525 3 0 3 3 0 8 0 vmmpepl 168 1007012 0 1004318 366 208 158 158 0 357 35 vmsppl 368 7765 0 7749 2 0 2 2 0 8 0 pdppl 4096 15687 0 15599 18 6 12 12 0 8 0 pvpl 32 2481274 0 2460143 429 235 194 231 0 265 0 pmappl 232 7839 0 7776 6 2 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 770 0 96 20 0 20 20 0 8 0