OpenBSD cvs log

created 2022-02-26T20:15:55Z
begin 2022-02-22T00:00:00Z
end 2022-02-23T00:00:00Z
path src/sys
commits 20

date 2022-02-22T01:01:02Z
author guenther
files src/sys/sys/socket.h log diff annotate
message pfctlinput() is already declared in <sys/protosw.h>, which is
more specific and appropriate, so delete it here

ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:02:57Z
author guenther
files src/sys/netinet6/ip6protosw.h log diff annotate
src/sys/sys/protosw.h log diff annotate
message Move declarations of ip6_protox[] and inet6sw[] to <sys/protosw.h>
where the IPv4 versions have been forever

ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:15:01Z
author guenther
files src/sys/arch/macppc/dev/if_mc.c log diff annotate
src/sys/dev/ic/dc.c log diff annotate
src/sys/dev/ic/lemac.c log diff annotate
src/sys/dev/ic/xl.c log diff annotate
src/sys/dev/isa/if_ie.c log diff annotate
src/sys/dev/pci/if_dc_pci.c log diff annotate
src/sys/dev/pci/if_de.c log diff annotate
src/sys/dev/pci/if_sis.c log diff annotate
src/sys/dev/pci/if_ste.c log diff annotate
src/sys/dev/pci/if_xl_pci.c log diff annotate
src/sys/kern/init_main.c log diff annotate
src/sys/kern/kern_event.c log diff annotate
src/sys/kern/uipc_mbuf.c log diff annotate
message Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>

net/if_pppx.c pointed out by jsg@
ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:15:02Z
author guenther
files src/sys/net/if_ethersubr.c log diff annotate
src/sys/net/if_pppx.c log diff annotate
src/sys/net/if_tun.c log diff annotate
src/sys/net/if_wg.c log diff annotate
src/sys/net/route.c log diff annotate
src/sys/netinet/ip_spd.c log diff annotate
src/sys/netinet/tcp_debug.c log diff annotate
src/sys/netinet6/dest6.c log diff annotate
src/sys/netinet6/frag6.c log diff annotate
src/sys/netinet6/icmp6.c log diff annotate
src/sys/netinet6/in6_src.c log diff annotate
src/sys/netinet6/ip6_forward.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
src/sys/netinet6/udp6_output.c log diff annotate
src/sys/netmpls/mpls_proto.c log diff annotate
src/sys/netmpls/mpls_raw.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/uvm/uvm_swap.c log diff annotate
message Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>

net/if_pppx.c pointed out by jsg@
ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:35:40Z
author guenther
files src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet/ipsec_input.c log diff annotate
message Delete unnecessary #includes of <netinet6/ip6protosw.h>: some never
needed it and some no longer need it after moving the externs from
there to <sys/protosw.h>

ok jsg@

date 2022-02-22T01:35:41Z
author guenther
files src/sys/netinet6/in6_proto.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
src/sys/netinet6/udp6_output.c log diff annotate
message Delete unnecessary #includes of <netinet6/ip6protosw.h>: some never
needed it and some no longer need it after moving the externs from
there to <sys/protosw.h>

ok jsg@

date 2022-02-22T03:34:51Z
author deraadt
files src/sys/sys/sysctl.h log diff annotate
message The FILL_KPROC() macro should be useable in situations where sys/param.h
hasn't been included, so the use of MIN() is not legit, and a local
version is required.

date 2022-02-22T07:34:06Z
author visa
files src/sys/dev/audio.c log diff annotate
message Make audio(4) event filters MP-safe

Add f_modify and f_process callbacks, and initialize the knote lists
to use audio_lock. This makes audio_lock cover the device's knote
processing.

OK mpi@

date 2022-02-22T07:46:04Z
author visa
files src/sys/arch/riscv64/riscv64/db_trace.c log diff annotate
message ddb: Improve stack unwinding on riscv64

Add logic to navigate across trapframes. Stop unwinding if the frame
pointer is clearly bad. Adjust output, and tweak details.

OK miod@ kettenis@

date 2022-02-22T07:47:46Z
author visa
files src/sys/arch/riscv64/riscv64/cpuswitch.S log diff annotate
src/sys/arch/riscv64/riscv64/vm_machdep.c log diff annotate
message Clear frame pointer in cpu_fork() on riscv64

