OpenBSD cvs log

created 2020-04-04T17:43:33Z
begin 2020-04-02T00:00:00Z
end 2020-04-03T00:00:00Z
path src/sys
commits 11

date 2020-04-02T01:01:13Z
author jca
files src/sys/arch/sparc64/conf/files.sparc64 log diff annotate
src/sys/lib/libkern/lshrti3.c log diff annotate
message Add __lshrti3 to libkern and use it on sparc64

With this it's possible to build the kernel using clang.
Discussed with claudio@, ok deraadt@

date 2020-04-02T06:06:22Z
author otto
files src/sys/arch/sparc64/stand/bootblk/Makefile log diff annotate
src/sys/arch/sparc64/stand/bootblk/bootblk.fth log diff annotate
src/sys/arch/sparc64/stand/bootblk/genassym.sh log diff annotate
src/sys/arch/sparc64/stand/bootblk/genfth.cf log diff annotate
message Change bootblocks to be able to read from ffs1, ffs2 and softraid.
ffs2 part from eeh at netbsd. ok deraadt@

date 2020-04-02T06:07:05Z
author otto
files src/sys/arch/sparc64/conf/RAMDISKU1 log diff annotate
src/sys/arch/sparc64/conf/RAMDISKU5 log diff annotate
message Enable FFS2 option for both floppies

date 2020-04-02T07:00:25Z
author mpi
files src/sys/kern/kern_event.c log diff annotate
message Introduce kqueue_sleep() a wrapper around the tsleep(9) dance.

While here check for the validity of the timeout at the begining of the
syscall.

ok kettenis@, cheloha@

date 2020-04-02T12:25:21Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message Remove 'done' flag from struct iwm_tx_data. Check data->m == NULL instead.
No functional change.

date 2020-04-02T12:25:46Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxvar.h log diff annotate
message Remove 'done' flag from struct iwx_tx_data. Check data->m == NULL instead.
No functional change.

date 2020-04-02T12:34:27Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message iwm's LQ_CMD can work asynchronously from interrupt context.

There is no need to schedule a task to send this command and wait for
a response. Linux iwlwifi also sends this command async.

tested by myself and benno

date 2020-04-02T13:17:53Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwmvar.h log diff annotate
message Remove iwm(4) 11n mode CCK Tx rate fallback.

This fallback was added in r1.235 because we disabled firmware-based
Tx retries in that commit. Firmware-based Tx retries were re-enabled
in r1.291 so manual fallback to CCK rates is no longer required since
the firmware will do this for us if needed (at a cost of a single retry).

date 2020-04-02T17:36:32Z
author stsp
files src/sys/dev/usb/if_zyd.c log diff annotate
message Fix use-after-free zyd(4) upon Tx error and device detach.

If a transmit error occurs in zyd_tx() we must reset tx data's ni pointer
to NULL since the node reference will be released in zyd_start().
A stale node pointer could potentially be released again which would mess
up the node's reference count and potentially result in a use-after-free.

Upon detach, ic->ic_bss was freed in ieee80211_ifdetach(), and afterwards
ic->ic_bss->ni_refcnt was decremented in zyd_free_tx_list(). Change the
order of operations during detach to prevent this use-after-free.

Reported on bugs@ by Raf Czlonka

ok mpi@

date 2020-04-02T18:00:00Z
author deraadt
files src/sys/sys/syslimits.h log diff annotate
message double ARG_MAX

date 2020-04-02T19:27:51Z
author gkoehler
files src/sys/arch/macppc/macppc/ofw_machdep.h log diff annotate
src/sys/arch/macppc/macppc/ofwreal.S log diff annotate
src/sys/arch/macppc/macppc/opendev.c log diff annotate
src/sys/arch/macppc/macppc/openfirm.c log diff annotate
message Make the OpenFirmware functions work with clang.

ofw_stack() was changing its caller's stack frame, but this stops
working when clang inlines the caller into another function. Move the
stack-switching logic into openfirmware(). Now ofw_stack() becomes
ofw_msr() and only sets the msr.

ok deraadt@ kettenis@