panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *148267 38271 0 0 0x4000000 0K syz-executor.0 160501 20384 0 0 0 1 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(ffff800000ac7000,ffff800000ac4200,ffff800021b80dd0) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800021b80dc0,ffff800000ac7000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80777384b8,80206913,ffff800021b80dc0,ffff800020ab09f8) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab09f8,ffff800021b80ed8,ffff800021b80f20) at sys_ioctl+0x5b9 syscall(ffff800021b80fa0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b80fa0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,3d65dc6a010) at Xsyscall+0x128 end of kernel end trace frame: 0x3d87200c020, 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{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() at panic+0x15c sys/kern/subr_prf.c:207 ifa_update_broadaddr(ffff800000ac7000,ffff800000ac4200,ffff800021b80dd0) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800021b80dc0,ffff800000ac7000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd80777384b8,80206913,ffff800021b80dc0,ffff800020ab09f8) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab09f8,ffff800021b80ed8,ffff800021b80f20) at sys_ioctl+0x5b9 syscall(ffff800021b80fa0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b80fa0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,3d65dc6a010) at Xsyscall+0x128 end of kernel end trace frame: 0x3d87200c020, count: -8 ddb{0}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x1649 __ALIGN_SIZE+0x649 rbp 0xffff800021b80b60 rbx 0xffff800021b80c10 rdx 0x164a __ALIGN_SIZE+0x64a rcx 0xffff800020d4c000 rax 0xffff800020d4c000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x682ffb04cfd0a7ad r12 0x3000000008 r13 0xffff800021b80b70 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b80b50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=148267 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff82646fa0 process=0xffff800020a8b890 user=0xffff800021b7c000, vmspace=0xfffffd807f00a170 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38271 417427 86123 0 2 0 syz-executor.0 *38271 148267 86123 0 7 0x4000000 syz-executor.0 20384 160501 4931 0 7 0 syz-executor.1 20384 146195 4931 0 2 0x4000000 syz-executor.1 82149 5202 0 0 3 0x14200 acct acct 86123 480969 57454 0 3 0x82 nanosleep syz-executor.0 4931 99224 57454 0 2 0x2 syz-executor.1 91540 473405 1 0 3 0x100083 ttyin getty 239 362561 0 0 3 0x14200 bored sosplice 57454 49013 92590 0 3 0x82 kqread syz-fuzzer 57454 273204 92590 0 3 0x4000082 nanosleep syz-fuzzer 57454 69780 92590 0 3 0x4000082 thrsleep syz-fuzzer 57454 410246 92590 0 3 0x4000082 thrsleep syz-fuzzer 57454 467532 92590 0 3 0x4000082 thrsleep syz-fuzzer 57454 404998 92590 0 3 0x4000082 thrsleep syz-fuzzer 57454 43288 92590 0 3 0x4000082 thrsleep syz-fuzzer 57454 354762 92590 0 3 0x4000082 thrsleep syz-fuzzer 57454 311985 92590 0 3 0x4000082 thrsleep syz-fuzzer 57454 6356 92590 0 3 0x4000082 thrsleep syz-fuzzer 92590 477056 57740 0 3 0x10008a pause ksh 57740 271934 25248 0 3 0x92 select sshd 25248 72216 1 0 3 0x80 select sshd 58808 192165 1932 74 3 0x100092 bpf pflogd 1932 244026 1 0 3 0x80 netio pflogd 87121 363458 9896 73 3 0x100090 kqread syslogd 9896 189267 1 0 3 0x100082 netio syslogd 9114 361943 1 77 3 0x100090 poll dhclient 8492 42962 1 0 3 0x80 poll dhclient 52478 304531 0 0 2 0x14200 zerothread 30562 486138 0 0 3 0x14200 aiodoned aiodoned 68669 320799 0 0 3 0x14200 syncer update 40735 164346 0 0 3 0x14200 cleaner cleaner 57857 425027 0 0 3 0x14200 reaper reaper 2692 369961 0 0 3 0x14200 pgdaemon pagedaemon 74467 184575 0 0 3 0x14200 bored crynlk 68471 301927 0 0 3 0x14200 bored crypto 28493 112931 0 0 3 0x40014200 acpi0 acpi0 94206 517406 0 0 3 0x40014200 idle1 12184 343136 0 0 3 0x14200 bored softnet 33000 37044 0 0 3 0x14200 bored systqmp 21426 111629 0 0 3 0x14200 bored systq 91379 222819 0 0 3 0x40014200 bored softclock 56755 107465 0 0 3 0x40014200 idle0 21546 104387 0 0 3 0x14200 bored smr 1 53722 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 38271 (syz-executor.0) thread 0xffff800020ab09f8 (148267) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9574 7187K 7577K 78643K 12358 0 0 pcb 13 8K 8K 78643K 144 0 0 rtable 121 12K 13K 78643K 844 0 0 ifaddr 79 16K 16K 78643K 258 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1504 0 0 iov 0 0K 28K 78643K 137 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 77K 78643K 1868 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 48 0 0 VM map 3 1K 2K 78643K 9 0 0 sem 12 0K 1K 78643K 333 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 707 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 60 63K 83K 78643K 778 0 0 subproc 32 2K 2K 78643K 153 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 73 0 0 in_multi 34 2K 2K 78643K 155 0 0 ether_multi 1 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 398 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 119 39K 48K 78643K 3478 0 0 UVM aobj 60 7K 7K 78643K 60 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 651 0 0 NDP 18 0K 1K 78643K 81 0 0 temp 195 3556K 4196K 78643K 23508 0 0 kqueue 0 0K 0K 78643K 19 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 26 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 83 0 81 1 0 1 1 0 8 0 rtentry 112 153 0 104 2 0 2 2 0 8 0 unpcb 120 343 0 332 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 47 0 47 2 2 0 1 0 8 0 tcpcb 544 319 0 315 3 2 1 2 0 8 0 inpcb 280 1542 0 1533 4 2 2 3 0 8 1 nd6 48 21 0 17 1 0 1 1 0 8 0 pkpcb 40 14 0 14 4 4 0 1 0 8 0 ppxss 1128 32 0 32 3 2 1 1 0 8 1 pffrag 232 28 0 27 3 2 1 1 0 482 0 pffrnode 88 28 0 27 3 2 1 1 0 8 0 pffrent 40 815 0 782 3 2 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 pfstitem 24 79 0 31 1 0 1 1 0 8 0 pfstkey 112 79 0 31 2 0 2 2 0 8 0 pfstate 328 79 0 31 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 675 0 439 17 1 16 16 0 8 1 art_table 32 677 0 439 3 0 3 3 0 8 0 art_node 16 152 0 107 1 0 1 1 0 8 0 sysvmsgpl 40 44 0 38 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 331 0 321 1 0 1 1 0 8 0 shmpl 112 58 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2428 0 1022 46 0 46 46 0 8 0 ffsino 272 2428 0 1022 94 0 94 94 0 8 0 nchpl 144 3741 0 2143 60 0 60 60 0 8 0 uvmvnodes 72 2953 0 0 54 0 54 54 0 8 0 vnodes 208 2953 0 0 156 0 156 156 0 8 0 namei 1024 11560 0 11560 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 552 7 0 6 1 0 1 1 0 8 0 scxspl 192 10857 0 10857 10 7 3 6 0 8 3 plimitpl 152 76 0 68 1 0 1 1 0 8 0 sigapl 432 885 0 869 3 1 2 3 0 8 0 futexpl 56 17149 0 17149 1 0 1 1 0 8 1 knotepl 112 268 0 249 2 1 1 2 0 8 0 kqueuepl 104 340 0 338 1 0 1 1 0 8 0 pipepl 112 528 0 509 1 0 1 1 0 8 0 fdescpl 488 886 0 869 3 0 3 3 0 8 0 filepl 152 7232 0 7129 9 4 5 7 0 8 1 lockfpl 104 196 0 195 1 0 1 1 0 8 0 lockfspl 48 78 0 77 1 0 1 1 0 8 0 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 34 0 23 1 0 1 1 0 8 0 ucredpl 96 640 0 631 1 0 1 1 0 8 0 zombiepl 144 869 0 869 1 0 1 1 0 8 1 processpl 896 903 0 869 4 0 4 4 0 8 0 procpl 632 2333 0 2288 7 2 5 5 0 8 1 srpgc 64 10 0 10 3 2 1 1 0 8 1 sosppl 128 10 0 10 2 1 1 1 0 8 1 sockpl 384 1990 0 1968 8 4 4 5 0 8 1 mcl64k 65536 260 0 0 33 1 32 33 0 8 1 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 195 0 0 24 0 24 24 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 1064 0 0 64 0 64 64 0 8 0 bufpl 256 8101 0 1313 425 0 425 425 0 8 0 anonpl 16 137093 0 115740 109 10 99 104 0 124 1 amapchunkpl 152 6815 0 6407 38 17 21 30 0 158 4 amappl16 192 5190 0 4063 90 31 59 69 0 8 1 amappl14 176 217 0 211 1 0 1 1 0 8 0 amappl13 168 121 0 121 1 0 1 1 0 8 1 amappl12 160 42 0 39 1 0 1 1 0 8 0 amappl11 152 94 0 75 1 0 1 1 0 8 0 amappl10 144 21 0 18 1 0 1 1 0 8 0 amappl9 136 790 0 785 1 0 1 1 0 8 0 amappl8 128 346 0 309 2 0 2 2 0 8 0 amappl7 120 74 0 67 1 0 1 1 0 8 0 amappl6 112 103 0 87 1 0 1 1 0 8 0 amappl5 104 220 0 206 1 0 1 1 0 8 0 amappl4 96 1250 0 1220 1 0 1 1 0 8 0 amappl3 88 177 0 172 1 0 1 1 0 8 0 amappl2 80 5709 0 5627 3 1 2 3 0 8 0 amappl1 72 30508 0 30049 25 15 10 20 0 8 0 amappl 80 2727 0 2678 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 59 0 0 1 0 1 1 0 8 0 uaddrrnd 24 893 0 869 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 893 0 869 1 0 1 1 0 8 0 vmmpekpl 168 11480 0 11445 3 1 2 2 0 8 0 vmmpepl 168 122482 0 120093 176 32 144 144 0 357 40 vmsppl 368 885 0 869 2 0 2 2 0 8 0 pdppl 4096 1793 0 1751 6 0 6 6 0 8 0 pvpl 32 364737 0 344131 232 30 202 225 0 265 10 pmappl 232 892 0 875 3 1 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 684 0 8 20 0 20 20 0 8 0