panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 47950 78162 0 0 0x4000000 0 syz-executor.1 514428 24308 0 0x2 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(ffff800000acb800,ffff800000ae9100,ffff800021b71350) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800021b71340,ffff800000acb800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8071d574f8,80206913,ffff800021b71340,ffff800020ab0508) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab0508,ffff800021b71458,ffff800021b714a0) at sys_ioctl+0x5b9 syscall(ffff800021b71520) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b71520) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cd50fddb010) at Xsyscall+0x128 end of kernel end trace frame: 0xcd77f44be20, 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(ffff800000acb800,ffff800000ae9100,ffff800021b71350) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800021b71340,ffff800000acb800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8071d574f8,80206913,ffff800021b71340,ffff800020ab0508) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab0508,ffff800021b71458,ffff800021b714a0) at sys_ioctl+0x5b9 syscall(ffff800021b71520) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b71520) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cd50fddb010) at Xsyscall+0x128 end of kernel end trace frame: 0xcd77f44be20, count: -8 ddb{0}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x1635 __ALIGN_SIZE+0x635 rbp 0xffff800021b710e0 rbx 0xffff800021b71190 rdx 0x1636 __ALIGN_SIZE+0x636 rcx 0xffff800021560000 rax 0xffff800021560000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0xfde0c10f94df18f7 r12 0x3000000008 r13 0xffff800021b710f0 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b710d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=47950 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0ee8,0xffffffff82662210 process=0xffff800020a8a710 user=0xffff800021b6c000, vmspace=0xfffffd807f00a170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78162 41878 24308 0 2 0 syz-executor.1 *78162 47950 24308 0 7 0x4000000 syz-executor.1 24308 514428 97219 0 7 0x2 syz-executor.1 31849 102616 97219 0 2 0x482 syz-executor.0 79185 470706 0 0 3 0x14200 acct acct 37350 175340 1 0 3 0x100083 ttyin getty 96342 495156 0 0 3 0x14200 bored sosplice 97219 498803 66355 0 3 0x82 thrsleep syz-fuzzer 97219 165809 66355 0 3 0x4000082 nanosleep syz-fuzzer 97219 6587 66355 0 3 0x4000082 thrsleep syz-fuzzer 97219 189086 66355 0 3 0x4000082 thrsleep syz-fuzzer 97219 330289 66355 0 2 0x4000482 syz-fuzzer 97219 451570 66355 0 3 0x4000082 thrsleep syz-fuzzer 97219 296713 66355 0 3 0x4000082 thrsleep syz-fuzzer 97219 191051 66355 0 3 0x4000082 thrsleep syz-fuzzer 97219 76217 66355 0 3 0x4000082 thrsleep syz-fuzzer 97219 389294 66355 0 3 0x4000082 kqread syz-fuzzer 66355 177701 82532 0 3 0x10008a pause ksh 82532 367926 95734 0 3 0x92 select sshd 95734 94579 1 0 3 0x80 select sshd 61443 505047 58461 74 3 0x100092 bpf pflogd 58461 41847 1 0 3 0x80 netio pflogd 71534 242495 89885 73 3 0x100090 kqread syslogd 89885 54659 1 0 3 0x100082 netio syslogd 44451 136847 1 77 3 0x100090 poll dhclient 21197 11540 1 0 3 0x80 poll dhclient 51861 386895 0 0 3 0x14200 pgzero zerothread 93091 153485 0 0 3 0x14200 aiodoned aiodoned 17161 89898 0 0 3 0x14200 syncer update 12206 109987 0 0 3 0x14200 cleaner cleaner 38760 195844 0 0 3 0x14200 reaper reaper 97559 476650 0 0 3 0x14200 pgdaemon pagedaemon 81345 135140 0 0 3 0x14200 bored crynlk 80586 66370 0 0 3 0x14200 bored crypto 63795 225084 0 0 3 0x40014200 acpi0 acpi0 43961 279670 0 0 3 0x40014200 idle1 67795 227378 0 0 3 0x14200 bored softnet 51388 452229 0 0 3 0x14200 bored systqmp 79695 482719 0 0 3 0x14200 bored systq 19045 171358 0 0 3 0x40014200 bored softclock 31007 521029 0 0 3 0x40014200 idle0 35200 150291 0 0 3 0x14200 bored smr 1 294458 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 78162 (syz-executor.1) thread 0xffff800020ab0508 (47950) exclusive rwlock netlock r = 0 (0xffffffff8250cdb8) #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 (0xffffffff82624c28) #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 9617 6457K 8343K 78643K 26799 0 0 pcb 14 10K 12K 78643K 1439 0 0 rtable 131 14K 15K 78643K 6413 0 0 ifaddr 106 28K 29K 78643K 1074 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1696 0 0 iov 0 0K 24K 78643K 1479 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 8030 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 69 0 0 VM map 29 14K 15K 78643K 47 0 0 sem 12 0K 1K 78643K 1588 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 11282 0 0 sigio 0 0K 0K 78643K 82 0 0 proc 62 63K 95K 78643K 1671 0 0 subproc 32 2K 2K 78643K 374 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 662 0 0 in_multi 26 1K 2K 78643K 477 0 0 ether_multi 1 0K 0K 78643K 33 0 0 mrt 2 0K 0K 78643K 28 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 156 689K 689K 78643K 156 0 0 exec 0 0K 1K 78643K 945 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 200 270K 272K 78643K 32886 0 0 UVM aobj 130 4K 4K 78643K 130 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 1267 0 0 NDP 23 0K 0K 78643K 310 0 0 temp 214 3564K 3659K 78643K 126765 0 0 kqueue 0 0K 0K 78643K 77 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 221 0 216 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 542 0 540 1 0 1 1 0 8 0 rtentry 112 1836 0 1787 3 1 2 3 0 8 0 unpcb 120 15386 0 15372 9 7 2 2 0 8 1 syncache 264 63 0 63 10 10 0 1 0 8 0 tcpqe 32 28 0 28 6 6 0 1 0 8 0 tcpcb 544 3889 0 3885 35 34 1 12 0 8 0 inpcb 280 11907 0 11898 43 42 1 9 0 8 0 rttmr 72 9 0 9 3 3 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 57 0 55 1 0 1 1 0 8 0 pkpcb 40 24 0 24 5 5 0 1 0 8 0 swfcl 56 16 0 0 1 0 1 1 0 8 0 ppxss 1128 170 0 170 19 19 0 1 0 8 0 pffrag 232 98 0 98 13 12 1 1 0 482 1 pffrnode 88 98 0 98 13 12 1 1 0 8 1 pffrent 40 2347 0 2347 14 13 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 620 0 458 1 0 1 1 0 8 0 pfstkey 112 620 0 458 6 1 5 5 0 8 0 pfstate 328 620 0 458 23 7 16 17 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 1 6 1 5 5 0 8 0 art_heap4 256 3967 0 3743 35 17 18 23 0 8 2 art_table 32 3973 0 3744 4 1 3 3 0 8 0 art_node 16 1811 0 1771 1 0 1 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 1586 0 1576 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18786 0 17332 47 0 47 47 0 8 0 ffsino 272 18786 0 17332 98 0 98 98 0 8 0 nchpl 144 33496 0 31891 60 0 60 60 0 8 0 uvmvnodes 72 6410 0 0 117 0 117 117 0 8 0 vnodes 208 6410 0 0 338 0 338 338 0 8 0 namei 1024 98801 0 98801 1 0 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 45 0 18 3 1 2 3 0 8 0 scsiplug 64 11 0 11 4 4 0 1 0 8 0 scxspl 192 132434 0 132434 37 34 3 7 0 8 3 plimitpl 152 644 0 636 1 0 1 1 0 8 0 sigapl 432 11421 0 11406 3 1 2 3 0 8 0 futexpl 56 158305 0 158305 1 0 1 1 0 8 1 knotepl 112 1594 0 1575 3 2 1 2 0 8 0 kqueuepl 104 3263 0 3261 7 6 1 4 0 8 0 pipepl 112 5590 0 5571 3 1 2 2 0 8 0 fdescpl 488 11422 0 11406 3 0 3 3 0 8 0 filepl 152 79971 0 79869 46 40 6 13 0 8 1 lockfpl 104 3786 0 3785 1 0 1 1 0 8 0 lockfspl 48 1201 0 1200 1 0 1 1 0 8 0 sessionpl 112 39 0 28 1 0 1 1 0 8 0 pgrppl 48 205 0 194 1 0 1 1 0 8 0 ucredpl 96 14406 0 14397 1 0 1 1 0 8 0 zombiepl 144 11406 0 11405 1 0 1 1 0 8 0 processpl 896 11439 0 11405 4 0 4 4 0 8 0 procpl 632 30087 0 30043 15 11 4 5 0 8 0 srpgc 64 62 0 62 12 11 1 1 0 8 1 sosppl 128 242 0 242 12 12 0 1 0 8 0 sockpl 384 27945 0 27920 66 60 6 14 0 8 2 mcl64k 65536 537 0 0 65 0 65 65 0 8 0 mcl16k 16384 17 0 0 3 1 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 479 0 0 14 2 12 14 0 8 0 mtagpl 80 125 0 0 2 0 2 2 0 8 0 mbufpl 256 1040 0 0 37 0 37 37 0 8 0 bufpl 256 48778 0 41720 442 0 442 442 0 8 0 anonpl 16 1025718 0 993625 293 144 149 150 0 124 13 amapchunkpl 152 63579 0 62194 123 62 61 61 0 158 6 amappl16 192 59342 0 58621 152 108 44 49 0 8 7 amappl15 184 1103 0 1103 4 3 1 1 0 8 1 amappl14 176 862 0 858 1 0 1 1 0 8 0 amappl13 168 1092 0 1092 4 4 0 1 0 8 0 amappl12 160 4329 0 4327 2 1 1 1 0 8 0 amappl11 152 1587 0 1572 1 0 1 1 0 8 0 amappl10 144 29 0 20 1 0 1 1 0 8 0 amappl9 136 2557 0 2553 1 0 1 1 0 8 0 amappl8 128 2187 0 2115 3 0 3 3 0 8 0 amappl7 120 148 0 138 1 0 1 1 0 8 0 amappl6 112 1586 0 1574 1 0 1 1 0 8 0 amappl5 104 4692 0 4676 1 0 1 1 0 8 0 amappl4 96 7529 0 7490 4 2 2 2 0 8 1 amappl3 88 5366 0 5354 1 0 1 1 0 8 0 amappl2 80 91587 0 91511 3 1 2 3 0 8 0 amappl1 72 229393 0 228955 26 16 10 20 0 8 0 amappl 80 31260 0 31206 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 11467 0 11406 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11467 0 11406 1 0 1 1 0 8 0 vmmpekpl 168 75868 0 75827 3 0 3 3 0 8 0 vmmpepl 168 1350897 0 1348921 216 113 103 103 0 357 7 vmsppl 368 11421 0 11406 2 0 2 2 0 8 0 pdppl 4096 22941 0 22875 9 0 9 9 0 8 0 pvpl 32 3247309 0 3236952 455 328 127 143 0 265 32 pmappl 232 11466 0 11424 5 2 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 760 0 58 21 0 21 21 0 8 0