OpenBSD cvs log

created 2023-05-01T08:46:02Z
begin 2023-04-28T00:00:00Z
end 2023-04-29T00:00:00Z
path src/sys
commits 17

date 2023-04-28T01:24:14Z
author kevlo
files src/sys/dev/ic/r92creg.h log diff annotate
src/sys/dev/ic/rtwn.c log diff annotate
src/sys/dev/ic/rtwnvar.h log diff annotate
src/sys/dev/microcode/urtwn/Makefile log diff annotate
src/sys/dev/microcode/urtwn/build.c log diff annotate
src/sys/dev/microcode/urtwn/microcode.h log diff annotate
src/sys/dev/usb/if_urtwn.c log diff annotate
src/sys/dev/usb/usbdevs log diff annotate
message Add support for RTL8188FTV chip to urtwn(4).

Tested with Comfast CF-WU710N v4.

"go ahead" deraadt@
OK stsp@

date 2023-04-28T01:24:51Z
author kevlo
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2023-04-28T05:13:37Z
author phessler
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
src/sys/dev/fdt/qcrng.c log diff annotate
message Add a driver for the Qualcomm rng device found on the Thinkpad X13s, based on
kettenis's amlrng driver.

suggestions and OK patrick@

date 2023-04-28T08:45:26Z
author krw
files src/sys/arch/octeon/stand/boot/Makefile log diff annotate
src/sys/arch/powerpc64/stand/boot/Makefile log diff annotate
message Retire -E's "expert" mode. Introduced 23 years ago to avoid
confusing users with FFS attributes that only experts should
fiddle with. Actual use has withered away with functionality
rendered moot or moved elsewhere.

'-e' remains for the truly obscure corner cases.

Simply excise the code for now to see if hidden users/uses are
exposed. Further simplifications are possible if no such
users/uses surface.

ok with sthen@ millert@ kn@ otto@

date 2023-04-28T10:18:57Z
author bluhm
files src/sys/dev/pci/if_igc.c log diff annotate
src/sys/dev/pci/if_ix.c log diff annotate
message Remove error handling around mallocarray(9). I cannot fail when
called with M_WAITOK.
OK kevlo@

date 2023-04-28T10:18:58Z
author bluhm
files src/sys/dev/pci/if_oce.c log diff annotate
message Remove error handling around mallocarray(9). I cannot fail when
called with M_WAITOK.
OK kevlo@

date 2023-04-28T10:19:07Z
author patrick
files src/sys/dev/fdt/qcscm.c log diff annotate
message Fix memory constraints in the inline-assembly stub that calls into secure
mode. Without this change the compiler doesn't realize that the memory
behind the array that contains the return values might have changed and
optimizes the access away. With this change it properly access the array
to retrieve the returned values.

ok drahn@

date 2023-04-28T10:19:35Z
author kn
files src/sys/net/pf_ioctl.c log diff annotate
message Remove net lock from DIOCGETQUEUES

Both ticket and number of queues stem from the pf_queues_active list which
is effectively static to pf_ioctl.c and fully protected by the pf lock.

OK sashan

date 2023-04-28T12:53:42Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
message Add a membar_consumer() for the taskq_create() in sosplice(). Membar
producer and consumer must come in pair and the latter was missing.
Also move the code a bit to make clear which check is needed for
what.
OK mvs@

date 2023-04-28T14:08:34Z
author phessler
files src/sys/net/pf.c log diff annotate
message Relax the "pass all" rule so all forms of neighbor advertisements are allowed
in either direction.

This more closely matches the IPv4 ARP behaviour.

From sashan@
discussed with kn@ deraadt@

date 2023-04-28T14:08:38Z
author sashan
files src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pf_ruleset.c log diff annotate
src/sys/net/pfvar.h log diff annotate
src/sys/net/pfvar_priv.h log diff annotate
message This change speeds up DIOCGETRULE ioctl(2) which pfctl(8) uses to
retrieve rules from kernel. The current implementation requires
like O((n^2)/2) operation to read the complete rule set, because
each DIOCGETRULE operation must iterate over previous n
rules to find (n + 1)-th rule to read.

To address the issue diff introduces a pf_trans structure to keep
pointer to next rule to read, thus reading process does not need
to iterate from beginning of rule set to reach the next rule.
All transactions opened by process get closed either when process
is done (reads all rules) or when /dev/pf device is closed.

the diff also comes with lots of improvements from dlg@ and kn@

OK dlg@, kn@

date 2023-04-28T14:09:06Z
author phessler
files src/sys/netinet6/nd6_nbr.c log diff annotate
message Inbound portion of RFC9131. Routers can create new neighbor cache entries
when receiving a valid Neighbor Advertisement.

OK florian@ kn@

date 2023-04-28T15:50:05Z
author sashan
files src/sys/net/if_pfsync.c log diff annotate
message remove superfluous/invalid KASSERT() in pfsync_q_del().

pointed and OK bluhm@

date 2023-04-28T18:27:55Z
author cheloha
files src/sys/arch/sparc64/conf/GENERIC log diff annotate
src/sys/arch/sparc64/conf/RAMDISK log diff annotate
src/sys/arch/sparc64/conf/RAMDISKU1 log diff annotate
src/sys/arch/sparc64/conf/RAMDISKU5 log diff annotate
src/sys/arch/sparc64/sparc64/autoconf.c log diff annotate
src/sys/arch/sparc64/sparc64/clock.c log diff annotate
src/sys/arch/sparc64/sparc64/locore.s log diff annotate
src/sys/arch/sparc64/sparc64/Attic/timerreg.h log diff annotate
message timer(4/sparc64): remove driver

The timer(4/sparc64) driver was effectively disabled during the
previous release. Nobody has come forward asking for it to be adapted
to work with the new clockintr framework, so it's time to remove the
driver from the tree.

As of today, if you want to run OpenBSD on SPARC v9 hardware, that
hardware needs to sport either %tick and %tick_compare (%asr23), or
%stick (%asr24) and %stick_compare (%asr25).

All Sun/Oracle SPARC v9 hardware meets these conditions, from the
UltraSPARC I onward.

Most HAL/Fujitsu SPARC v9 hardware meets these conditions, from the
SPARC64 III onward. The only HAL/Fujitsu hardware that might not have
%tick_compare are the HAL SPARC64 I and SPARC64 II, for which I can
find no documentation. However, those processors are currently
unsupported by OpenBSD for other reasons, so their support status is
unchanged by the removal of this driver.

With help from miod@.

Link: https://marc.info/?l=openbsd-tech&m=167898759928206&w=2

"after unlock" deraadt@, ok mlarkin@ miod@

date 2023-04-28T18:33:22Z
author robert
files src/sys/arch/amd64/include/vmparam.h log diff annotate
src/sys/arch/arm64/include/vmparam.h log diff annotate
message bump MAXDSIZ to 128G on amd64 and 64G on arm64
discussed with kettenis@, ok deraadt@

date 2023-04-28T20:03:13Z
author mvs
files src/sys/dev/dt/dt_prov_static.c log diff annotate
message Add rtentry refcnt type to dt(4).

ok bluhm@

date 2023-04-28T20:03:14Z
author mvs
files src/sys/net/route.c log diff annotate
src/sys/sys/refcnt.h log diff annotate
message Add rtentry refcnt type to dt(4).

ok bluhm@