panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *190090 51276 0 0 0x4000000 1K syz-executor.1 243989 19558 0 0x14000 0x200 0 reaper 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(ffff800000af8800,ffff800000a48c00,ffff800021b70e80) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800021b70e70,ffff800000af8800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8060ff34c0,80206913,ffff800021b70e70,ffff800020aceef0) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020aceef0,ffff800021b70f88,ffff800021b70fd0) at sys_ioctl+0x5b9 syscall(ffff800021b71050) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b71050) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c622f996010) at Xsyscall+0x128 end of kernel end trace frame: 0xc64dcce0110, 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(ffff800000af8800,ffff800000a48c00,ffff800021b70e80) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800021b70e70,ffff800000af8800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8060ff34c0,80206913,ffff800021b70e70,ffff800020aceef0) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020aceef0,ffff800021b70f88,ffff800021b70fd0) at sys_ioctl+0x5b9 syscall(ffff800021b71050) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b71050) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c622f996010) at Xsyscall+0x128 end of kernel end trace frame: 0xc64dcce0110, count: -8 ddb{1}> show registers rdi 0xffffffff82125777 db_enter+0x17 rsi 0x1cca __ALIGN_SIZE+0xcca rbp 0xffff800021b70c10 rbx 0xffff800021b70cc0 rdx 0x1ccb __ALIGN_SIZE+0xccb rcx 0xffff80002278c000 rax 0xffff80002278c000 r8 0xffffffff8165462f kprintf+0x16f r9 0x1 r10 0x25 r11 0xbc66f57a3cd081d2 r12 0x3000000008 r13 0xffff800021b70c20 r14 0x100 r15 0x1 rip 0xffffffff82125778 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b70c00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=190090 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf8d0,0xffffffff8267a4c0 process=0xffff800020a8b190 user=0xffff800021b6c000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51276 375914 15288 0 2 0 syz-executor.1 *51276 190090 15288 0 7 0x4000000 syz-executor.1 12670 6578 97538 0 3 0x82 nanosleep syz-executor.0 15288 53143 97538 0 3 0x82 nanosleep syz-executor.1 94180 482783 0 0 3 0x14200 acct acct 91773 480714 0 0 3 0x14200 bored sosplice 97538 439016 25503 0 3 0x82 thrsleep syz-fuzzer 97538 94540 25503 0 3 0x4000082 thrsleep syz-fuzzer 97538 337231 25503 0 3 0x4000082 thrsleep syz-fuzzer 97538 166216 25503 0 3 0x4000082 thrsleep syz-fuzzer 97538 364161 25503 0 3 0x4000082 kqread syz-fuzzer 97538 231267 25503 0 3 0x4000082 thrsleep syz-fuzzer 97538 235676 25503 0 3 0x4000082 thrsleep syz-fuzzer 97538 296803 25503 0 3 0x4000082 thrsleep syz-fuzzer 97538 115864 25503 0 3 0x4000082 thrsleep syz-fuzzer 97538 85995 25503 0 3 0x4000082 thrsleep syz-fuzzer 25503 501320 31125 0 3 0x10008a pause ksh 31125 65747 45714 0 3 0x92 select sshd 18957 208231 1 0 3 0x100083 ttyin getty 45714 436584 1 0 3 0x80 select sshd 21245 287126 87706 74 3 0x100092 bpf pflogd 87706 200308 1 0 3 0x80 netio pflogd 46780 31172 46240 73 3 0x100090 kqread syslogd 46240 270468 1 0 3 0x100082 netio syslogd 87088 516438 1 77 3 0x100090 poll dhclient 8138 33182 1 0 3 0x80 poll dhclient 74334 123194 0 0 2 0x14200 zerothread 91130 357795 0 0 3 0x14200 aiodoned aiodoned 42593 457131 0 0 3 0x14200 syncer update 80235 443485 0 0 3 0x14200 cleaner cleaner 19558 243989 0 0 7 0x14200 reaper 50643 62169 0 0 3 0x14200 pgdaemon pagedaemon 12081 18135 0 0 3 0x14200 bored crynlk 1018 473442 0 0 3 0x14200 bored crypto 37313 266702 0 0 3 0x40014200 acpi0 acpi0 28485 252136 0 0 3 0x40014200 idle1 27837 318850 0 0 3 0x14200 bored softnet 57158 62352 0 0 3 0x14200 bored systqmp 52051 443058 0 0 3 0x14200 bored systq 32362 169755 0 0 3 0x40014200 bored softclock 36988 250891 0 0 3 0x40014200 idle0 47662 365909 0 0 3 0x14200 bored smr 1 178351 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex pvpl r = 0 (0xffffffff8266ffb0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_put+0x64 sys/kern/subr_pool.c:800 #4 pmap_do_remove+0x61b sys/arch/amd64/amd64/pmap.c:1794 #5 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #5 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2719 #6 uvmspace_free+0x86 sys/uvm/uvm_map.c:3592 #7 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #8 reaper+0x189 sys/kern/kern_exit.c:442 #9 proc_trampoline+0x1c Process 51276 (syz-executor.1) thread 0xffff800020aceef0 (190090) exclusive rwlock netlock r = 0 (0xffffffff8248f918) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl+0x142 #2 ifioctl+0xb64 sys/net/if.c:2202 #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 (0xffffffff82638a30) #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 9665 6845K 15349K 78643K 22472 0 0 pcb 13 8K 8K 78643K 525 0 0 rtable 118 13K 13K 78643K 1827 0 0 ifaddr 96 18K 19K 78643K 519 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1590 0 0 iov 0 0K 32K 78643K 471 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 4845 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 29 0 0 VM map 23 11K 12K 78643K 26 0 0 sem 12 1K 1K 78643K 441 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2308 0 0 sigio 0 0K 0K 78643K 18 0 0 proc 61 63K 95K 78643K 1276 0 0 subproc 32 2K 2K 78643K 289 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 320 0 0 in_multi 34 2K 2K 78643K 422 0 0 ether_multi 1 0K 0K 78643K 29 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 667 0 0 pfkey data 0 0K 0K 78643K 2 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 154 170K 180K 78643K 9121 0 0 UVM aobj 130 6K 6K 78643K 134 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 533 0 0 NDP 24 0K 1K 78643K 173 0 0 temp 258 3565K 4205K 78643K 97117 0 0 kqueue 0 0K 0K 78643K 22 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 57 0 51 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 255 0 253 1 0 1 1 0 8 0 rtentry 112 351 0 308 2 0 2 2 0 8 0 unpcb 120 1630 0 1616 6 4 2 2 0 8 1 syncache 264 12 0 12 6 6 0 1 0 8 0 tcpqe 32 261 0 261 4 4 0 1 0 8 0 tcpcb 544 999 0 994 8 7 1 4 0 8 0 inpcb 280 3931 0 3923 7 5 2 4 0 8 1 rttmr 72 3 0 3 3 3 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 53 0 49 1 0 1 1 0 8 0 pkpcb 40 11 0 11 5 5 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 64 0 64 5 4 1 1 0 8 1 pffrag 232 73 0 73 6 5 1 1 0 482 1 pffrnode 88 73 0 73 6 5 1 1 0 8 1 pffrent 40 2333 0 2333 6 5 1 1 0 8 1 pfosfp 40 846 0 846 5 1 4 5 0 8 4 pfosfpen 112 1428 0 1428 21 1 20 21 0 8 20 pfstitem 24 244 0 148 1 0 1 1 0 8 0 pfstkey 112 244 0 148 3 0 3 3 0 8 0 pfstate 328 244 0 148 9 0 9 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 12 0 11 10 9 1 3 0 8 0 art_heap4 256 1561 0 1347 21 6 15 15 0 8 1 art_table 32 1573 0 1358 2 0 2 2 0 8 0 art_node 16 350 0 312 1 0 1 1 0 8 0 sysvmsgpl 40 49 0 35 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 437 0 427 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5066 0 3660 46 0 46 46 0 8 0 ffsino 272 5066 0 3660 95 0 95 95 0 8 0 nchpl 144 8896 0 8449 60 32 28 60 0 8 8 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 32961 0 32961 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 22 0 1 3 0 3 3 0 8 0 vmpool 552 24 0 3 2 0 2 2 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 29681 0 29681 22 19 3 6 0 8 3 plimitpl 152 221 0 213 1 0 1 1 0 8 0 sigapl 432 2461 0 2446 3 1 2 3 0 8 0 futexpl 56 55153 0 55153 1 0 1 1 0 8 1 knotepl 112 681 0 662 5 4 1 3 0 8 0 kqueuepl 104 827 0 825 2 1 1 2 0 8 0 pipepl 112 1554 0 1535 5 4 1 2 0 8 0 fdescpl 488 2462 0 2446 3 0 3 3 0 8 0 filepl 152 23078 0 22977 13 7 6 7 0 8 2 lockfpl 104 884 0 883 1 0 1 1 0 8 0 lockfspl 48 297 0 296 1 0 1 1 0 8 0 sessionpl 112 33 0 22 1 0 1 1 0 8 0 pgrppl 48 83 0 72 1 0 1 1 0 8 0 ucredpl 96 3119 0 3110 1 0 1 1 0 8 0 zombiepl 144 2447 0 2446 1 0 1 1 0 8 0 processpl 896 2480 0 2446 4 0 4 4 0 8 0 procpl 632 7535 0 7491 5 0 5 5 0 8 0 srpgc 64 20 0 20 6 5 1 1 0 8 1 sosppl 128 54 0 54 10 9 1 1 0 8 1 sockpl 384 5858 0 5834 21 13 8 8 0 8 4 mcl64k 65536 24 0 0 3 0 3 3 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 182 0 0 21 0 21 21 0 8 0 mtagpl 80 38 0 0 1 0 1 1 0 8 0 mbufpl 256 475 0 0 27 0 27 27 0 8 0 bufpl 256 13884 0 6826 442 0 442 442 0 8 0 anonpl 16 327884 0 303768 162 48 114 114 0 124 17 amapchunkpl 152 18322 0 17906 56 33 23 31 0 158 6 amappl16 192 14023 0 12875 133 67 66 71 0 8 8 amappl15 184 244 0 243 1 0 1 1 0 8 0 amappl14 176 819 0 813 1 0 1 1 0 8 0 amappl13 168 75 0 75 2 2 0 1 0 8 0 amappl12 160 298 0 297 4 3 1 1 0 8 0 amappl11 152 122 0 107 1 0 1 1 0 8 0 amappl10 144 358 0 350 1 0 1 1 0 8 0 amappl9 136 1151 0 1145 1 0 1 1 0 8 0 amappl8 128 727 0 690 3 1 2 2 0 8 0 amappl7 120 454 0 446 1 0 1 1 0 8 0 amappl6 112 97 0 89 1 0 1 1 0 8 0 amappl5 104 562 0 547 1 0 1 1 0 8 0 amappl4 96 2166 0 2135 1 0 1 1 0 8 0 amappl3 88 1493 0 1486 1 0 1 1 0 8 0 amappl2 80 18163 0 18085 3 1 2 3 0 8 0 amappl1 72 65337 0 64886 26 16 10 20 0 8 0 amappl 80 8084 0 8027 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 2486 0 2446 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2486 0 2446 1 0 1 1 0 8 0 vmmpekpl 168 23321 0 23278 3 0 3 3 0 8 0 vmmpepl 168 324925 0 322530 223 76 147 147 0 357 37 vmsppl 368 2461 0 2445 2 0 2 2 0 8 0 pdppl 4096 4979 0 4917 8 0 8 8 0 8 0 pvpl 32 855726 0 833045 290 69 221 224 0 265 30 pmappl 232 2485 0 2448 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 652 0 25 18 0 18 18 0 8 0