OpenBSD cvs log

created 2020-08-30T08:46:37Z
begin 2020-08-27T00:00:00Z
end 2020-08-28T00:00:00Z
path src/sys
commits 8

date 2020-08-27T01:08:55Z
author jmatthew
files src/sys/dev/acpi/acpi.c log diff annotate
src/sys/dev/acpi/acpicpu.c log diff annotate
src/sys/dev/acpi/acpivar.h log diff annotate
message Reorder the acpi attach process so we look at Processor() CPU nodes
after Device() ones, since we should prefer the newer node type.
If we see any Device() nodes, don't attach acpicpu(4) to any Processor()
nodes if they're also present. This also makes acpitz(4) and
acpipwrres(4) devices attach slightly later.

ok kettenis@, also tested by jmc@

date 2020-08-27T06:42:12Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c log diff annotate
src/sys/dev/pci/drm/radeon/atom.c log diff annotate
message bring back local #undef DEBUG changes lost in drm 5.7 update

fixes errors building with option DEBUG reported by phessler@

date 2020-08-27T10:47:52Z
author yasuoka
files src/sys/net/if_pppx.c log diff annotate
src/sys/net/pipex.c log diff annotate
src/sys/net/pipex.h log diff annotate
src/sys/net/pipex_local.h log diff annotate
message Make pipex(4) more common for pppac(4) and pppx(4). Replace
pipex_iface of struct pipex_session with owner_sc which refers the
owner device. This makes ioctl commands for pppac or pppx device
simpler. PIPEX{S,G}MODE became dummy since both pppac and pppx is
always used with pipex. Also move some pppac specific things to the
pppac part on if_pppx.c.

suggestions from mvs, ok mvs

date 2020-08-27T16:54:23Z
author patrick
files src/sys/arch/amd64/stand/efiboot/conf.c log diff annotate
src/sys/arch/amd64/stand/efiboot/exec_i386.c log diff annotate
message Improve write un-protecting of kernel memory. For the Computrace module
on the HP EliteBook 830 G6 we added a workaround which tries to re-map
the pages where we want to place to kernel read-write. On some machines
though this workaround causes a regression. Fix those by changing a few
things: Only set the writeable bit if it isn't set yet. Un-protect
write-protected page directories. Skip lower levels if large-page is
set, since the next level is already a page. Don't do anything at all
if paging is disabled.

From Christian Ehrhardt
ok bluhm@ tobhe@

date 2020-08-27T17:33:07Z
author patrick
files src/sys/dev/usb/uhidev.c log diff annotate
message Clear endpoint stall on open(2) of /dev/uhidX to synchronize toggle bit
as needed on xhci(4) machines. On non-xhci(4) we save and restore the
toggle bit on close/open of a pipe. With xhci(4) this does not seem to
be possible, at least I haven't yet found it. This means that on those
machines with xhci(4), after a pipe close/open, the device will use the
previous state, while xhci(4)'s state is reset to default. By issuing
a clear endpoint stall we reset the device's toggle bit. Now every
time a /dev/uhid is (re-)opened the state should be synchronized.

Discussed with damien@, mpi@ and Pedro Marteletto
ok markus@

date 2020-08-27T19:34:37Z
author mglocker
files src/sys/dev/usb/usb_subr.c log diff annotate
message usbd_get_cdesc() returns usb_config_descriptor_t *. Therefore return
'NULL' instead of '0'.

ok deraadt@

date 2020-08-27T19:55:00Z
author mglocker
files src/sys/dev/usb/usb.c log diff annotate
message Fix a potential panic during free(9) which can be caused by an USB
device which returns a spurious value for wTotalLength on a configuration
descriptor request. Therefore don't relay on wTotalLength for free(9)
but on the length variable which was used for the malloc(9) before.

The issue was reported by
Mikolaj Kucharski <mikolaj (at) kucharski (dot) name> on bugs@.

Discussed and ok deraadt@

date 2020-08-27T21:27:17Z
author kn
files src/sys/net/if_wg.c log diff annotate
message Use p2p_rtrequest()

Although technically a point-to-multipoint interface, point-to-point
semantics apply/fit when installing local routes, e.g. configuring IPv6
addresses on it.

This is to fix SIOCGNBRINFO_IN6 and thus ndp(8).

Report and diff from Matt Dunwoodie <ncon at noconroy dot net>, thanks!
OK tobhe