panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *134669 94344 0 0 0x4000000 1K syz-executor.1 185851 59221 0 0 0 0 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(ffff800000add000,ffff800000af0c00,ffff8000239835c0) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff8000239835b0,ffff800000add000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80602edaa0,80206913,ffff8000239835b0,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab0290,ffff8000239836c8,ffff800023983710) at sys_ioctl+0x5b9 syscall(ffff800023983790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023983790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,6d2354940e0) at Xsyscall+0x128 end of kernel end trace frame: 0x6d4c6483960, 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(ffff800000add000,ffff800000af0c00,ffff8000239835c0) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff8000239835b0,ffff800000add000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80602edaa0,80206913,ffff8000239835b0,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab0290,ffff8000239836c8,ffff800023983710) at sys_ioctl+0x5b9 syscall(ffff800023983790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023983790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,6d2354940e0) at Xsyscall+0x128 end of kernel end trace frame: 0x6d4c6483960, count: -8 ddb{1}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x165c __ALIGN_SIZE+0x65c rbp 0xffff800023983350 rbx 0xffff800023983400 rdx 0x165d __ALIGN_SIZE+0x65d rcx 0xffff800023774000 rax 0xffff800023774000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x5936753a917cdfa3 r12 0x3000000008 r13 0xffff800023983360 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023983340 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=134669 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff82646fa0 process=0xffff800020add180 user=0xffff80002397e000, vmspace=0xfffffd807f008170 estcpu=26, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94344 499930 68664 0 2 0 syz-executor.1 94344 314509 68664 0 3 0x4000080 lockf syz-executor.1 *94344 134669 68664 0 7 0x4000000 syz-executor.1 59221 185851 62559 0 7 0 syz-executor.0 59221 426950 62559 0 3 0x4000080 lockf syz-executor.0 59221 478602 62559 0 3 0x4000080 lockf syz-executor.0 59221 135356 62559 0 3 0x4000080 lockf syz-executor.0 59221 81 62559 0 3 0x4000080 lockf syz-executor.0 68664 143103 33846 0 3 0x82 nanosleep syz-executor.1 62559 99363 33846 0 3 0x82 nanosleep syz-executor.0 39101 16891 0 0 3 0x14200 acct acct 35358 165171 0 0 3 0x14200 bored sosplice 33846 4579 64009 0 3 0x82 thrsleep syz-fuzzer 33846 450036 64009 0 3 0x4000082 thrsleep syz-fuzzer 33846 437636 64009 0 3 0x4000082 thrsleep syz-fuzzer 33846 519137 64009 0 3 0x4000082 thrsleep syz-fuzzer 33846 50083 64009 0 3 0x4000082 thrsleep syz-fuzzer 33846 23865 64009 0 3 0x4000082 thrsleep syz-fuzzer 33846 217443 64009 0 3 0x4000082 kqread syz-fuzzer 33846 263673 64009 0 3 0x4000082 thrsleep syz-fuzzer 33846 309319 64009 0 3 0x4000082 thrsleep syz-fuzzer 33846 51230 64009 0 3 0x4000082 thrsleep syz-fuzzer 64009 89601 80 0 3 0x10008a pause ksh 80 220434 11323 0 3 0x92 select sshd 11323 384053 1 0 3 0x80 select sshd 79924 46837 1549 74 3 0x100092 bpf pflogd 1549 137769 1 0 3 0x80 netio pflogd 72846 113342 7255 73 3 0x100090 kqread syslogd 7255 366571 1 0 3 0x100082 netio syslogd 93873 490477 1 77 3 0x100090 poll dhclient 95632 473434 1 0 3 0x80 poll dhclient 94365 295598 0 0 2 0x14200 zerothread 77086 163042 0 0 3 0x14200 aiodoned aiodoned 39827 366280 0 0 3 0x14200 syncer update 23782 191813 0 0 3 0x14200 cleaner cleaner 10877 119891 0 0 3 0x14200 reaper reaper 33745 466120 0 0 3 0x14200 pgdaemon pagedaemon 96590 323942 0 0 3 0x14200 bored crynlk 82837 329619 0 0 3 0x14200 bored crypto 54907 101673 0 0 3 0x40014200 acpi0 acpi0 70346 149585 0 0 3 0x40014200 idle1 84859 27689 0 0 3 0x14200 bored softnet 81399 430394 0 0 3 0x14200 bored systqmp 19107 310803 0 0 3 0x14200 bored systq 47293 420047 0 0 3 0x40014200 bored softclock 35604 336641 0 0 3 0x40014200 idle0 91795 103586 0 0 3 0x14200 bored smr 1 499447 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 94344 (syz-executor.1) thread 0xffff800020ab0290 (134669) exclusive rwlock netlock r = 0 (0xffffffff824d4548) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl+0x142 #2 ifioctl+0xb64 sys/net/if.c:2218 #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 (0xffffffff82677638) #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 9641 6485K 7634K 78643K 22191 0 0 pcb 14 10K 12K 78643K 1717 0 0 rtable 151 16K 18K 78643K 2875 0 0 ifaddr 113 24K 26K 78643K 875 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1670 0 0 iov 0 0K 28K 78643K 1035 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 77K 78643K 6336 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 210 0 0 VM map 29 14K 14K 78643K 48 0 0 sem 12 0K 1K 78643K 2207 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12766 0 0 file desc 6 17K 25K 78643K 5451 0 0 sigio 1 0K 0K 78643K 266 0 0 proc 62 63K 83K 78643K 1924 0 0 subproc 32 2K 2K 78643K 459 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 769 0 0 in_multi 31 2K 2K 78643K 588 0 0 ether_multi 1 0K 0K 78643K 48 0 0 mrt 0 0K 0K 78643K 16 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 1042 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 191 252K 252K 78643K 20702 0 0 UVM aobj 130 4K 4K 78643K 136 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 1030 0 0 NDP 25 0K 1K 78643K 267 0 0 temp 238 3561K 4201K 78643K 165898 0 0 kqueue 0 0K 0K 78643K 113 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 72 0 67 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 423 0 421 1 0 1 1 0 8 0 rtentry 112 445 0 387 2 0 2 2 0 8 0 unpcb 120 3788 0 3775 7 6 1 2 0 8 0 syncache 264 28 0 28 13 12 1 1 0 8 1 tcpqe 32 9 0 9 6 6 0 1 0 8 0 tcpcb 544 2221 0 2217 27 26 1 13 0 8 0 inpcb 280 10233 0 10218 43 41 2 9 0 8 0 rttmr 72 5 0 5 1 1 0 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 3 0 3 2 2 0 1 0 8 0 nd6 48 63 0 61 4 3 1 1 0 8 0 pkpcb 40 12 0 12 8 8 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 105 0 105 31 30 1 1 0 8 1 pffrag 232 91 0 91 21 21 0 1 0 482 0 pffrnode 88 91 0 91 21 21 0 1 0 8 0 pffrent 40 3168 0 3168 21 21 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 421 0 385 1 0 1 1 0 8 0 pfstkey 112 422 0 386 2 0 2 2 0 8 0 pfstate 328 422 0 385 9 4 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 22 0 17 14 8 6 7 0 8 1 art_heap4 256 1993 0 1767 39 20 19 22 0 8 0 art_table 32 2015 0 1784 4 1 3 3 0 8 0 art_node 16 440 0 395 1 0 1 1 0 8 0 sysvmsgpl 40 53 0 44 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 2205 0 2195 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10241 0 8815 47 0 47 47 0 8 0 ffsino 272 10241 0 8815 96 0 96 96 0 8 0 nchpl 144 20406 0 19945 60 41 19 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 82466 0 82466 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 27 0 0 4 0 4 4 0 8 0 vmpool 552 46 0 19 2 0 2 2 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 55538 0 55538 43 42 1 7 0 8 1 plimitpl 152 348 0 340 1 0 1 1 0 8 0 sigapl 432 5575 0 5559 3 1 2 3 0 8 0 futexpl 56 133190 0 133190 1 0 1 1 0 8 1 knotepl 112 1129 0 1110 7 6 1 2 0 8 0 kqueuepl 104 1730 0 1728 4 3 1 4 0 8 0 pipepl 112 3462 0 3443 13 12 1 2 0 8 0 fdescpl 488 5576 0 5560 3 0 3 3 0 8 0 filepl 152 58454 0 58336 55 50 5 13 0 8 0 lockfpl 104 14376 0 14365 1 0 1 1 0 8 0 lockfspl 48 3827 0 3821 1 0 1 1 0 8 0 sessionpl 112 44 0 33 1 0 1 1 0 8 0 pgrppl 48 223 0 212 1 0 1 1 0 8 0 ucredpl 96 17194 0 17185 1 0 1 1 0 8 0 zombiepl 144 5561 0 5560 3 2 1 1 0 8 0 processpl 896 5594 0 5560 4 0 4 4 0 8 0 procpl 632 18509 0 18460 5 0 5 5 0 8 0 srpgc 64 56 0 56 21 20 1 1 0 8 1 sosppl 128 123 0 123 24 24 0 1 0 8 0 sockpl 384 14941 0 14911 60 56 4 14 0 8 0 mcl64k 65536 700 0 0 69 35 34 34 0 8 0 mcl16k 16384 23 0 0 3 1 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 16 0 0 2 0 2 2 0 8 0 mcl8k 8192 20 0 0 3 1 2 3 0 8 0 mcl4k 4096 24 0 0 3 0 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 205 0 0 21 4 17 21 0 8 0 mtagpl 80 69 0 0 1 0 1 1 0 8 0 mbufpl 256 946 0 0 42 0 42 42 0 8 0 bufpl 256 22201 0 15143 442 0 442 442 0 8 0 anonpl 16 684808 0 647338 356 177 179 179 0 124 27 amapchunkpl 152 41994 0 40793 133 83 50 50 0 158 2 amappl16 192 34074 0 32855 267 188 79 79 0 8 16 amappl15 184 719 0 719 4 4 0 1 0 8 0 amappl14 176 879 0 874 1 0 1 1 0 8 0 amappl13 168 940 0 940 3 3 0 1 0 8 0 amappl12 160 1142 0 1139 2 1 1 1 0 8 0 amappl11 152 720 0 704 1 0 1 1 0 8 0 amappl10 144 522 0 514 1 0 1 1 0 8 0 amappl9 136 1385 0 1379 1 0 1 1 0 8 0 amappl8 128 984 0 927 3 1 2 2 0 8 0 amappl7 120 613 0 604 1 0 1 1 0 8 0 amappl6 112 657 0 646 1 0 1 1 0 8 0 amappl5 104 1487 0 1472 1 0 1 1 0 8 0 amappl4 96 5587 0 5552 1 0 1 1 0 8 0 amappl3 88 1313 0 1307 1 0 1 1 0 8 0 amappl2 80 43520 0 43431 3 0 3 3 0 8 0 amappl1 72 135300 0 134824 26 16 10 20 0 8 0 amappl 80 19269 0 19198 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 5622 0 5559 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5622 0 5559 1 0 1 1 0 8 0 vmmpekpl 168 49073 0 49028 3 0 3 3 0 8 0 vmmpepl 168 716905 0 714285 570 425 145 157 0 357 26 vmsppl 368 5575 0 5559 2 0 2 2 0 8 0 pdppl 4096 11251 0 11183 11 2 9 9 0 8 0 pvpl 32 1726625 0 1703308 593 341 252 252 0 265 51 pmappl 232 5621 0 5578 5 2 3 3 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 784 0 104 20 0 20 20 0 8 0