OpenBSD cvs log

created 2021-02-14T12:25:58Z
begin 2021-02-10T00:00:00Z
end 2021-02-11T00:00:00Z
path src/sys
commits 5

date 2021-02-10T08:20:09Z
author mvs
files src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/sys/unpcb.h log diff annotate
message Move UNIX domain sockets out of kernel lock. The new `unp_lock' rwlock(9)
used as solock()'s backend to protect the whole layer.

With feedback from mpi@.

ok bluhm@ claudio@

date 2021-02-10T13:38:46Z
author mvs
files src/sys/net/if_pppx.c log diff annotate
message Remove `sc_dead' logic from pppac(4). It is used to prevent
pppac_ioctl() be called on dying pppac(4) interface. But now if_detach()
makes dying `ifp' inaccessible and waits for references which are in-use
in ioctl(2) path. This logic is not required anymore. Also if_detach()
was moved before klist_invalidate() to prevent the case while
pppac_qstart() bump `sc_rsel'.

ok yasuoka@

date 2021-02-10T14:41:53Z
author bluhm
files src/sys/net/if.c log diff annotate
message Interface group names must fit into IFNAMSIZ and be unique. But
the kernel made the unique check before trunkating with strlcpy().
So there could be two interface groups with the same name. The kif
is created by a name lookup. The trunkated names are equal, so
there was only one kif owned by both groups. When the groups got
destroyed, the single kif was removed twice from the RB tree.
Check length of group name before doing the unique check.
The empty group name was allowed and is now invalid.
Reported-by: [email protected]
OK deraadt@ gnezdo@ anton@ mvs@ claudio@

date 2021-02-10T18:28:06Z
author bluhm
files src/sys/netinet/ip_output.c log diff annotate
message If pf changes the routing table when sending packets, the kernel
could get stuck in an endless recursion during TCP path MTU discovery.
Create a dynamic host route in ip_output() that can be used by
tcp_mtudisc() to store the MTU.
Reported by Peter Mueller and Sebastian Sturm
OK claudio@

date 2021-02-10T20:51:27Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Add a instruction barrier between writing CCSELR_EL1 and reading CCSIDR_EL1
to guarantee that we read the cache parameters of the cache we just selected.
The required ISB instruction is present in the examples in the ARM ARM.
Fixes the the report on the cores in Apple's M1 SoC.

ok patrick@