panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 376339 98343 0 0 0 1 syz-executor.0 *246916 98343 0 0 0x4000000 0K 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(ffff800000ace000,ffff800000b20d00,ffff800023b8ee40) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800023b8ee30,ffff800000ace000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd806ab3b010,80206913,ffff800023b8ee30,ffff800020b2c540) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b2c540,ffff800023b8ef48,ffff800023b8ef90) at sys_ioctl+0x5b9 syscall(ffff800023b8f010) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8f010) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5086a03c010) at Xsyscall+0x128 end of kernel end trace frame: 0x50b5c22ff80, 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(ffff800000ace000,ffff800000b20d00,ffff800023b8ee40) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800023b8ee30,ffff800000ace000,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd806ab3b010,80206913,ffff800023b8ee30,ffff800020b2c540) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b2c540,ffff800023b8ef48,ffff800023b8ef90) at sys_ioctl+0x5b9 syscall(ffff800023b8f010) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8f010) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5086a03c010) at Xsyscall+0x128 end of kernel end trace frame: 0x50b5c22ff80, count: -8 ddb{0}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x15cd __ALIGN_SIZE+0x5cd rbp 0xffff800023b8ebd0 rbx 0xffff800023b8ec80 rdx 0x15ce __ALIGN_SIZE+0x5ce rcx 0xffff800021d6e000 rax 0xffff800021d6e000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x58bfbdf7105cd461 r12 0x3000000008 r13 0xffff800023b8ebe0 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b8ebc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=246916 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b2c7b8,0xffffffff8265b7c8 process=0xffff800020add180 user=0xffff800023b8a000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 98343 376339 85659 0 7 0 syz-executor.0 *98343 246916 85659 0 7 0x4000000 syz-executor.0 44232 75163 78095 0 3 0x80 nanosleep syz-executor.1 44232 207761 78095 0 3 0x4000080 ttyout syz-executor.1 44232 387763 78095 0 3 0x4000080 fsleep syz-executor.1 62063 50421 0 0 3 0x14200 acct acct 85659 134107 46181 0 3 0x82 nanosleep syz-executor.0 78095 202773 46181 0 3 0x82 nanosleep syz-executor.1 84060 97252 0 0 3 0x14200 bored sosplice 46181 177130 1207 0 3 0x82 thrsleep syz-fuzzer 46181 306851 1207 0 2 0x4000482 syz-fuzzer 46181 28236 1207 0 3 0x4000082 thrsleep syz-fuzzer 46181 510803 1207 0 3 0x4000082 thrsleep syz-fuzzer 46181 120920 1207 0 3 0x4000082 thrsleep syz-fuzzer 46181 90978 1207 0 3 0x4000082 thrsleep syz-fuzzer 46181 98549 1207 0 3 0x4000082 thrsleep syz-fuzzer 46181 316255 1207 0 3 0x4000082 kqread syz-fuzzer 46181 334750 1207 0 3 0x4000082 thrsleep syz-fuzzer 46181 214201 1207 0 3 0x4000082 thrsleep syz-fuzzer 46181 209899 1207 0 3 0x4000082 thrsleep syz-fuzzer 1207 44838 22109 0 3 0x10008a pause ksh 22109 29733 76477 0 3 0x92 select sshd 48875 422295 1 0 3 0x100083 ttyin getty 76477 347787 1 0 3 0x80 select sshd 72159 408251 88300 74 3 0x100092 bpf pflogd 88300 252312 1 0 3 0x80 netio pflogd 91631 214877 40852 73 3 0x100090 kqread syslogd 40852 354373 1 0 3 0x100082 netio syslogd 20896 72333 1 77 3 0x100090 poll dhclient 93872 279106 1 0 3 0x80 poll dhclient 65331 40202 0 0 3 0x14200 pgzero zerothread 51935 398889 0 0 3 0x14200 aiodoned aiodoned 78875 252059 0 0 3 0x14200 syncer update 12847 27519 0 0 3 0x14200 cleaner cleaner 70781 183593 0 0 3 0x14200 reaper reaper 56453 108473 0 0 3 0x14200 pgdaemon pagedaemon 23198 156450 0 0 3 0x14200 bored crynlk 41721 440937 0 0 3 0x14200 bored crypto 22163 316661 0 0 3 0x40014200 acpi0 acpi0 89296 416291 0 0 3 0x40014200 idle1 52696 56062 0 0 3 0x14200 bored softnet 93791 437228 0 0 3 0x14200 bored systqmp 12429 308429 0 0 3 0x14200 bored systq 87644 347872 0 0 3 0x40014200 bored softclock 18308 491473 0 0 3 0x40014200 idle0 11343 477280 0 0 3 0x14200 bored smr 1 78554 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 98343 (syz-executor.0) thread 0xffff800020b2c540 (246916) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (0xffffffff82648ec0) #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 9609 7105K 8195K 78643K 17113 0 0 pcb 13 8K 8K 78643K 592 0 0 rtable 110 13K 14K 78643K 2365 0 0 ifaddr 96 19K 20K 78643K 534 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1588 0 0 iov 0 0K 32K 78643K 472 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 5565 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 24 0 0 VM map 27 13K 13K 78643K 33 0 0 sem 12 0K 1K 78643K 1906 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3577 0 0 sigio 1 0K 0K 78643K 31 0 0 proc 61 63K 95K 78643K 1292 0 0 subproc 32 2K 2K 78643K 274 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 181 0 0 in_multi 24 1K 2K 78643K 391 0 0 ether_multi 1 0K 0K 78643K 26 0 0 mrt 0 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 859 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 165 192K 194K 78643K 12723 0 0 UVM aobj 130 4K 4K 78643K 137 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 546 0 0 NDP 23 0K 0K 78643K 172 0 0 temp 249 3561K 4201K 78643K 87307 0 0 kqueue 0 0K 0K 78643K 22 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 62 0 58 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 734 0 732 1 0 1 1 0 8 0 rtentry 112 373 0 336 2 0 2 2 0 8 0 unpcb 120 2326 0 2313 6 5 1 2 0 8 0 syncache 264 31 0 31 8 8 0 1 0 8 0 tcpqe 32 15 0 15 5 5 0 1 0 8 0 tcpcb 544 3354 0 3350 12 11 1 3 0 8 0 inpcb 280 6722 0 6700 13 11 2 4 0 8 0 rttmr 72 5 0 5 4 4 0 1 0 8 0 nd6 48 56 0 55 2 1 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 72 0 72 17 16 1 1 0 8 1 pffrag 232 74 0 74 15 14 1 1 0 482 1 pffrnode 88 74 0 74 15 14 1 1 0 8 1 pffrent 40 2382 0 2382 15 14 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 228 0 154 1 0 1 1 0 8 0 pfstkey 112 228 0 154 4 1 3 3 0 8 0 pfstate 328 228 0 154 9 2 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 5 0 2 4 1 3 4 0 8 0 art_heap4 256 1622 0 1441 23 10 13 15 0 8 0 art_table 32 1627 0 1443 2 0 2 2 0 8 0 art_node 16 372 0 337 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 26 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1897 0 1887 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7779 0 6372 46 0 46 46 0 8 0 ffsino 272 7779 0 6372 95 0 95 95 0 8 0 nchpl 144 13882 0 13409 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 57044 0 57044 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 26 0 1 4 0 4 4 0 8 0 vmpool 552 31 0 6 2 0 2 2 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 35077 0 35077 24 21 3 7 0 8 3 plimitpl 152 200 0 192 1 0 1 1 0 8 0 sigapl 432 3733 0 3717 3 1 2 3 0 8 0 futexpl 56 101506 0 101505 1 0 1 1 0 8 0 knotepl 112 478 0 459 1 0 1 1 0 8 0 kqueuepl 104 635 0 633 1 0 1 1 0 8 0 pipepl 112 1478 0 1459 1 0 1 1 0 8 0 fdescpl 488 3734 0 3717 3 0 3 3 0 8 0 filepl 152 42490 0 42368 18 12 6 7 0 8 1 lockfpl 104 883 0 882 1 0 1 1 0 8 0 lockfspl 48 296 0 295 1 0 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 58 0 47 1 0 1 1 0 8 0 ucredpl 96 11479 0 11470 1 0 1 1 0 8 0 zombiepl 144 3717 0 3717 1 0 1 1 0 8 1 processpl 896 3751 0 3717 4 0 4 4 0 8 0 procpl 632 11174 0 11127 11 6 5 5 0 8 0 srpgc 64 18 0 18 8 8 0 1 0 8 0 sosppl 128 51 0 51 12 12 0 1 0 8 0 sockpl 384 9812 0 9775 30 25 5 7 0 8 1 mcl64k 65536 22 0 0 3 0 3 3 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 170 0 0 19 1 18 19 0 8 0 mtagpl 80 48 0 0 1 0 1 1 0 8 0 mbufpl 256 963 0 0 42 0 42 42 0 8 0 bufpl 256 14485 0 7427 442 0 442 442 0 8 0 anonpl 16 379249 0 358720 141 50 91 99 0 124 6 amapchunkpl 152 23940 0 23782 43 29 14 14 0 158 6 amappl16 192 17294 0 16151 121 63 58 70 0 8 0 amappl15 184 386 0 386 3 3 0 1 0 8 0 amappl14 176 1166 0 1161 1 0 1 1 0 8 0 amappl13 168 330 0 328 4 3 1 1 0 8 0 amappl12 160 84 0 81 1 0 1 1 0 8 0 amappl11 152 919 0 901 1 0 1 1 0 8 0 amappl10 144 147 0 141 1 0 1 1 0 8 0 amappl9 136 1377 0 1374 1 0 1 1 0 8 0 amappl8 128 965 0 918 2 0 2 2 0 8 0 amappl7 120 232 0 223 1 0 1 1 0 8 0 amappl6 112 890 0 874 1 0 1 1 0 8 0 amappl5 104 350 0 334 1 0 1 1 0 8 0 amappl4 96 3969 0 3936 1 0 1 1 0 8 0 amappl3 88 1299 0 1294 1 0 1 1 0 8 0 amappl2 80 28707 0 28622 3 1 2 3 0 8 0 amappl1 72 91855 0 91393 26 16 10 20 0 8 0 amappl 80 11694 0 11635 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 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 3765 0 3717 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3765 0 3717 1 0 1 1 0 8 0 vmmpekpl 168 30506 0 30471 2 0 2 2 0 8 0 vmmpepl 168 469027 0 466554 353 237 116 153 0 357 6 vmsppl 368 3733 0 3717 2 0 2 2 0 8 0 pdppl 4096 7537 0 7471 11 2 9 9 0 8 0 pvpl 32 1064100 0 1040196 330 117 213 231 0 265 18 pmappl 232 3764 0 3723 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 668 0 28 19 0 19 19 0 8 0