panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 43267 68600 0 0 0 0 syz-executor.1 *137480 68600 0 0 0x4000000 1K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff822818dc) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a29000,ffff800000a58b00,ffff800021f712f0) at ifa_update_broadaddr+0x61 sys/net/if.c:3078 in_ioctl(80206913,ffff800021f712e0,ffff800000a29000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd806f6e3640,80206913,ffff800021f712e0,ffff800020ed8288) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd80685f7278,80206913,ffff800021f712e0,ffff800020ed8288) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed8288,ffff800021f713f8,ffff800021f71440) at sys_ioctl+0x4a5 syscall(ffff800021f714c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f714c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8141a3f160, 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{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(ffffffff822818dc) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a29000,ffff800000a58b00,ffff800021f712f0) at ifa_update_broadaddr+0x61 sys/net/if.c:3078 in_ioctl(80206913,ffff800021f712e0,ffff800000a29000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd806f6e3640,80206913,ffff800021f712e0,ffff800020ed8288) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd80685f7278,80206913,ffff800021f712e0,ffff800020ed8288) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed8288,ffff800021f713f8,ffff800021f71440) at sys_ioctl+0x4a5 syscall(ffff800021f714c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f714c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8141a3f160, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021f71010 rbx 0xffff800021f710c0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81094aef kprintf+0x16f r9 0x1 r10 0x2 r11 0x54fa8e2b7c48bc5a r12 0x3000000008 r13 0xffff800021f71020 r14 0x100 r15 0x1 rip 0xffffffff812e6148 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021f71000 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=137480 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ed9608,0xffffffff8268eee0 process=0xffff800020ecfb08 user=0xffff800021f6c000, vmspace=0xfffffd806e95b178 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 68600 43267 14861 0 7 0 syz-executor.1 *68600 137480 14861 0 7 0x4000000 syz-executor.1 47749 71843 0 0 3 0x14200 acct acct 29485 297627 0 0 3 0x14200 bored sosplice 14861 385752 42962 0 3 0x82 nanosleep syz-executor.1 24794 287528 42962 0 3 0x82 piperd syz-executor.0 42962 60931 61486 0 3 0x82 thrsleep syz-fuzzer 42962 60275 61486 0 3 0x4000082 nanosleep syz-fuzzer 42962 39865 61486 0 3 0x4000082 thrsleep syz-fuzzer 42962 323382 61486 0 2 0x4000002 syz-fuzzer 42962 458596 61486 0 3 0x4000082 thrsleep syz-fuzzer 42962 45305 61486 0 3 0x4000082 thrsleep syz-fuzzer 42962 420167 61486 0 3 0x4000082 kqread syz-fuzzer 42962 211541 61486 0 3 0x4000082 thrsleep syz-fuzzer 42962 278990 61486 0 3 0x4000082 thrsleep syz-fuzzer 42962 346317 61486 0 3 0x4000082 thrsleep syz-fuzzer 61486 75127 28194 0 3 0x10008a pause ksh 28194 363694 875 0 3 0x92 select sshd 16892 328370 1 0 3 0x100083 ttyin getty 875 121860 1 0 3 0x80 select sshd 16121 171881 83078 74 3 0x100092 bpf pflogd 83078 368454 1 0 3 0x80 netio pflogd 22368 387096 44780 73 3 0x100090 kqread syslogd 44780 311414 1 0 3 0x100082 netio syslogd 38596 94309 1 77 3 0x100090 poll dhclient 10488 435160 1 0 3 0x80 poll dhclient 75104 309243 0 0 3 0x14200 bored smr 38173 335023 0 0 2 0x14200 zerothread 30495 29402 0 0 3 0x14200 aiodoned aiodoned 28200 211067 0 0 3 0x14200 syncer update 30429 331806 0 0 3 0x14200 cleaner cleaner 46212 166400 0 0 3 0x14200 reaper reaper 2528 286349 0 0 3 0x14200 pgdaemon pagedaemon 89834 103242 0 0 3 0x14200 bored crynlk 33338 390712 0 0 3 0x14200 bored crypto 50169 139790 0 0 3 0x40014200 acpi0 acpi0 66424 426522 0 0 3 0x40014200 idle1 15657 228834 0 0 3 0x14200 bored softnet 66165 296893 0 0 3 0x14200 bored systqmp 17162 152196 0 0 3 0x14200 bored systq 24372 240043 0 0 3 0x40014200 bored softclock 6671 493973 0 0 3 0x40014200 idle0 1 455121 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 68600 (syz-executor.1) thread 0xffff800020ed8288 (137480) exclusive rwlock netlock r = 0 (0xffffffff82508758) #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:2289 #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 (0xffffffff82688088) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9552 6429K 6817K 78643K 11789 0 pcb 13 8K 8K 78643K 104 0 rtable 83 3K 4K 78643K 396 0 ifaddr 103 18K 19K 78643K 194 0 counters 43 33K 34K 78643K 71 0 ioctlops 0 0K 4K 78643K 1503 0 iov 0 0K 16K 78643K 86 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 1581 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 14 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 126 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 509 0 sigio 0 0K 0K 78643K 13 0 proc 63 63K 95K 78643K 503 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 42 0 in_multi 81 3K 3K 78643K 133 0 ether_multi 1 0K 0K 78643K 12 0 mrt 0 0K 0K 78643K 4 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 256 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 139 88K 88K 78643K 2502 0 UVM aobj 41 4K 4K 78643K 43 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 84 0 NDP 17 0K 0K 78643K 37 0 temp 143 3048K 3114K 78643K 14758 0 kqueue 3 4K 21K 78643K 48 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 67 0 65 1 0 1 1 0 8 0 rtentry 112 64 0 34 2 0 2 2 0 8 0 unpcb 120 593 0 583 1 0 1 1 0 8 0 syncache 264 11 0 11 3 3 0 1 0 8 0 tcpqe 32 127 0 127 1 1 0 1 0 8 0 tcpcb 544 639 0 634 2 1 1 2 0 8 0 inpcb 280 1066 0 1058 4 2 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 2 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 13 0 13 3 2 1 1 0 482 1 pffrnode 88 13 0 13 3 2 1 1 0 8 1 pffrent 40 416 0 416 3 2 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 73 0 21 1 0 1 1 0 8 0 pfstkey 112 73 0 21 2 0 2 2 0 8 0 pfstate 328 73 0 21 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 331 0 148 14 2 12 13 0 8 0 art_table 32 333 0 148 2 0 2 2 0 8 0 art_node 16 63 0 38 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 18 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 116 0 106 1 0 1 1 0 8 0 shmpl 112 41 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2153 0 745 89 0 89 89 0 8 0 ffsino 272 2153 0 745 95 0 95 95 0 8 1 nchpl 144 3055 0 1447 60 0 60 60 0 8 0 uvmvnodes 72 2460 0 0 45 0 45 45 0 8 0 vnodes 208 2460 0 0 130 0 130 130 0 8 0 namei 1024 8805 0 8805 1 0 1 1 0 8 1 percpumem 16 46 0 14 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 560 13 0 7 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 8362 0 8362 5 4 1 3 0 8 1 plimitpl 152 55 0 47 1 0 1 1 0 8 0 sigapl 424 726 0 693 4 0 4 4 0 8 0 futexpl 56 9977 0 9977 1 0 1 1 0 8 1 knotepl 112 132 0 113 2 0 2 2 0 8 1 kqueuepl 144 96 0 94 1 0 1 1 0 8 0 pipelkpl 48 163 0 153 1 0 1 1 0 8 0 pipepl 120 326 0 307 1 0 1 1 0 8 0 fdescpl 496 709 0 693 3 0 3 3 0 8 0 filepl 152 5095 0 4994 7 2 5 6 0 8 1 lockfpl 104 144 0 143 1 0 1 1 0 8 0 lockfspl 48 53 0 52 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 648 0 638 1 0 1 1 0 8 0 zombiepl 144 693 0 693 1 0 1 1 0 8 1 processpl 984 726 0 693 5 0 5 5 0 8 0 procpl 624 1705 0 1662 4 0 4 4 0 8 0 sosppl 128 21 0 21 2 1 1 1 0 8 1 sockpl 400 1731 0 1711 8 4 4 5 0 8 2 mcl64k 65536 518 0 0 65 1 64 65 0 8 1 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k 2048 178 0 0 22 0 22 22 0 8 0 mtagpl 80 77 0 0 2 0 2 2 0 8 0 mbufpl 256 739 0 0 45 0 45 45 0 8 0 bufpl 280 4177 0 135 289 0 289 289 0 8 0 anonpl 16 81011 0 67019 76 18 58 74 0 124 0 amapchunkpl 152 3543 0 3412 8 1 7 8 0 158 0 amappl16 192 3626 0 2846 60 20 40 51 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 111 0 105 1 0 1 1 0 8 0 amappl13 168 118 0 115 1 0 1 1 0 8 0 amappl12 160 11 0 9 2 1 1 1 0 8 0 amappl11 152 51 0 36 1 0 1 1 0 8 0 amappl10 144 410 0 403 1 0 1 1 0 8 0 amappl9 136 387 0 386 1 0 1 1 0 8 0 amappl8 128 368 0 332 2 0 2 2 0 8 0 amappl7 120 506 0 495 1 0 1 1 0 8 0 amappl6 112 27 0 20 1 0 1 1 0 8 0 amappl5 104 526 0 508 1 0 1 1 0 8 0 amappl4 96 575 0 546 1 0 1 1 0 8 0 amappl3 88 211 0 203 1 0 1 1 0 8 0 amappl2 80 4728 0 4657 2 0 2 2 0 8 0 amappl1 72 24389 0 23951 23 12 11 18 0 8 0 amappl 80 1951 0 1905 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 42 0 2 1 0 1 1 0 8 0 uaddrrnd 24 722 0 700 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 722 0 700 1 0 1 1 0 8 0 vmmpekpl 168 9068 0 9033 2 0 2 2 0 8 0 vmmpepl 168 91736 0 89788 106 18 88 100 0 357 0 vmsppl 368 721 0 700 2 0 2 2 0 8 0 pdppl 4096 1452 0 1406 6 0 6 6 0 8 0 pvpl 32 246821 0 229690 179 25 154 178 0 265 12 pmappl 232 721 0 700 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 366 0 11 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8248eff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc syscall(ffff800023187b60) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff800023187b60) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0a70, count: 9 ddb{0}> trace x86_ipi_db(ffffffff8248eff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc syscall(ffff800023187b60) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff800023187b60) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0a70, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff822818dc) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a29000,ffff800000a58b00,ffff800021f712f0) at ifa_update_broadaddr+0x61 sys/net/if.c:3078 in_ioctl(80206913,ffff800021f712e0,ffff800000a29000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd806f6e3640,80206913,ffff800021f712e0,ffff800020ed8288) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd80685f7278,80206913,ffff800021f712e0,ffff800020ed8288) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed8288,ffff800021f713f8,ffff800021f71440) at sys_ioctl+0x4a5 syscall(ffff800021f714c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f714c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8141a3f160, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff822818dc) at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000a29000,ffff800000a58b00,ffff800021f712f0) at ifa_update_broadaddr+0x61 sys/net/if.c:3078 in_ioctl(80206913,ffff800021f712e0,ffff800000a29000,1) at in_ioctl+0x5eb sys/netinet/in.c:320 ifioctl(fffffd806f6e3640,80206913,ffff800021f712e0,ffff800020ed8288) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd80685f7278,80206913,ffff800021f712e0,ffff800020ed8288) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed8288,ffff800021f713f8,ffff800021f71440) at sys_ioctl+0x4a5 syscall(ffff800021f714c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f714c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8141a3f160, count: -9