This ensures the chain of call frames is terminated properly, preventing
errors when unwinding kernel stacks.

OK miod@ kettenis@

date 2022-02-22T13:34:23Z
author visa
files src/sys/arch/powerpc64/dev/ipmi_opal.c log diff annotate
src/sys/arch/powerpc64/dev/kexec.c log diff annotate
src/sys/arch/riscv64/riscv64/syscall.c log diff annotate
message Remove extra ;

No functional change.

date 2022-02-22T16:58:08Z
author deraadt
files src/sys/sys/syslimits.h log diff annotate
message Add _MAXCOMLEN to syslimits, it is 24, and includes the NUL. Following
commits will change sys/param.h MAXCOMLEN, sys/sysctl.h KI_MAXCOMLEN,
sys/acct.h ac_comm[], dev/ic/dtvar.h DTMAXCOMLEN to use this, and also
adapt most to the included NUL correctly. This will allow us to remove
sys/param.h include from userland base.
sys/syslimits.h is chosen as the best place for this define because it
has very small namespace which is already pulled in often.
ok millert

date 2022-02-22T17:04:29Z
author deraadt
files src/sys/sys/param.h log diff annotate
message Define MAXCOMLEN in terms of _MAXCOMLEN (-1, because MAXCOMLEN does not
have the terminating NUL). In the near future, fewer programs will use
this yucky non-string, some kernel:userland interfaces will to change to
pass a proper string.
ok millert

date 2022-02-22T17:05:51Z
author deraadt
files src/sys/sys/sysctl.h log diff annotate
message sysctl already passed the commandname as a 24-byte string KI_MAXCOMLEN
because it was padded. Define it in terms of _MAXCOMLEN from syslimits.h
ok millert

date 2022-02-22T17:14:13Z
author deraadt
files src/sys/sys/core.h log diff annotate
message Start using new _MAXCOMLEN (a proper string expanded to 24 bytes
including the NUL), in all internal interafaces, and expose this
in ktrace, core, or proc.h visibility.
ok millert

date 2022-02-22T17:14:14Z
author deraadt
files src/sys/kern/kern_exec.c log diff annotate
src/sys/kern/kern_ktrace.c log diff annotate
src/sys/sys/ktrace.h log diff annotate
src/sys/sys/proc.h log diff annotate
message Start using new _MAXCOMLEN (a proper string expanded to 24 bytes
including the NUL), in all internal interafaces, and expose this
in ktrace, core, or proc.h visibility.
ok millert

date 2022-02-22T17:22:28Z
author deraadt
files src/sys/sys/acct.h log diff annotate
message Since other exported commandnames were increased to 24 and graduated into
proper strings, adapt struct acct's ac_comm similarily. While here increase
ac_mem to 32-bits, increase ac_flag from 8 to 32 bits for future extensions,
add ac_pid for forensics, and reorder the structure to avoid compiler pads.
More work remains in the sa(8) command to use ac_pid better.
This is a flag day for the acct file format, new/old files/tools are incompatible.
ok bluhm millert

date 2022-02-22T17:22:29Z
author deraadt
files src/sys/kern/kern_acct.c log diff annotate
message Since other exported commandnames were increased to 24 and graduated into
proper strings, adapt struct acct's ac_comm similarily. While here increase
ac_mem to 32-bits, increase ac_flag from 8 to 32 bits for future extensions,
add ac_pid for forensics, and reorder the structure to avoid compiler pads.
More work remains in the sa(8) command to use ac_pid better.
This is a flag day for the acct file format, new/old files/tools are incompatible.
ok bluhm millert

date 2022-02-22T17:26:04Z
author deraadt
files src/sys/dev/dt/dt_dev.c log diff annotate
src/sys/dev/dt/dtvar.h log diff annotate
message Since other exported commandnames were increased to 24 and graduated into
proper strings, adapt dt's exported string in the same way.
Old/new files/tools will not work the same way.
That this interface needs to also change was pointed out by jsg

date 2022-02-22T20:37:19Z
author kettenis
files src/sys/arch/arm64/dev/aplsmc.c log diff annotate
message Fix thinko in construction of SMC key for the targeted GPIO pin.

visa@