login: panic: ifa_update_broadaddr does not support dynamic length Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 338192 53013 0 0 0 0 syz-executor.1 *403296 53013 0 0 0x4000000 1K 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(ffff800000acd800,ffff800000ac6b00,ffff800023b69480) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800023b69470,ffff800000acd800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8070381d98,80206913,ffff800023b69470,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab0c70,ffff800023b69588,ffff800023b695d0) at sys_ioctl+0x5b9 syscall(ffff800023b69650) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b69650) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,73fda1d9010) at Xsyscall+0x128 end of kernel end trace frame: 0x742c46e5ee0, 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(ffff800000acd800,ffff800000ac6b00,ffff800023b69480) at ifa_update_broadaddr+0x61 sys/net/if.c:2986 in_ioctl(80206913,ffff800023b69470,ffff800000acd800,1) at in_ioctl+0x463 sys/netinet/in.c:311 ifioctl(fffffd8070381d98,80206913,ffff800023b69470,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020ab0c70,ffff800023b69588,ffff800023b695d0) at sys_ioctl+0x5b9 syscall(ffff800023b69650) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b69650) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,73fda1d9010) at Xsyscall+0x128 end of kernel end trace frame: 0x742c46e5ee0, count: -8 ddb{1}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x16c2 __ALIGN_SIZE+0x6c2 rbp 0xffff800023b69210 rbx 0xffff800023b692c0 rdx 0x16c3 __ALIGN_SIZE+0x6c3 rcx 0xffff800022d64000 rax 0xffff800022d64000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x4c50260669b10e6e r12 0x3000000008 r13 0xffff800023b69220 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b69200 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=403296 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff82646fa0 process=0xffff800020adca80 user=0xffff800023b64000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53013 338192 17469 0 7 0 syz-executor.1 *53013 403296 17469 0 7 0x4000000 syz-executor.1 17469 412598 91126 0 3 0x82 nanosleep syz-executor.1 17899 489688 0 0 3 0x14200 bored sosplice 9371 112495 91126 0 3 0x2 biowait syz-executor.0 91126 4288 33263 0 3 0x82 kqread syz-fuzzer 91126 345174 33263 0 3 0x4000082 nanosleep syz-fuzzer 91126 106062 33263 0 3 0x4000082 thrsleep syz-fuzzer 91126 410843 33263 0 3 0x4000082 thrsleep syz-fuzzer 91126 300985 33263 0 3 0x4000082 thrsleep syz-fuzzer 91126 320908 33263 0 3 0x4000082 thrsleep syz-fuzzer 91126 280874 33263 0 3 0x4000082 thrsleep syz-fuzzer 91126 342051 33263 0 3 0x4000082 thrsleep syz-fuzzer 91126 475992 33263 0 3 0x4000082 thrsleep syz-fuzzer 91126 32134 33263 0 3 0x4000082 nanosleep syz-fuzzer 33263 134858 79589 0 3 0x10008a pause ksh 79589 519321 60523 0 3 0x92 select sshd 84301 488593 1 0 3 0x100083 ttyin getty 60523 520271 1 0 3 0x80 select sshd 98494 420374 80552 74 3 0x100092 bpf pflogd 80552 509981 1 0 3 0x80 netio pflogd 82841 395864 51168 73 3 0x100090 kqread syslogd 51168 286547 1 0 3 0x100082 netio syslogd 35080 495822 1 77 3 0x100090 poll dhclient 6753 396526 1 0 3 0x80 poll dhclient 84083 312489 0 0 3 0x14200 pgzero zerothread 4598 258319 0 0 3 0x14200 aiodoned aiodoned 91861 77495 0 0 3 0x14200 syncer update 30592 405625 0 0 3 0x14200 cleaner cleaner 31817 439401 0 0 3 0x14200 reaper reaper 2824 335283 0 0 3 0x14200 pgdaemon pagedaemon 37611 117971 0 0 3 0x14200 bored crynlk 94397 138762 0 0 3 0x14200 bored crypto 24039 447507 0 0 3 0x40014200 acpi0 acpi0 27534 471801 0 0 3 0x40014200 idle1 21877 252688 0 0 3 0x14200 bored softnet 38040 293806 0 0 3 0x14200 bored systqmp 48185 83558 0 0 3 0x14200 bored systq 64015 276507 0 0 3 0x40014200 bored softclock 97630 91436 0 0 3 0x40014200 idle0 52714 185044 0 0 3 0x14200 bored smr 1 386665 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 53013 (syz-executor.1) thread 0xffff800020ab0c70 (403296) 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 Process 9371 (syz-executor.0) thread 0xffff800020ab18c8 (112495) exclusive rrwlock inode r = 0 (0xfffffd8077bc51b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80691ba2b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9496 6405K 7378K 78643K 11082 0 0 pcb 13 8K 8K 78643K 63 0 0 rtable 94 4K 4K 78643K 442 0 0 ifaddr 48 11K 13K 78643K 104 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1475 0 0 iov 0 0K 16K 78643K 60 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1228 77K 77K 78643K 1448 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 6 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 113 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 267 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 61 63K 95K 78643K 613 0 0 subproc 32 2K 2K 78643K 102 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 14 0 0 in_multi 23 1K 2K 78643K 83 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 273 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 114 22K 32K 78643K 1889 0 0 UVM aobj 38 2K 2K 78643K 39 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 32 0 0 NDP 9 0K 0K 78643K 32 0 0 temp 141 3555K 3619K 78643K 13135 0 0 kqueue 0 0K 0K 78643K 4 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 15 0 10 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 43 0 41 1 0 1 1 0 8 0 rtentry 112 86 0 51 2 0 2 2 0 8 0 unpcb 120 233 0 223 2 0 2 2 0 8 1 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 49 0 49 2 2 0 1 0 8 0 tcpcb 544 138 0 133 3 1 2 2 0 8 1 inpcb 280 367 0 358 2 0 2 2 0 8 1 nd6 48 12 0 10 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1128 5 0 5 1 0 1 1 0 8 1 pffrag 232 5 0 5 2 1 1 1 0 482 1 pffrnode 88 5 0 5 2 1 1 1 0 8 1 pffrent 40 225 0 225 2 1 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 29 0 2 1 0 1 1 0 8 0 pfstkey 112 29 0 2 1 0 1 1 0 8 0 pfstate 328 29 0 2 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 395 0 220 14 0 14 14 0 8 0 art_table 32 396 0 220 2 0 2 2 0 8 0 art_node 16 85 0 53 1 0 1 1 0 8 0 sysvmsgpl 40 57 0 31 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 111 0 101 1 0 1 1 0 8 0 shmpl 112 37 0 1 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1726 0 323 46 0 46 46 0 8 0 ffsino 272 1726 0 323 94 0 94 94 0 8 0 nchpl 144 2378 0 778 61 1 60 61 0 8 0 uvmvnodes 72 1947 0 0 36 0 36 36 0 8 0 vnodes 208 1947 0 0 103 0 103 103 0 8 0 namei 1024 7184 0 7183 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 6865 0 6864 8 7 1 7 0 8 0 plimitpl 152 41 0 33 1 0 1 1 0 8 0 sigapl 432 453 0 438 3 1 2 3 0 8 0 futexpl 56 5766 0 5766 1 0 1 1 0 8 1 knotepl 112 123 0 104 1 0 1 1 0 8 0 kqueuepl 104 48 0 46 1 0 1 1 0 8 0 pipepl 112 278 0 259 1 0 1 1 0 8 0 fdescpl 488 454 0 438 3 0 3 3 0 8 0 filepl 152 3426 0 3323 7 0 7 7 0 8 3 lockfpl 104 75 0 74 1 0 1 1 0 8 0 lockfspl 48 26 0 25 1 0 1 1 0 8 0 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 327 0 318 1 0 1 1 0 8 0 zombiepl 144 438 0 438 1 0 1 1 0 8 1 processpl 896 470 0 438 4 0 4 4 0 8 0 procpl 632 935 0 893 5 0 5 5 0 8 1 srpgc 64 10 0 10 2 1 1 1 0 8 1 sosppl 128 9 0 9 1 0 1 1 0 8 1 sockpl 384 653 0 632 6 0 6 6 0 8 3 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 175 0 0 21 0 21 21 0 8 0 mtagpl 80 7 0 0 1 0 1 1 0 8 0 mbufpl 256 378 0 0 23 0 23 23 0 8 0 bufpl 256 7055 0 1309 360 0 360 360 0 8 0 anonpl 16 66152 0 50143 79 1 78 78 0 124 0 amapchunkpl 152 3009 0 2864 15 1 14 14 0 158 6 amappl16 192 2011 0 952 54 0 54 54 0 8 0 amappl15 184 8 0 7 1 0 1 1 0 8 0 amappl14 176 113 0 109 1 0 1 1 0 8 0 amappl13 168 121 0 119 1 0 1 1 0 8 0 amappl12 160 4 0 4 1 1 0 1 0 8 0 amappl11 152 66 0 50 1 0 1 1 0 8 0 amappl10 144 24 0 15 1 0 1 1 0 8 0 amappl9 136 674 0 671 1 0 1 1 0 8 0 amappl8 128 226 0 197 2 0 2 2 0 8 0 amappl7 120 64 0 57 1 0 1 1 0 8 0 amappl6 112 57 0 48 1 0 1 1 0 8 0 amappl5 104 167 0 152 1 0 1 1 0 8 0 amappl4 96 706 0 672 1 0 1 1 0 8 0 amappl3 88 189 0 183 1 0 1 1 0 8 0 amappl2 80 2540 0 2467 3 1 2 3 0 8 0 amappl1 72 20382 0 19945 25 15 10 20 0 8 0 amappl 80 1258 0 1211 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 38 0 1 1 0 1 1 0 8 0 uaddrrnd 24 454 0 438 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 454 0 438 1 0 1 1 0 8 0 vmmpekpl 168 7898 0 7867 2 0 2 2 0 8 0 vmmpepl 168 66348 0 64142 146 8 138 138 0 357 39 vmsppl 368 453 0 438 2 0 2 2 0 8 0 pdppl 4096 915 0 876 6 0 6 6 0 8 1 pvpl 32 209196 0 189956 187 3 184 186 0 265 0 pmappl 232 453 0 438 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 536 0 4 16 0 16 16 0 8 0