OpenBSD cvs log

created 2022-08-20T15:11:29Z
begin 2022-08-15T00:00:00Z
end 2022-08-16T00:00:00Z
path src/sys
commits 20

date 2022-08-15T01:35:07Z
author jsg
files src/sys/dev/usb/uvideo.c log diff annotate
message remove unused uvideo_enable()/uvideo_disable()
ok mglocker@ miod@

date 2022-08-15T01:47:09Z
author jsg
files src/sys/msdosfs/denode.h log diff annotate
src/sys/msdosfs/msdosfs_lookup.c log diff annotate
message remove msdosfs findwin95()

unused since msdosfs_vfsops.c 1.95
ok miod@ millert@

date 2022-08-15T01:59:00Z
author jsg
files src/sys/dev/ic/smc91cxx.c log diff annotate
src/sys/dev/ic/smc91cxxvar.h log diff annotate
message remove unused smc91cxx_activate()
ok miod@

date 2022-08-15T02:07:11Z
author jsg
files src/sys/dev/pci/if_de.c log diff annotate
message remove tulip_mbuf_compress() unused since if_de.c 1.127
ok miod@

date 2022-08-15T03:12:12Z
author jsg
files src/sys/uvm/uvm_map.c log diff annotate
message remove unused uvm_map_sel_limits()
ok miod@ millert@

date 2022-08-15T03:21:04Z
author jsg
files src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_pager.c log diff annotate
message remove unused uvm_aiobuf_pool

date 2022-08-15T04:17:50Z
author daniel
files src/sys/arch/amd64/amd64/lapic.c log diff annotate
src/sys/arch/amd64/stand/mbr/mbr.S log diff annotate
src/sys/arch/i386/i386/cpu.c log diff annotate
src/sys/arch/i386/i386/lapic.c log diff annotate
src/sys/arch/i386/i386/locore.s log diff annotate
src/sys/arch/i386/i386/locore0.S log diff annotate
src/sys/arch/i386/i386/machdep.c log diff annotate
message drop detection code for 386sx/386dx CPUs

OpenBSD/i386 doesn't actually support running on 386sx or 386dx CPUs
so we don't need to test whether we're running on one of these CPUs
anymore.

The 486 (which was launched in 1989) added a few new features over
the 386:
- an alignment check flag in EFLAGS
- 3 new userland instructions: bswap / cmpxchg / xadd
- 3 new kernel mode instructions: invd / wbinvd / invlpg
- new bits in CR0 (386 CPUs did not support ring0 write protection)
- new bits in CR3

In this diff, we remove the code that checks for the alignment check
flag as we've only supported Pentium (or newer) CPUs for some time.

The rest of the diff is about updating comments related to pre-486
CPUs. 2 files under arch/amd64 are updated to keep them in sync
with the arch/i386 updates.

ok mlarkin@, jsg@; tweak from miod@

date 2022-08-15T04:17:51Z
author daniel
files src/sys/arch/i386/include/cputypes.h log diff annotate
src/sys/arch/i386/stand/mbr/mbr.S log diff annotate
message drop detection code for 386sx/386dx CPUs

OpenBSD/i386 doesn't actually support running on 386sx or 386dx CPUs
so we don't need to test whether we're running on one of these CPUs
anymore.

The 486 (which was launched in 1989) added a few new features over
the 386:
- an alignment check flag in EFLAGS
- 3 new userland instructions: bswap / cmpxchg / xadd
- 3 new kernel mode instructions: invd / wbinvd / invlpg
- new bits in CR0 (386 CPUs did not support ring0 write protection)
- new bits in CR3

In this diff, we remove the code that checks for the alignment check
flag as we've only supported Pentium (or newer) CPUs for some time.

The rest of the diff is about updating comments related to pre-486
CPUs. 2 files under arch/amd64 are updated to keep them in sync
with the arch/i386 updates.

ok mlarkin@, jsg@; tweak from miod@

date 2022-08-15T09:10:36Z
author mvs
files src/sys/kern/kern_task.c log diff annotate
message Stop doing lockless `t_flags' check within task_add(9) and task_del(9).
This doesn't work on MP systems. We do locked `t_flags' check just after
lockless check, so just remove it.

