OpenBSD cvs log

created 2022-09-11T02:56:04Z
begin 2022-09-03T00:00:00Z
end 2022-09-04T00:00:00Z
path src/sys
commits 21

date 2022-09-03T08:44:56Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/apldc.c log diff annotate
message Add apldcms(4), a driver for the touchpad on M2 laptops. This driver
needs firmware that is provided on the ESP by the Asahi installer and
copied into /etc/firmware/apple by the OpenBSD installer.

ok tobhe@

date 2022-09-03T12:33:44Z
author mbuhl
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
message add the sendmmsg syscall that allows sending multiple msghdrs at
once. libc, man page, and regress parts to come.
With input from jca@, bluhm@.
OK bluhm@

date 2022-09-03T12:33:45Z
author mbuhl
files src/sys/sys/socket.h log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message add the sendmmsg syscall that allows sending multiple msghdrs at
once. libc, man page, and regress parts to come.
With input from jca@, bluhm@.
OK bluhm@

date 2022-09-03T12:35:29Z
author mbuhl
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2022-09-03T13:29:33Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
message Fix socket splicing between inet and inet6 sockets broken by PRU_CONTROL
request splitting to (*pru_control)().

ok bluhm@

date 2022-09-03T14:57:54Z
author yasuoka
files src/sys/net/pf.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message When divert-reply is used, keep some pf states after pcb is dropped if
its local address is translated, to prevent its source port from being
reused. regress test by blumn.

ok blumn

date 2022-09-03T15:29:43Z
author kettenis
files src/sys/dev/sdmmc/sdmmc.c log diff annotate
src/sys/kern/subr_disk.c log diff annotate
message Allow suspend with root on sdmmc(4).

ok deraadt@

date 2022-09-03T15:29:44Z
author kettenis
files src/sys/sys/systm.h log diff annotate
message Allow suspend with root on sdmmc(4).

ok deraadt@

date 2022-09-03T15:48:16Z
author kettenis
files src/sys/dev/i2c/ihidev.h log diff annotate
src/sys/dev/i2c/ikbd.c log diff annotate
message Allow ikbd(4) to become the console keyboard.

ok miod@

date 2022-09-03T18:05:10Z
author kettenis
files src/sys/dev/acpi/acpi.c log diff annotate
src/sys/dev/fdt/axppmic.c log diff annotate
src/sys/kern/subr_suspend.c log diff annotate
src/sys/sys/device.h log diff annotate
message Make sure we don't suspend if we have no way to wake up the machine.
The idea is that device drivers that can wake up the machine register
themselves by calling device_register_wakeup(). To prevent regressions
on amd64, we let acpi(4) register itself as a wakeup device if the AML
for the machine defines wakeup devices. This may be refined in the
future.

This diff will prevent people from suspending their arm64 SBCs without
having a way to wake them up. For now the only driver that registers
itself is axppmic(4), which means that at this moment only SBCs with
an allwinner A64 or H5 SoC will actually support suspend/resume.

ok mlarkin@, deraadt@

date 2022-09-03T18:17:15Z
author mlarkin
files src/sys/kern/subr_hibernate.c log diff annotate
message whitespace

date 2022-09-03T18:48:49Z
author mvs
files src/sys/kern/uipc_usrreq.c log diff annotate
message Move PRU_SOCKADDR request to (*pru_sockaddr)()

Introduce in{,6}_sockaddr() functions, and use them for all except tcp(4)
inet sockets. For tcp(4) sockets use tcp_sockaddr() to keep debug ability.

The key management and route domain sockets returns EINVAL error for
PRU_SOCKADDR request, so keep this behaviour for a while instead of make
pru_sockaddr handler optional and return EOPNOTSUPP.

ok bluhm@

date 2022-09-03T18:48:50Z
author mvs
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet/in_pcb.h log diff annotate
src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/ip_gre.c log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
src/sys/netinet6/ip6_divert.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
src/sys/sys/protosw.h log diff annotate
src/sys/sys/unpcb.h log diff annotate
message Move PRU_SOCKADDR request to (*pru_sockaddr)()

Introduce in{,6}_sockaddr() functions, and use them for all except tcp(4)
inet sockets. For tcp(4) sockets use tcp_sockaddr() to keep debug ability.

The key management and route domain sockets returns EINVAL error for
PRU_SOCKADDR request, so keep this behaviour for a while instead of make
pru_sockaddr handler optional and return EOPNOTSUPP.

ok bluhm@

date 2022-09-03T19:04:28Z
author kettenis
files src/sys/arch/arm64/dev/rtkit.c log diff annotate
src/sys/arch/arm64/dev/rtkit.h log diff annotate
message Handle syslog messages and add support for setting the AP power state.

date 2022-09-03T19:05:52Z
author kettenis
files src/sys/arch/arm64/dev/aplrtk.c log diff annotate
message Set AP power state. This is needed if U-Boot didn't do this for us.

date 2022-09-03T19:22:19Z
author bluhm
files src/sys/net/pf.c log diff annotate
src/sys/netinet/tcp_input.c log diff annotate
src/sys/netinet/tcp_output.c log diff annotate
src/sys/netinet/tcp_subr.c log diff annotate
src/sys/netinet/tcp_timer.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
message Use a mutex to update tcp_maxidle, tcp_iss, and tcp_now. This
removes pressure from the exclusive netlock in tcp_slowtimo().
Reading is done atomically. Ensure that the tcp_now value is read
only once per function to provide consistent time.
OK yasuoka@

date 2022-09-03T21:13:48Z
author mbuhl
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
src/sys/sys/socket.h log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message Make recvmmsg and sendmmsg look more alike. change the flag type
to int like other flag parameters, NetBSD uses unsigned int, FreeBSD
and Linux do int.
OK bluhm@

date 2022-09-03T21:16:51Z
author mbuhl
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2022-09-03T22:11:09Z
author bluhm
files src/sys/netinet/tcp_subr.c log diff annotate
message Initialize TCP mutex forgotten in previous commit.
found by Hrvoje Popovski with witness; OK mvs@

date 2022-09-03T22:43:38Z
author mvs
files src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet/in_pcb.h log diff annotate
src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/ip_divert.h log diff annotate
src/sys/netinet/ip_gre.c log diff annotate
src/sys/netinet/ip_var.h log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet/udp_var.h log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
src/sys/netinet6/ip6_divert.c log diff annotate
src/sys/netinet6/ip6_divert.h log diff annotate
src/sys/netinet6/ip6_var.h log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
message Move PRU_PEERADDR request to (*pru_peeraddr)().

Introduce in{,6}_peeraddr() and use them for inet and inet6 sockets,
except tcp(4) case.

Also remove *_usrreq() handlers.

ok bluhm@

date 2022-09-03T22:43:39Z
author mvs
files src/sys/sys/protosw.h log diff annotate
src/sys/sys/unpcb.h log diff annotate
message Move PRU_PEERADDR request to (*pru_peeraddr)().

Introduce in{,6}_peeraddr() and use them for inet and inet6 sockets,
except tcp(4) case.

Also remove *_usrreq() handlers.

ok bluhm@