OpenBSD cvs log

created 2021-02-14T12:29:03Z
begin 2021-02-11T00:00:00Z
end 2021-02-12T00:00:00Z
path src/sys
commits 20

date 2021-02-11T06:53:44Z
author anton
files src/sys/dev/usb/uhidev.c log diff annotate
message If uhidev_set_report_dev() already have been invoked for the given
report id, there's no point in trying to find a matching sub device.

ok mglocker@

date 2021-02-11T06:55:10Z
author anton
files src/sys/dev/usb/uhidev.c log diff annotate
src/sys/dev/usb/uhidev.h log diff annotate
message Add uhidev_unset_report_dev(), doing the opposite of
uhidev_set_report_dev(). Needed by some upcoming changes to uhidpp.

ok mglocker@

date 2021-02-11T06:56:49Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Stop uhidpp from claiming all report ids, instead only claim the
necessary ones. Solves a regression introduced with the arrival of
uhidpp causing some Logitech HID devices from attaching to its
appropriate driver.

Thanks to <naszy at poczta dot fm> and Peter Kane <pwkane at gmail dot com>
for reporting and trying out diffs.

ok mglocker@

date 2021-02-11T07:22:21Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Fold long line.

date 2021-02-11T07:23:48Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Remove unused software id macro.

date 2021-02-11T07:24:50Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Use idx suffix consistently.

date 2021-02-11T07:26:03Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Make room for handling of HID++ 1.0 devices. No functional change.

date 2021-02-11T10:41:19Z
author patrick
files src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
message Swap faddr/laddr and fport/lport arguments in call to stoeplitz_ipXport().
Technically the whole point of the stoeplitz API is that it's symmetric,
meaning that the order of addresses and ports doesn't matter and will produce
the same hash value.

Coverity CID 1501717
ok dlg@

date 2021-02-11T11:03:57Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Initialize the stack local device id variable correctly.

CID 1501705

date 2021-02-11T11:57:32Z
author mestre
files src/sys/dev/pv/vmt.c log diff annotate
message Initialize var since it's used in a condition a little bit afterwards.

CID 1501713

ok jmatthew@

date 2021-02-11T12:08:21Z
author claudio
files src/sys/kern/vfs_syscalls.c log diff annotate
message In the various open functions reduce the fdplock() to only span over the
function which need the lock (falloc, fdinsert, fdremove). In most cases
it is not correct to hold the lock while calling VFS functions or e.g.
closef since those aquire or release long lived VFS locks.
OK visa@ mvs@

date 2021-02-11T13:40:28Z
author otto
files src/sys/kern/kern_fork.c log diff annotate
message "proc: table is full" actually means thread table is full; ok mpi@ sthen@

date 2021-02-11T14:44:13Z
author visa
files src/sys/arch/loongson/conf/ld.script log diff annotate
src/sys/arch/loongson/loongson/locore.S log diff annotate
src/sys/arch/mips64/mips64/exception.S log diff annotate
src/sys/arch/mips64/mips64/exception_tfp.S log diff annotate
src/sys/arch/octeon/conf/ld.script log diff annotate
message Leave out gp initialization from kernel entry on mips64

On OpenBSD/mips64, the kernel is compiled with -mno-abicalls. This
disables gp-relative addressing and essentially makes gp a spare
register in the kernel. Hence it is unnecessary to initialize gp when
entering the kernel. The _gp symbol is not needed either.

Suggested by miod@

date 2021-02-11T14:44:14Z
author visa
files src/sys/arch/octeon/octeon/locore.S log diff annotate
src/sys/arch/sgi/conf/ld.script log diff annotate
src/sys/arch/sgi/sgi/ip30_nmi.S log diff annotate
src/sys/arch/sgi/sgi/locore.S log diff annotate
message Leave out gp initialization from kernel entry on mips64

On OpenBSD/mips64, the kernel is compiled with -mno-abicalls. This
disables gp-relative addressing and essentially makes gp a spare
register in the kernel. Hence it is unnecessary to initialize gp when
entering the kernel. The _gp symbol is not needed either.

Suggested by miod@

date 2021-02-11T16:22:06Z
author stsp
files src/sys/dev/pci/if_rge.c log diff annotate
message Add missing break in switch statement of rge_activate().

CID 1501716

ok kevlo@
and mestre@ had the same diff

date 2021-02-11T20:28:01Z
author mvs
files src/sys/net/if.c log diff annotate
message We link `ifp' to `if_list' before we perform if_attachsetup(). It is not
fully initialized because we initialize `if_groups' after linking. It's
not triggered because if_attach() and if_unit(9) are serialized by
kernel lock and `ifp' is often filled by nulls. Move `if_groups'
initialization to if_attach_common() to prevent this.

ok bluhm@ claudio@ deraadt@

date 2021-02-11T20:28:57Z
author mvs
files src/sys/kern/uipc_socket2.c log diff annotate
message sbdrop(): use NULL instead of 0 in pointer assignment

ok bluhm@

date 2021-02-11T23:53:42Z
author patrick
files src/sys/dev/fdt/exuart.c log diff annotate
message Don't hardcode com(4)'s major number in exuart(4).

ok kettenis@

date 2021-02-11T23:54:40Z
author patrick
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable exuart(4).

ok kettenis@

date 2021-02-11T23:55:48Z
author patrick
files src/sys/arch/arm64/arm64/machdep.c log diff annotate
message Call exuart(4) early attach on arm64.

ok kettenis@