ok dlg@

date 2022-08-15T09:11:38Z
author mvs
files src/sys/kern/uipc_proto.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
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_proto.c log diff annotate
message Introduce 'pr_usrreqs' structure and move existing user-protocol
handlers into it. We want to split existing (*pr_usrreq)() to multiple
short handlers for each PRU_ request as it was already done for
PRU_ATTACH and PRU_DETACH. This is the preparation step, (*pr_usrreq)()
split will be done with the following diffs.

Based on reverted diff from guenther@.

ok bluhm@

date 2022-08-15T09:11:39Z
author mvs
files 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_gre.h 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_proto.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
src/sys/sys/protosw.h log diff annotate
src/sys/sys/unpcb.h log diff annotate
message Introduce 'pr_usrreqs' structure and move existing user-protocol
handlers into it. We want to split existing (*pr_usrreq)() to multiple
short handlers for each PRU_ request as it was already done for
PRU_ATTACH and PRU_DETACH. This is the preparation step, (*pr_usrreq)()
split will be done with the following diffs.

Based on reverted diff from guenther@.

ok bluhm@

date 2022-08-15T11:38:35Z
author mvs
files src/sys/kern/kern_task.c log diff annotate
message Revert previous. It was not ok'ed by dlg@.

date 2022-08-15T12:29:19Z
author tb
files src/sys/lib/libz/inflate.c log diff annotate
message Adjust whitespace (tabs vs spaces) on one line to reduce diff with upstream

date 2022-08-15T13:13:41Z
author kn
files src/sys/arch/arm64/stand/efiboot/conf.c log diff annotate
src/sys/arch/arm64/stand/efiboot/softraid_arm64.c log diff annotate
message Add softraid(4) RAID 1C boot support

This is the arm64 adaptation of stsp's (commitid: p55cmsVoEH0fRg77)
"add support for booting from RAID 1C softraid(4) volumes on amd64".

Tell the boot loader to decrypt 1C like C volumes and check the number of
disks in 1C like in 1C volumes -- no new code rquired.

Tested on SolidRun CEX7
OK stsp

NB: While kernel and boot loader support root on softraid on arm64,
installboot(8) does not, i.e. default installations still require manual
disk preparation for now.

date 2022-08-15T13:29:05Z
author tb
files src/sys/lib/libz/zlib.h log diff annotate
message Fix a doc comment to match upstream

date 2022-08-15T13:33:22Z
author jsg
files src/sys/arch/arm64/arm64/trap.c log diff annotate
message unifdef KDB

date 2022-08-15T14:44:18Z
author mvs
files src/sys/netinet/tcp_usrreq.c log diff annotate
message Introduce tcp_sogetpcb() to assign `inp' and `tp' from passed socket.
This function will help to avoid code duplication when tcp_usrreq() will
be divided to multiple handlers.

ok bluhm@

date 2022-08-15T15:53:45Z
author jsg
files src/sys/uvm/uvm_map.c log diff annotate
message remove FSPACE macros, unused after uvm_map_sel_limits() removal

date 2022-08-15T16:15:36Z
author bluhm
files src/sys/netinet/ip_input.c log diff annotate
message Run IPv6 hop-by-hop options processing in parallel. The ip6_hbhchcheck()
code is MP safe and moves from ip6_local() to ip6_ours(). If there
are any options, store the chain offset and next protocol in a mbuf
tag. When dequeuing without tag, it is a regular IPv6 header. As
mbuf tags degrade performance, use them only if a hop-by-hop header
is present. Such packets are rare and pf drops them by default.
OK mvs@

date 2022-08-15T16:15:37Z
author bluhm
files src/sys/netinet6/ip6_input.c log diff annotate
src/sys/sys/mbuf.h log diff annotate
message Run IPv6 hop-by-hop options processing in parallel. The ip6_hbhchcheck()
code is MP safe and moves from ip6_local() to ip6_ours(). If there
are any options, store the chain offset and next protocol in a mbuf
tag. When dequeuing without tag, it is a regular IPv6 header. As
mbuf tags degrade performance, use them only if a hop-by-hop header
is present. Such packets are rare and pf drops them by default.
OK mvs@