OpenBSD cvs log

created 2021-01-16T23:14:37Z
begin 2021-01-09T00:00:00Z
end 2021-01-10T00:00:00Z
path src/sys
commits 23

date 2021-01-09T02:34:21Z
author aoyama
files src/sys/arch/luna88k/dev/siotty.c log diff annotate
message Now we do not call ttyopen() in sioopen(), we do not need the variable
'error' anymore.

date 2021-01-09T12:15:49Z
author visa
files src/sys/kern/subr_witness.c log diff annotate
message Remove unnecessary relocking of w_mtx as panic() should not return.

date 2021-01-09T12:18:28Z
author visa
files src/sys/kern/subr_witness.c log diff annotate
message Replace SIMPLEQ with SLIST because the code does not need a queue.

date 2021-01-09T12:20:37Z
author visa
files src/sys/kern/subr_witness.c log diff annotate
message Replace a custom linked list with SLIST.

date 2021-01-09T13:14:02Z
author kettenis
files src/sys/arch/powerpc64/include/fpu.h log diff annotate
src/sys/arch/powerpc64/include/pcb.h log diff annotate
src/sys/arch/powerpc64/include/psl.h log diff annotate
src/sys/arch/powerpc64/powerpc64/fpu.c log diff annotate
src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
src/sys/arch/powerpc64/powerpc64/process_machdep.c log diff annotate
src/sys/arch/powerpc64/powerpc64/trap.c log diff annotate
src/sys/arch/powerpc64/powerpc64/vm_machdep.c log diff annotate
message Enable support for floating-point exceptions. We always run in "precise"
mode. On modern processors (POWER8 and later) there is no performance
penalty for this as long as exceptions are disabled in the FPSCR (which
is the default). This way we don't have to implement an
architecture-dependent system call to set the mode, as it can only be done
by the kernel.

With help from gkoehler@

ok gkoehler@

date 2021-01-09T14:55:21Z
author bluhm
files src/sys/net/if.c log diff annotate
message Syzkaller has found a stack overflow in socket splicing. Broadcast
packets were resent through simplex broadcast delivery and socket
splicing. Although there is an M_LOOP check in somove(9), it did
not take effect. if_input_local() cleared the M_BCAST and M_MCAST
flags with m_resethdr().
As if_input_local() is used for broadcast and multicast delivery,
it was a mistake to delete them. Keep the M_BCAST and M_MCAST mbuf
flags when packets are reinjected into the network stack.
Reported-by: [email protected]
OK anton@; discussed with claudio@

date 2021-01-09T15:30:38Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
message If the loop check in somove(9) goes to release without setting an
error, a broadcast mbuf will stay in the socket buffer forever.
This is bad as multiple mbufs can use up all the space. Better
report ELOOP, dissolve splicing, and let userland handle it.
OK anton@

date 2021-01-09T18:03:19Z
author kettenis
files src/sys/arch/hppa/hppa/locore.S log diff annotate
src/sys/arch/hppa/hppa/machdep.c log diff annotate
message "encoding of diag instructions is hard, let's go shopping"

Clean up things a bit, adding documentation about the source of the
information about these instructions.

From miod@

date 2021-01-09T18:20:47Z
author fcambus
files src/sys/dev/rasops/rasops1.c log diff annotate
message Include the optimized putchar functions only if RASOPS_SMALL is not
defined, as was previously the case.

OK kettenis@

date 2021-01-09T20:45:55Z
author gnezdo
files src/sys/dev/wscons/wsmux.c log diff annotate
message Stop wsmux_attach_sc race from anton@

OK millert@

date 2021-01-09T20:51:00Z
author gnezdo
files src/sys/dev/wscons/wsmux.c log diff annotate
message Revert mistaken commit: Stop wsmux_attach_sc race from anton@

date 2021-01-09T20:57:46Z
author gnezdo
files src/sys/kern/kern_sched.c log diff annotate
message Use sysctl_int_bounded in sysctl_hwsmt

Prefer error reporting is to silent clipping.

OK millert@

date 2021-01-09T20:58:12Z
author gnezdo
files src/sys/ddb/db_usrreq.c log diff annotate
message Finish converting ddb_sysctl to sysctl_int_bounded

I missed the verbose pattern that it used for error checking the first
time around.

OK millert@

date 2021-01-09T20:58:37Z
author gnezdo
files src/sys/netinet/tcp_usrreq.c log diff annotate
message Enforce range with sysctl_int_bounded in tcp_sysctl

One case uses the explicit range from the code and the other was
inferred from reading the usage.

OK millert@

date 2021-01-09T20:59:06Z
author gnezdo
files src/sys/kern/subr_witness.c log diff annotate
message Enforce range with sysctl_int_bounded in witness_sysctl_watch

Makes previously explicit checking less verbose.

OK millert@

date 2021-01-09T20:59:23Z
author gnezdo
files src/sys/kern/kern_watchdog.c log diff annotate
message Enforce range with sysctl_int_bounded in sysctl_wdog

OK millert@

date 2021-01-09T20:59:44Z
author gnezdo
files src/sys/netinet/ip_ipip.c log diff annotate
message Enforce range with sysctl_int_bounded in ipip_sysctl

OK millert@

date 2021-01-09T21:00:04Z
author gnezdo
files src/sys/net/pipex.c log diff annotate
message Enforce range with sysctl_int_bounded in pipex_sysctl

OK millert@

date 2021-01-09T21:00:29Z
author gnezdo
files src/sys/uvm/uvm_swap_encrypt.c log diff annotate
message Enforce range with sysctl_int_bounded in swap_encrypt_ctl

OK millert@

date 2021-01-09T21:00:58Z
author gnezdo
files src/sys/net/if_etherip.c log diff annotate
message Enforce range with sysctl_int_bounded in etherip_sysctl

OK millert@

date 2021-01-09T21:01:20Z
author gnezdo
files src/sys/arch/i386/i386/machdep.c log diff annotate
message Fold fitting sysctl_rdint into sysctl_bounded_arr in i386 cpu_sysctl

OK millert@

date 2021-01-09T22:00:13Z
author gnezdo
files src/sys/kern/kern_sysctl.c log diff annotate
message Reduce case duplication in kern_sysctl

This changes amd64 GENERIC.MP .text size of kern_sysctl.o from 6440 to 6400.
Surprisingly, RAMDISK grows from 1645 to 1678.

OK millert@, mglocker@

date 2021-01-09T23:33:18Z
author gnezdo
files src/sys/kern/kern_sysctl.c log diff annotate
message Split hierarchical calls into kern_sysctl_dirs

Removed a rash of +/-1 and made both functions shorter and more focused.

OK millert@