panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 479038 41895 0 0 0 1 syz-executor.1 *117690 41895 0 0 0x4000000 0K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8249f7d8) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000af5000,ffff800000b57900,ffff8000241bd0b0) at ifa_update_broadaddr+0x61 sys/net/if.c:3071 in_ioctl(80206913,ffff8000241bd0a0,ffff800000af5000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd807b3b4cb0,80206913,ffff8000241bd0a0,ffff80002419b618) at ifioctl+0xe70 sys/net/if.c:2282 soo_ioctl(fffffd806ca64a28,80206913,ffff8000241bd0a0,ffff80002419b618) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff80002419b618,ffff8000241bd1b8,ffff8000241bd200) at sys_ioctl+0x4a5 syscall(ffff8000241bd280) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000241bd280) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1b3457bc8f0, 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(ffffffff8249f7d8) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000af5000,ffff800000b57900,ffff8000241bd0b0) at ifa_update_broadaddr+0x61 sys/net/if.c:3071 in_ioctl(80206913,ffff8000241bd0a0,ffff800000af5000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd807b3b4cb0,80206913,ffff8000241bd0a0,ffff80002419b618) at ifioctl+0xe70 sys/net/if.c:2282 soo_ioctl(fffffd806ca64a28,80206913,ffff8000241bd0a0,ffff80002419b618) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff80002419b618,ffff8000241bd1b8,ffff8000241bd200) at sys_ioctl+0x4a5 syscall(ffff8000241bd280) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000241bd280) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1b3457bc8f0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000241bcdd0 rbx 0xffff8000241bce80 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff818bab4f kprintf+0x16f r9 0x1 r10 0x2 r11 0x74402e13c2bc0954 r12 0x3000000008 r13 0xffff8000241bcde0 r14 0x100 r15 0x1 rip 0xffffffff820dd498 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000241bcdc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=117690 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002419aec8,0xffffffff8292ae38 process=0xffff800024168bb8 user=0xffff8000241b8000, vmspace=0xfffffd807f000a10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 59488 315070 16166 0 3 0x80 nanosleep syz-executor.0 59488 505714 16166 0 3 0x4000080 poll syz-executor.0 41895 479038 21233 0 7 0 syz-executor.1 41895 409201 21233 0 3 0x4000080 netcon syz-executor.1 41895 390242 21233 0 3 0x4000080 netcon syz-executor.1 *41895 117690 21233 0 7 0x4000000 syz-executor.1 16166 131802 86049 0 2 0x482 syz-executor.0 74312 3974 1 0 3 0x100083 ttyin getty 70995 323821 0 0 3 0x14200 bored sosplice 79911 465817 0 0 3 0x14200 acct acct 24523 368696 0 0 3 0x14280 nfsidl nfsio 85039 353668 0 0 3 0x14280 nfsidl nfsio 55887 141533 0 0 3 0x14280 nfsidl nfsio 52883 511717 0 0 3 0x14280 nfsidl nfsio 67432 419449 0 0 3 0x14280 nfsidl nfsio 28818 163701 0 0 3 0x14280 nfsidl nfsio 69065 37127 0 0 3 0x14280 nfsidl nfsio 88246 67135 0 0 3 0x14280 nfsidl nfsio 93031 72152 0 0 3 0x14280 nfsidl nfsio 49045 284890 0 0 3 0x14280 nfsidl nfsio 56956 211162 0 0 3 0x14280 nfsidl nfsio 99056 415507 0 0 3 0x14280 nfsidl nfsio 92894 36840 0 0 3 0x14280 nfsidl nfsio 74849 207053 0 0 3 0x14280 nfsidl nfsio 14247 414054 0 0 3 0x14280 nfsidl nfsio 7462 408874 0 0 3 0x14280 nfsidl nfsio 89016 486375 0 0 3 0x14280 nfsidl nfsio 19290 112182 0 0 3 0x14280 nfsidl nfsio 44466 92768 0 0 3 0x14280 nfsidl nfsio 34360 491678 0 0 3 0x14280 nfsidl nfsio 21233 341917 86049 0 3 0x82 nanosleep syz-executor.1 86049 393915 59655 0 3 0x82 thrsleep syz-fuzzer 86049 83144 59655 0 3 0x4000082 thrsleep syz-fuzzer 86049 73612 59655 0 3 0x4000082 thrsleep syz-fuzzer 86049 275195 59655 0 3 0x4000082 kqread syz-fuzzer 86049 430596 59655 0 3 0x4000082 thrsleep syz-fuzzer 86049 281179 59655 0 3 0x4000082 thrsleep syz-fuzzer 86049 245442 59655 0 3 0x4000082 thrsleep syz-fuzzer 86049 191696 59655 0 3 0x4000082 thrsleep syz-fuzzer 86049 391844 59655 0 3 0x4000082 thrsleep syz-fuzzer 86049 49439 59655 0 3 0x4000082 thrsleep syz-fuzzer 59655 475157 95517 0 3 0x10008a pause ksh 95517 70705 3337 0 3 0x92 select sshd 3337 157031 1 0 3 0x80 select sshd 47764 62684 21606 74 3 0x100092 bpf pflogd 21606 210906 1 0 3 0x80 netio pflogd 66916 235418 64768 73 3 0x100090 kqread syslogd 64768 49660 1 0 3 0x100082 netio syslogd 43433 78729 1 77 3 0x100090 poll dhclient 71167 64865 1 0 3 0x80 poll dhclient 62450 127414 0 0 3 0x14200 bored smr 43046 79446 0 0 3 0x14200 pgzero zerothread 18480 370752 0 0 3 0x14200 aiodoned aiodoned 38048 271343 0 0 3 0x14200 syncer update 48882 380805 0 0 3 0x14200 cleaner cleaner 77510 266105 0 0 3 0x14200 reaper reaper 67468 38758 0 0 3 0x14200 pgdaemon pagedaemon 76121 175345 0 0 3 0x14200 bored crynlk 35003 498085 0 0 3 0x14200 bored crypto 69890 477863 0 0 3 0x40014200 acpi0 acpi0 14382 335265 0 0 3 0x40014200 idle1 9572 18843 0 0 3 0x14200 bored softnet 34010 13819 0 0 3 0x14200 bored systqmp 83382 372209 0 0 3 0x14200 bored systq 54297 448154 0 0 3 0x40014200 bored softclock 77389 368903 0 0 3 0x40014200 idle0 1 142847 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 41895 (syz-executor.1) thread 0xffff80002419b618 (117690) exclusive rwlock netlock r = 0 (0xffffffff827578e8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 in_ioctl+0x1f5 #2 ifioctl+0xe70 sys/net/if.c:2282 #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 (0xffffffff82928050) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 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 9541 6456K 6968K 78643K 11530 0 pcb 13 8K 8K 78643K 146 0 rtable 99 16K 17K 78643K 558 0 ifaddr 94 17K 17K 78643K 208 0 counters 43 33K 34K 78643K 67 0 ioctlops 0 0K 4K 78643K 1577 0 iov 0 0K 16K 78643K 103 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1552 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 19 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 140 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 700 0 sigio 0 0K 0K 78643K 11 0 proc 61 63K 95K 78643K 560 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 55 0 in_multi 43 2K 2K 78643K 152 0 ether_multi 1 0K 0K 78643K 17 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 280 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 140 56K 56K 78643K 3582 0 UVM aobj 42 4K 4K 78643K 46 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 98 0 NDP 15 0K 0K 78643K 41 0 temp 147 3873K 3937K 78643K 14776 0 kqueue 3 4K 22K 78643K 35 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 10 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 60 0 58 1 0 1 1 0 8 0 rtentry 112 94 0 69 2 0 2 2 0 8 0 unpcb 120 443 0 431 1 0 1 1 0 8 0 syncache 264 15 0 15 5 5 0 1 0 8 0 tcpqe 32 160 0 160 3 3 0 1 0 8 0 tcpcb 544 576 0 569 1 0 1 1 0 8 0 inpcb 296 1174 0 1164 5 3 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 19 0 18 1 0 1 1 0 8 0 ppxss 1128 3 0 3 3 3 0 1 0 8 0 pffrag 232 4 0 3 1 0 1 1 0 482 0 pffrnode 88 4 0 3 1 0 1 1 0 8 0 pffrent 40 10 0 9 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 50 0 40 2 1 1 2 0 8 0 pfstitem 24 17 0 12 1 0 1 1 0 8 0 pfstkey 112 17 0 12 1 0 1 1 0 8 0 pfstate 328 17 0 12 2 1 1 2 0 8 0 pfrule 1360 47 0 25 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 491 0 362 16 7 9 14 0 8 0 art_table 32 492 0 362 2 0 2 2 0 8 0 art_node 16 93 0 72 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 14 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 134 0 124 1 0 1 1 0 8 0 shmpl 112 44 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2332 0 929 89 0 89 89 0 8 0 ffsino 272 2332 0 929 95 0 95 95 0 8 0 nchpl 144 3567 0 1970 60 0 60 60 0 8 0 uvmvnodes 72 2616 0 0 48 0 48 48 0 8 0 vnodes 208 2616 0 0 138 0 138 138 0 8 0 namei 1024 10603 0 10603 2 1 1 1 0 8 1 percpumem 16 44 0 12 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 17 0 12 1 0 1 1 0 8 0 scxspl 192 11066 0 11066 9 8 1 7 0 8 1 plimitpl 152 65 0 57 1 0 1 1 0 8 0 sigapl 424 935 0 881 8 1 7 7 0 8 1 futexpl 56 11609 0 11609 3 2 1 1 0 8 1 knotepl 112 157 0 138 2 1 1 2 0 8 0 kqueuepl 144 323 0 319 1 0 1 1 0 8 0 pipelkpl 48 229 0 219 1 0 1 1 0 8 0 pipepl 120 458 0 439 2 1 1 2 0 8 0 fdescpl 496 898 0 881 3 0 3 3 0 8 0 filepl 152 6467 0 6359 8 3 5 7 0 8 0 lockfpl 104 138 0 137 1 0 1 1 0 8 0 lockfspl 48 45 0 44 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 33 0 22 1 0 1 1 0 8 0 ucredpl 96 677 0 667 1 0 1 1 0 8 0 zombiepl 144 881 0 881 1 0 1 1 0 8 1 processpl 984 935 0 881 7 0 7 7 0 8 0 procpl 624 2674 0 2607 6 0 6 6 0 8 0 srpgc 64 1 0 1 1 1 0 1 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 400 1686 0 1661 10 7 3 6 0 8 0 mcl64k 65536 8 0 0 1 0 1 1 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 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 23 1 22 23 0 8 0 mtagpl 96 39 0 0 1 0 1 1 0 8 0 mbufpl 256 283 0 0 15 0 15 15 0 8 0 bufpl 280 5102 0 139 355 0 355 355 0 8 0 anonpl 16 90815 0 74230 75 7 68 72 0 124 0 amapchunkpl 152 5553 0 5391 16 9 7 14 0 158 0 amappl16 192 3872 0 2961 52 6 46 50 0 8 0 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 23 0 18 1 0 1 1 0 8 0 amappl13 168 491 0 482 1 0 1 1 0 8 0 amappl12 160 329 0 326 1 0 1 1 0 8 0 amappl11 152 65 0 49 1 0 1 1 0 8 0 amappl10 144 18 0 14 1 0 1 1 0 8 0 amappl9 136 385 0 384 1 0 1 1 0 8 0 amappl8 128 383 0 348 2 0 2 2 0 8 0 amappl7 120 135 0 122 1 0 1 1 0 8 0 amappl6 112 28 0 21 1 0 1 1 0 8 0 amappl5 104 892 0 873 1 0 1 1 0 8 0 amappl4 96 736 0 708 1 0 1 1 0 8 0 amappl3 88 357 0 349 1 0 1 1 0 8 0 amappl2 80 6232 0 6154 2 0 2 2 0 8 0 amappl1 72 30146 0 29680 23 13 10 18 0 8 0 amappl 80 2932 0 2879 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 45 0 4 1 0 1 1 0 8 0 uaddrrnd 24 902 0 881 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 902 0 881 1 0 1 1 0 8 0 vmmpekpl 168 11511 0 11466 3 0 3 3 0 8 0 vmmpepl 168 116675 0 114486 146 50 96 124 0 357 0 vmsppl 368 901 0 881 2 0 2 2 0 8 0 pdppl 4096 1811 0 1766 6 0 6 6 0 8 0 pvpl 32 286695 0 266752 183 20 163 175 0 265 0 pmappl 232 901 0 881 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 278 0 19 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(ffffffff8249f7d8) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000af5000,ffff800000b57900,ffff8000241bd0b0) at ifa_update_broadaddr+0x61 sys/net/if.c:3071 in_ioctl(80206913,ffff8000241bd0a0,ffff800000af5000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd807b3b4cb0,80206913,ffff8000241bd0a0,ffff80002419b618) at ifioctl+0xe70 sys/net/if.c:2282 soo_ioctl(fffffd806ca64a28,80206913,ffff8000241bd0a0,ffff80002419b618) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff80002419b618,ffff8000241bd1b8,ffff8000241bd200) at sys_ioctl+0x4a5 syscall(ffff8000241bd280) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000241bd280) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1b3457bc8f0, 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 pvclock_get_timecount(ffffffff82790d08) at pvclock_get_timecount+0x4f sys/dev/pv/pvclock.c:217 nanotime(ffff800020ec3238) at nanotime+0x6c tc_delta sys/kern/kern_tc.c:138 [inline] nanotime(ffff800020ec3238) at nanotime+0x6c bintime sys/kern/kern_tc.c:273 [inline] nanotime(ffff800020ec3238) at nanotime+0x6c sys/kern/kern_tc.c:284 clock_gettime(ffff80002419bd68,0,ffff800020ec3238) at clock_gettime+0x9d sys/kern/kern_time.c:116 sys_clock_gettime(ffff80002419bd68,ffff800020ec32a0,ffff800020ec32f0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020ec3370) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ec3370) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6d20, count: 6 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 pvclock_get_timecount(ffffffff82790d08) at pvclock_get_timecount+0x4f sys/dev/pv/pvclock.c:217 nanotime(ffff800020ec3238) at nanotime+0x6c tc_delta sys/kern/kern_tc.c:138 [inline] nanotime(ffff800020ec3238) at nanotime+0x6c bintime sys/kern/kern_tc.c:273 [inline] nanotime(ffff800020ec3238) at nanotime+0x6c sys/kern/kern_tc.c:284 clock_gettime(ffff80002419bd68,0,ffff800020ec3238) at clock_gettime+0x9d sys/kern/kern_time.c:116 sys_clock_gettime(ffff80002419bd68,ffff800020ec32a0,ffff800020ec32f0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020ec3370) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ec3370) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6d20, count: -9