panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *500031 43689 0 0 0x4000000 0K syz-executor.1 124106 7358 0 0x2 0 1 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824a3523) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000ac6000,ffff800000b14b00,ffff800021f805a0) at ifa_update_broadaddr+0x61 sys/net/if.c:3074 in_ioctl(80206913,ffff800021f80590,ffff800000ac6000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd8064781340,80206913,ffff800021f80590,ffff800020e38af0) at ifioctl+0xe70 sys/net/if.c:2285 soo_ioctl(fffffd80683d26a0,80206913,ffff800021f80590,ffff800020e38af0) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e38af0,ffff800021f806a8,ffff800021f806f0) at sys_ioctl+0x4a5 syscall(ffff800021f80770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f80770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21d58bbc550, 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(ffffffff824a3523) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000ac6000,ffff800000b14b00,ffff800021f805a0) at ifa_update_broadaddr+0x61 sys/net/if.c:3074 in_ioctl(80206913,ffff800021f80590,ffff800000ac6000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd8064781340,80206913,ffff800021f80590,ffff800020e38af0) at ifioctl+0xe70 sys/net/if.c:2285 soo_ioctl(fffffd80683d26a0,80206913,ffff800021f80590,ffff800020e38af0) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e38af0,ffff800021f806a8,ffff800021f806f0) at sys_ioctl+0x4a5 syscall(ffff800021f80770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f80770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21d58bbc550, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021f802c0 rbx 0xffff800021f80370 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff821bbd5f kprintf+0x16f r9 0x1 r10 0x2 r11 0x2620fad6c31e3979 r12 0x3000000008 r13 0xffff800021f802d0 r14 0x100 r15 0x1 rip 0xffffffff82246688 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021f802b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=500031 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020e38d60,0xffffffff828bfa58 process=0xffff800022ae8038 user=0xffff800021f7b000, vmspace=0xfffffd80648b6b90 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43689 138354 31287 0 2 0 syz-executor.1 *43689 500031 31287 0 7 0x4000000 syz-executor.1 31287 27028 7358 0 3 0x82 nanosleep syz-executor.1 24157 329301 0 0 3 0x14280 nfsidl nfsio 1027 263574 0 0 3 0x14280 nfsidl nfsio 84853 66077 0 0 3 0x14280 nfsidl nfsio 84723 487236 0 0 3 0x14280 nfsidl nfsio 16658 81761 0 0 3 0x14280 nfsidl nfsio 78155 314444 0 0 3 0x14280 nfsidl nfsio 9246 396518 0 0 3 0x14280 nfsidl nfsio 79520 340809 0 0 3 0x14280 nfsidl nfsio 6292 10549 0 0 3 0x14280 nfsidl nfsio 29817 172217 0 0 3 0x14280 nfsidl nfsio 1356 81466 0 0 3 0x14280 nfsidl nfsio 65975 330476 0 0 3 0x14280 nfsidl nfsio 18141 347413 0 0 3 0x14280 nfsidl nfsio 43902 305958 0 0 3 0x14280 nfsidl nfsio 16205 355581 0 0 3 0x14280 nfsidl nfsio 46588 20185 0 0 3 0x14280 nfsidl nfsio 80796 231334 0 0 3 0x14280 nfsidl nfsio 44967 476514 0 0 3 0x14280 nfsidl nfsio 67901 493670 0 0 3 0x14280 nfsidl nfsio 50376 449681 0 0 3 0x14280 nfsidl nfsio 53699 398349 0 0 3 0x14200 bored sosplice 71670 255796 7358 0 3 0x82 piperd syz-executor.0 7358 124106 38713 0 7 0x2 syz-fuzzer 7358 448259 38713 0 3 0x4000082 nanosleep syz-fuzzer 7358 257544 38713 0 3 0x4000082 thrsleep syz-fuzzer 7358 138841 38713 0 3 0x4000082 thrsleep syz-fuzzer 7358 95360 38713 0 3 0x4000082 thrsleep syz-fuzzer 7358 302565 38713 0 3 0x4000082 thrsleep syz-fuzzer 7358 96075 38713 0 3 0x4000082 thrsleep syz-fuzzer 7358 331281 38713 0 3 0x4000082 kqread syz-fuzzer 7358 499409 38713 0 3 0x4000082 thrsleep syz-fuzzer 7358 339044 38713 0 3 0x4000082 thrsleep syz-fuzzer 38713 509849 62371 0 3 0x10008a pause ksh 62371 449198 99873 0 3 0x92 select sshd 79777 494064 1 0 3 0x100083 ttyin getty 99873 108077 1 0 3 0x80 select sshd 54072 381699 68155 74 3 0x100092 bpf pflogd 68155 198513 1 0 3 0x80 netio pflogd 49492 305075 39522 73 3 0x100090 kqread syslogd 39522 148361 1 0 3 0x100082 netio syslogd 91663 52699 1 77 3 0x100090 poll dhclient 49370 311221 1 0 3 0x80 poll dhclient 38066 313973 0 0 3 0x14200 bored smr 15587 465370 0 0 2 0x14200 zerothread 21877 280705 0 0 3 0x14200 aiodoned aiodoned 49741 420433 0 0 3 0x14200 syncer update 72323 330262 0 0 3 0x14200 cleaner cleaner 65392 180749 0 0 3 0x14200 reaper reaper 94906 75834 0 0 3 0x14200 pgdaemon pagedaemon 50175 33419 0 0 3 0x14200 bored crynlk 45785 410548 0 0 3 0x14200 bored crypto 92072 455003 0 0 3 0x40014200 acpi0 acpi0 66727 209374 0 0 3 0x40014200 idle1 57652 416775 0 0 3 0x14200 bored softnet 25543 406011 0 0 3 0x14200 bored systqmp 30026 374008 0 0 3 0x14200 bored systq 82386 379039 0 0 3 0x40014200 bored softclock 28057 105305 0 0 3 0x40014200 idle0 1 289380 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 43689 (syz-executor.1) thread 0xffff800020e38af0 (500031) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9521 6434K 6692K 78643K 11350 0 pcb 13 8K 8K 78643K 116 0 rtable 98 5K 9K 78643K 544 0 ifaddr 104 22K 22K 78643K 209 0 counters 43 33K 34K 78643K 69 0 ioctlops 0 0K 4K 78643K 1582 0 iov 0 0K 16K 78643K 60 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 77K 78643K 1470 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 28 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 757 0 sigio 1 0K 0K 78643K 19 0 proc 61 63K 95K 78643K 524 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 28 0 in_multi 125 5K 5K 78643K 250 0 ether_multi 1 0K 0K 78643K 17 0 mrt 0 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 253 0 pfkey data 0 0K 0K 78643K 2 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 134 88K 88K 78643K 3173 0 UVM aobj 18 2K 2K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 94 0 NDP 12 0K 0K 78643K 35 0 temp 129 3871K 4107K 78643K 13333 0 kqueue 3 4K 18K 78643K 32 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 33 0 31 1 0 1 1 0 8 0 rtentry 112 101 0 66 2 0 2 2 0 8 0 unpcb 120 602 0 591 2 1 1 2 0 8 0 syncache 264 14 0 14 6 6 0 1 0 8 0 tcpqe 32 988 0 988 2 2 0 1 0 8 0 tcpcb 544 1176 0 1170 3 2 1 2 0 8 0 inpcb 296 1769 0 1759 3 1 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 15 0 9 1 0 1 1 0 8 0 pkpcb 40 10 0 10 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 5 0 3 1 0 1 1 0 482 0 pffrnode 88 5 0 3 1 0 1 1 0 8 0 pffrent 40 10 0 8 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 pfrktable 1344 44 0 39 2 1 1 2 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 16 0 14 1 0 1 1 0 8 0 pfstkey 112 16 0 14 1 0 1 1 0 8 0 pfstate 328 15 0 13 2 0 2 2 0 8 1 pfrule 1360 37 0 29 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 568 0 391 14 2 12 12 0 8 0 art_table 32 569 0 391 2 0 2 2 0 8 0 art_node 16 100 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 3 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 30 0 15 4 3 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2341 0 938 92 4 88 89 0 8 0 ffsino 272 2341 0 938 95 1 94 94 0 8 0 nchpl 144 3629 0 2045 60 0 60 60 0 8 0 uvmvnodes 72 2563 0 0 47 0 47 47 0 8 0 vnodes 208 2563 0 0 135 0 135 135 0 8 0 namei 1024 9778 0 9778 3 2 1 1 0 8 1 percpumem 16 45 0 13 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 14 0 13 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 10959 0 10959 10 9 1 6 0 8 1 plimitpl 152 61 0 53 1 0 1 1 0 8 0 sigapl 424 990 0 938 6 0 6 6 0 8 0 futexpl 56 13240 0 13240 2 1 1 1 0 8 1 knotepl 112 108 0 89 1 0 1 1 0 8 0 kqueuepl 144 94 0 90 1 0 1 1 0 8 0 pipepl 304 201 0 191 5 3 2 2 0 8 1 fdescpl 496 954 0 938 3 0 3 3 0 8 0 filepl 152 5912 0 5810 7 2 5 5 0 8 1 lockfpl 104 139 0 138 1 0 1 1 0 8 0 lockfspl 48 54 0 53 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 510 0 501 1 0 1 1 0 8 0 zombiepl 144 938 0 938 3 2 1 1 0 8 1 processpl 992 990 0 938 8 1 7 7 0 8 0 procpl 624 2369 0 2307 6 0 6 6 0 8 1 srpgc 64 4 0 4 2 2 0 1 0 8 0 sosppl 128 20 0 20 4 3 1 1 0 8 1 sockpl 400 2416 0 2393 8 4 4 6 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 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 207 0 0 25 0 25 25 0 8 0 mtagpl 96 35 0 0 1 0 1 1 0 8 0 mbufpl 256 264 0 0 15 0 15 15 0 8 0 bufpl 280 5701 0 132 398 0 398 398 0 8 0 anonpl 16 100522 0 82887 75 1 74 74 0 124 0 amapchunkpl 152 5367 0 5207 26 19 7 21 0 158 0 amappl16 192 4409 0 3412 52 1 51 51 0 8 1 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 30 0 22 1 0 1 1 0 8 0 amappl13 168 35 0 32 1 0 1 1 0 8 0 amappl12 160 13 0 11 1 0 1 1 0 8 0 amappl11 152 610 0 592 1 0 1 1 0 8 0 amappl10 144 18 0 13 1 0 1 1 0 8 0 amappl9 136 389 0 388 1 0 1 1 0 8 0 amappl8 128 368 0 336 3 1 2 2 0 8 0 amappl7 120 140 0 127 1 0 1 1 0 8 0 amappl6 112 569 0 566 1 0 1 1 0 8 0 amappl5 104 848 0 831 1 0 1 1 0 8 0 amappl4 96 503 0 474 1 0 1 1 0 8 0 amappl3 88 133 0 128 1 0 1 1 0 8 0 amappl2 80 6578 0 6506 2 0 2 2 0 8 0 amappl1 72 35721 0 35266 23 13 10 18 0 8 0 amappl 80 2615 0 2564 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 32 0 15 1 0 1 1 0 8 0 uaddrrnd 24 962 0 938 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 962 0 938 1 0 1 1 0 8 0 vmmpekpl 168 10328 0 10284 3 0 3 3 0 8 0 vmmpepl 168 126647 0 124456 157 60 97 129 0 357 1 vmsppl 368 961 0 938 3 0 3 3 0 8 0 pdppl 4096 1931 0 1884 9 2 7 7 0 8 1 pvpl 32 318721 0 297822 189 13 176 177 0 265 2 pmappl 232 961 0 938 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 286 0 20 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824a3523) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000ac6000,ffff800000b14b00,ffff800021f805a0) at ifa_update_broadaddr+0x61 sys/net/if.c:3074 in_ioctl(80206913,ffff800021f80590,ffff800000ac6000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd8064781340,80206913,ffff800021f80590,ffff800020e38af0) at ifioctl+0xe70 sys/net/if.c:2285 soo_ioctl(fffffd80683d26a0,80206913,ffff800021f80590,ffff800020e38af0) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e38af0,ffff800021f806a8,ffff800021f806f0) at sys_ioctl+0x4a5 syscall(ffff800021f80770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f80770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21d58bbc550, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0xc002afacd0, count: 12 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0xc002afacd0, count: -3