panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 25514 60771 0 0 0 1 syz-executor.0 *154629 60771 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(ffff800000b36800,ffff800000bf5300,ffff800022bc9560) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800022bc9550,ffff800000b36800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8066ef0af8,80206913,ffff800022bc9550,ffff800020abe030) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe030,ffff800022bc9668,ffff800022bc96b0) at sys_ioctl+0x5b9 syscall(ffff800022bc9730) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bc9730) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,976cc85b010) at Xsyscall+0x128 end of kernel end trace frame: 0x978e17aae20, 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(ffff800000b36800,ffff800000bf5300,ffff800022bc9560) at ifa_update_broadaddr+0x61 sys/net/if.c:2970 in_ioctl(80206913,ffff800022bc9550,ffff800000b36800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8066ef0af8,80206913,ffff800022bc9550,ffff800020abe030) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe030,ffff800022bc9668,ffff800022bc96b0) at sys_ioctl+0x5b9 syscall(ffff800022bc9730) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bc9730) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,976cc85b010) at Xsyscall+0x128 end of kernel end trace frame: 0x978e17aae20, count: -8 ddb{0}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x15ff __ALIGN_SIZE+0x5ff rbp 0xffff800022bc92f0 rbx 0xffff800022bc93a0 rdx 0x1600 __ALIGN_SIZE+0x600 rcx 0xffff800020b56000 rax 0xffff800020b56000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0xa8df4fc85ce0eb66 r12 0x3000000008 r13 0xffff800022bc9300 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bc92e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=154629 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abea10,0xffffffff8265b7c8 process=0xffff800020adce00 user=0xffff800022bc4000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60771 25514 2601 0 7 0 syz-executor.0 *60771 154629 2601 0 7 0x4000000 syz-executor.0 2601 299325 34581 0 3 0x82 nanosleep syz-executor.0 96343 463972 34581 0 3 0x82 nanosleep syz-executor.1 95678 241060 1 0 3 0x100083 ttyin getty 44647 156710 0 0 3 0x14200 acct acct 95801 391141 0 0 3 0x14200 bored sosplice 34581 59403 18206 0 3 0x82 thrsleep syz-fuzzer 34581 253467 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 186243 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 478947 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 65971 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 232578 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 330849 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 393557 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 110211 18206 0 3 0x4000082 thrsleep syz-fuzzer 34581 123258 18206 0 3 0x4000082 kqread syz-fuzzer 18206 236533 3833 0 3 0x10008a pause ksh 3833 90168 12597 0 3 0x92 select sshd 12597 269862 1 0 3 0x80 select sshd 55257 23816 68756 74 3 0x100092 bpf pflogd 68756 400569 1 0 3 0x80 netio pflogd 12036 217072 95745 73 3 0x100090 kqread syslogd 95745 368993 1 0 3 0x100082 netio syslogd 98817 29177 1 77 3 0x100090 poll dhclient 86071 186653 1 0 3 0x80 poll dhclient 68901 422350 0 0 2 0x14200 zerothread 48484 513357 0 0 3 0x14200 aiodoned aiodoned 37781 14134 0 0 3 0x14200 syncer update 20988 324054 0 0 3 0x14200 cleaner cleaner 12578 194629 0 0 3 0x14200 reaper reaper 36518 509919 0 0 3 0x14200 pgdaemon pagedaemon 32029 200272 0 0 3 0x14200 bored crynlk 20441 390288 0 0 3 0x14200 bored crypto 95617 310295 0 0 3 0x40014200 acpi0 acpi0 23860 510308 0 0 3 0x40014200 idle1 17019 297635 0 0 3 0x14200 bored softnet 82676 24916 0 0 3 0x14200 bored systqmp 69482 208625 0 0 3 0x14200 bored systq 44153 418559 0 0 3 0x40014200 bored softclock 30570 361071 0 0 3 0x40014200 idle0 84285 93815 0 0 3 0x14200 bored smr 1 510093 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 60771 (syz-executor.0) thread 0xffff800020abe030 (154629) 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 9626 6489K 8595K 78643K 29977 0 0 pcb 13 12K 14K 78643K 1443 0 0 rtable 143 15K 16K 78643K 4411 0 0 ifaddr 113 29K 33K 78643K 1138 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1866 0 0 iov 0 0K 24K 78643K 1381 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 8286 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 136 0 0 VM map 54 27K 27K 78643K 86 0 0 sem 12 0K 1K 78643K 2985 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 6459 0 0 sigio 0 0K 0K 78643K 79 0 0 proc 61 63K 95K 78643K 3223 0 0 subproc 32 2K 2K 78643K 920 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 1012 0 0 in_multi 40 2K 3K 78643K 936 0 0 ether_multi 1 0K 0K 78643K 81 0 0 mrt 2 0K 0K 78643K 50 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1569 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 230 392K 393K 78643K 24288 0 0 UVM aobj 130 8K 8K 78643K 152 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 1469 0 0 NDP 24 0K 1K 78643K 381 0 0 temp 257 3561K 3637K 78643K 216186 0 0 kqueue 0 0K 0K 78643K 68 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 143 0 137 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 561 0 559 1 0 1 1 0 8 0 rtentry 112 860 0 806 2 0 2 2 0 8 0 unpcb 120 3594 0 3580 14 13 1 2 0 8 0 syncache 264 34 0 34 10 9 1 1 0 8 1 tcpqe 32 97 0 97 6 5 1 1 0 8 1 tcpcb 544 3379 0 3375 35 33 2 13 0 8 1 inpcb 280 11190 0 11180 45 43 2 13 0 8 1 rttmr 72 15 0 15 11 11 0 1 0 8 0 ip6q 72 5 0 5 4 4 0 1 0 8 0 ip6af 40 15 0 15 4 4 0 1 0 8 0 nd6 48 129 0 127 3 2 1 1 0 8 0 pkpcb 40 27 0 27 8 8 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 131 0 131 21 20 1 1 0 8 1 pffrag 232 128 0 128 24 23 1 1 0 482 1 pffrnode 88 128 0 128 24 23 1 1 0 8 1 pffrent 40 3884 0 3884 24 23 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 489 0 437 1 0 1 1 0 8 0 pfstkey 112 489 0 437 3 0 3 3 0 8 0 pfstate 328 489 0 437 10 3 7 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 2 4 2 2 3 0 8 0 art_heap4 256 3582 0 3376 43 26 17 18 0 8 1 art_table 32 3586 0 3378 4 1 3 3 0 8 0 art_node 16 851 0 808 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 14 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 2983 0 2973 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12104 0 10673 47 0 47 47 0 8 0 ffsino 272 12104 0 10673 96 0 96 96 0 8 0 nchpl 144 22587 0 22098 61 41 20 61 0 8 0 uvmvnodes 72 6441 0 0 118 0 118 118 0 8 0 vnodes 208 6441 0 0 339 0 339 339 0 8 0 namei 1024 99025 0 99025 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 53 0 1 7 0 7 7 0 8 0 vmpool 552 84 0 32 4 0 4 4 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 74859 0 74859 52 49 3 7 0 8 3 plimitpl 152 498 0 490 1 0 1 1 0 8 0 sigapl 432 6503 0 6488 4 2 2 3 0 8 0 futexpl 56 168124 0 168124 3 2 1 1 0 8 1 knotepl 112 1357 0 1338 3 2 1 3 0 8 0 kqueuepl 104 1877 0 1875 7 6 1 4 0 8 0 pipepl 112 5318 0 5299 11 10 1 2 0 8 0 fdescpl 488 6504 0 6488 3 0 3 3 0 8 0 filepl 152 72271 0 72168 53 47 6 14 0 8 1 lockfpl 104 6077 0 6076 1 0 1 1 0 8 0 lockfspl 48 1903 0 1902 1 0 1 1 0 8 0 sessionpl 112 72 0 61 1 0 1 1 0 8 0 pgrppl 48 370 0 359 1 0 1 1 0 8 0 ucredpl 96 20432 0 20422 1 0 1 1 0 8 0 zombiepl 144 6488 0 6487 3 2 1 1 0 8 0 processpl 896 6521 0 6487 4 0 4 4 0 8 0 procpl 632 20805 0 20761 7 2 5 5 0 8 0 srpgc 64 87 0 87 25 24 1 1 0 8 1 sosppl 128 216 0 216 23 23 0 1 0 8 0 sockpl 384 15515 0 15487 84 79 5 22 0 8 1 mcl64k 65536 746 0 0 83 28 55 65 0 8 0 mcl16k 16384 41 0 0 5 2 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 23 0 0 2 0 2 2 0 8 0 mcl8k 8192 49 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 239 0 0 27 5 22 27 0 8 0 mtagpl 80 105 0 0 1 0 1 1 0 8 0 mbufpl 256 841 0 0 39 0 39 39 0 8 0 bufpl 256 27431 0 20373 442 0 442 442 0 8 0 anonpl 16 858759 0 836491 251 155 96 104 0 124 4 amapchunkpl 152 49660 0 49486 72 64 8 15 0 158 0 amappl16 192 34965 0 33686 226 150 76 77 0 8 8 amappl15 184 833 0 832 1 0 1 1 0 8 0 amappl14 176 588 0 584 1 0 1 1 0 8 0 amappl13 168 1039 0 1037 1 0 1 1 0 8 0 amappl12 160 654 0 649 2 1 1 1 0 8 0 amappl11 152 1097 0 1081 1 0 1 1 0 8 0 amappl10 144 1470 0 1462 1 0 1 1 0 8 0 amappl9 136 2415 0 2412 1 0 1 1 0 8 0 amappl8 128 1965 0 1893 4 1 3 3 0 8 0 amappl7 120 1595 0 1586 1 0 1 1 0 8 0 amappl6 112 1017 0 998 1 0 1 1 0 8 0 amappl5 104 1846 0 1831 1 0 1 1 0 8 0 amappl4 96 7585 0 7550 1 0 1 1 0 8 0 amappl3 88 1135 0 1129 1 0 1 1 0 8 0 amappl2 80 49074 0 48996 3 0 3 3 0 8 0 amappl1 72 158515 0 158077 26 16 10 20 0 8 0 amappl 80 22009 0 21936 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 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 6588 0 6488 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6588 0 6488 1 0 1 1 0 8 0 vmmpekpl 168 59211 0 59166 3 0 3 3 0 8 0 vmmpepl 168 854777 0 852141 341 178 163 167 0 357 38 vmsppl 368 6503 0 6488 2 0 2 2 0 8 0 pdppl 4096 13183 0 13092 15 3 12 12 0 8 0 pvpl 32 2147583 0 2124065 458 251 207 230 0 265 10 pmappl 232 6587 0 6520 7 2 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 808 0 105 21 0 21 21 0 8 0