OpenBSD cvs log

created 2022-11-23T12:29:58Z
begin 2022-11-14T00:00:00Z
end 2022-11-15T00:00:00Z
path src/sys
commits 11

date 2022-11-14T00:16:44Z
author deraadt
files src/sys/dev/hid/hidcc.c log diff annotate
message include sys/device.h, on some architectures this gets pulled in, but others
(like sparc64) require it explicitly

date 2022-11-14T00:16:46Z
author deraadt
files src/sys/dev/usb/ucc.c log diff annotate
message include sys/device.h, on some architectures this gets pulled in, but others
(like sparc64) require it explicitly

date 2022-11-14T07:22:44Z
author miod
files src/sys/dev/fdt/pwmbl.c log diff annotate
message When the fdt does not provide a list of brightness states, pwmbl(4)
builds a 256 state ramp (i.e. state[i] = i with 0 <= i < 256).

Change the logic to not need to malloc an array of values in this case,
since they are trivially known.

test&ok patrick@

date 2022-11-14T11:11:17Z
author kettenis
files src/sys/arch/arm64/dev/aplsmc.c log diff annotate
message Turns out the power button on the Mac mini and the touchid button on the
various Macbook models generate different events. So rename the existing
constant for a "short press" of the touchid button and add support for the
power button on the Mac mini such that is can be resumed.

ok tobhe@, patrick@

date 2022-11-14T17:12:55Z
author claudio
files src/sys/netinet6/in6_ifattach.c log diff annotate
message Relax the list of interfaces which support IPv6 a bit.

No longer require IFF_MULTICAST for all interfaces. It is save to skip
this for interfaces that don't require a ND cache. Also do not assign a
link-local address in such cases. This affects point-to-point interfaces
and the NBMA / point-to-multipoint interfaces like mpe(4), mgre(4) and wg(4).
The NBMA interfaces need some alternative way to figure out the address
mapping. In the end this allows non-multicast interfaces to work with IPv6.
OK dlg@ kn@

date 2022-11-14T17:15:41Z
author visa
files src/sys/arch/loongson/loongson/isa_machdep.c log diff annotate
message Add missing clock trigger to loongson_isa_splx().

Fixes unexpected delays that have occurred with mips64 clock(4).

date 2022-11-14T17:25:00Z
author visa
files src/sys/kern/exec_elf.c log diff annotate
message Fix tag type and buffer limit in DT_TEXTREL lookup.

OK deraadt@ kettenis@

date 2022-11-14T22:06:25Z
author kn
files src/sys/net/if.c log diff annotate
message Document global interface group list locking

The per-interface group list is protected by the net lock and already
documented as such.

The global interface group list `ifg_head' is also protected by the net
lock and all access to it (all within if.c) take it accordingly.

Feedback OK mvs

date 2022-11-14T22:06:26Z
author kn
files src/sys/net/if_var.h log diff annotate
message Document global interface group list locking

The per-interface group list is protected by the net lock and already
documented as such.

The global interface group list `ifg_head' is also protected by the net
lock and all access to it (all within if.c) take it accordingly.

Feedback OK mvs

date 2022-11-14T22:07:30Z
author kn
files src/sys/net/if.c log diff annotate
message Unlock SIOCGIFCONF

As netintro(4) explains, this copies a bunch of data from the global
interface list as well as its per-interface address lists.

All of this is never written to by ifconf(), protected by the net lock
and documented as such in the struct comments already.

OK mvs

date 2022-11-14T22:45:02Z
author kn
files src/sys/net/if.c log diff annotate
message Unlock SIOCGIFG{MEMB,ATTR,LIST}

The global interface group list is also protected by the net lock and all
access to it (all within if.c) take it accordingly.

Getting all
- members of a group (SIOCGIFGMEMB),
- attributes of a group (SIOCGIFGATTR),
- groups (SIOCGIFGLIST)
are each read-only operations on the global interface group `ifg_head'.

The global interface list `ifnetlist' or its per-interface group lists are
not used in these ioctls.

OK mvs