OpenBSD cvs log

created 2019-02-07T02:38:34Z
begin 2018-10-25T00:00:00Z
end 2018-11-01T00:00:00Z
path src/sys
commits 35

date 2018-10-25T01:05:19Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message start both the sc_ka_send and sc_ka_hold timeout when
the timeout gets configured instead of gre_up().
this avoids complex gre_ioctl() ordering rules and
enables the sc_ka_hold timeout before the first packet
is received.

from markus@

date 2018-10-25T15:38:37Z
author visa
files src/sys/kern/uipc_syscalls.c log diff annotate
message Fix a resource leak in doaccept().

If a connection that is being accepted gets aborted early, or if the
user-supplied buffer is invalid, doaccept() leaks a socket. This is
a regression caused by r1.153 of uipc_syscalls.c.

Correct the issue by associating the socket with the file early enough.
In case soaccept() or copyaddrout() fails, the socket will be freed
as a result of the file closing. This logic was used by the pre-r1.153
code.

closef() may block, so it is hoisted outside the fdp lock.

OK bluhm@ mpi@

date 2018-10-25T20:29:38Z
author kettenis
files src/sys/dev/pci/drm/i915/i915_dma.c log diff annotate
message New mesa uses the I915_MMAP_WC flag which we advertise but don't actually
implement. Knock out the I915_PARAM_MMAP_VERSION parameter that advertises
this flag until we actually implement it.

Fixes GPU hangs on GM45 chipset graphics.

ok deraadt@

date 2018-10-26T01:55:34Z
author kevlo
files src/sys/dev/pci/pcidevs log diff annotate
message Fix entry for Realtek RTL8723BE, from Stuart Shillington.

date 2018-10-26T01:56:50Z
author kevlo
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message sync

date 2018-10-26T05:53:58Z
author mlarkin
files src/sys/dev/pci/pcidevs log diff annotate
message Add VirtualBox NVMe

From Andrew Daugherity

date 2018-10-26T05:55:01Z
author mlarkin
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2018-10-26T13:49:15Z
author naddy
files src/sys/arch/i386/conf/Makefile.i386 log diff annotate
message Correct linker emulation name for lld when building i386 kernels on amd64.
ok kettenis@

date 2018-10-26T14:55:27Z
author mpi
files src/sys/net/bridgectl.c log diff annotate
message Make it clear that `if_bridgeport' is dereferenced in the ioctl path
by making all handlers consistent.

ok bluhm@, visa@

date 2018-10-26T15:00:54Z
author naddy
files src/sys/arch/i386/conf/ld.script log diff annotate
message With lld the calculation of the entry point was wrong since
LOADADDR(.text) is only available after the description of the text
section. Instead simply use ENTRY(start) like we do on amd64. The
bootloader strips the high bits from the entry point address already,
so using the virtual address as the entry point address works.

with/ok kettenis@

date 2018-10-26T20:26:19Z
author kettenis
files src/sys/arch/amd64/conf/GENERIC log diff annotate
src/sys/arch/amd64/conf/files.amd64 log diff annotate
src/sys/arch/amd64/pci/acpipci.c log diff annotate
src/sys/dev/acpi/acpi.c log diff annotate
message Add acpipci(4) on amd64. For now this only calls the PCI-specific _OSC
method to let the ACPI implementation know what features we support.

date 2018-10-26T20:28:40Z
author kettenis
files src/sys/arch/armv7/armv7/armv7_machdep.c log diff annotate
message Use EFI memory map to determine what memory regions are availble just like
we already do on arm64. Prevents using the framebuffer on the cubox-i as
regular memory for example.

date 2018-10-27T01:01:34Z
author miko
files src/sys/dev/pci/auich.c log diff annotate
message size for free(); ok ratchov@

date 2018-10-27T08:47:09Z
author anton
files src/sys/kern/vfs_lockf.c log diff annotate
src/sys/sys/lockf.h log diff annotate
message Rework previous lockf fix; bluhm@ noticed a regress failure during consecutive
runs. This is a second attempt in which the lockf structure is turned into a
doubly linked list which makes it easier to ensure correctness during list
insertion and deletion.

ok deraadt@ visa@

date 2018-10-27T08:51:13Z
author anton
files src/sys/kern/vfs_lockf.c log diff annotate
message Add assertions for lockf list manipulation, hidden behind LOCKF_DIAGNOSTIC.
While here, improve existing lockf debug routines and sprinkle some more logging
related to list manipulation.

ok deraadt@ visa@ (as part of a larger diff)

date 2018-10-27T08:53:35Z
author anton
files src/sys/sys/lockf.h log diff annotate
message Temporarily enable LOCKF_DIAGNOSTIC in order to catch potential bugs.

ok deraadt@ visa@ (as part of a larger diff)

date 2018-10-27T09:47:36Z
author phessler
files src/sys/net80211/ieee80211_node.c log diff annotate
message don't join to a network where we expect cleartext, and the AP is using crypto

OK stsp@

date 2018-10-27T09:55:26Z
author phessler
files src/sys/net80211/ieee80211_ioctl.c log diff annotate
src/sys/net80211/ieee80211_node.c log diff annotate
message clean up accounting of the AUTO_JOIN flag by making sure it is set or cleared
based on the state of the joinlist

OK stsp@

date 2018-10-27T10:02:47Z
author phessler
files src/sys/net80211/ieee80211_node.c log diff annotate
src/sys/net80211/ieee80211_var.h log diff annotate
message pass around the ess and ni structures we plan to use directly, instead
of rediscovering them (possibly badly).

OK stsp@

date 2018-10-28T22:42:33Z
author beck
files src/sys/kern/kern_unveil.c log diff annotate
src/sys/kern/subr_prf.c log diff annotate
src/sys/kern/vfs_lookup.c log diff annotate
src/sys/kern/vfs_syscalls.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Correctly deal with upper level unveil's by keeping track of the covering
unveil for each unveil in the process at unveil() time, and refactoring the
handling of current directory and ISDOTDOT to be much more sensible.
Worked out at ns2k18 with guenther@.
ok deraadt@

date 2018-10-29T00:11:37Z
author deraadt
files src/sys/kern/kern_unveil.c log diff annotate
message needs sys/lock.h

date 2018-10-29T09:51:20Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
message use the tunnelttl in the ip6 encap too, not ip6_defhlim.

date 2018-10-29T12:12:27Z
author claudio
files src/sys/kern/uipc_socket2.c log diff annotate
message Now that most archs have better NMBCLUSTERS defaults it is possible to bring
back rev 1.90.
----
mbufs and mbuf clusters are now backed by large pools. Because of this
we can relax the oversubscribe limit of socketbuffers a fair bit.
Instead of maxing out as sb_max * 1.125 or 2 * sb_hiwat the maximum is
increased to 8 * sb_hiwat -- which seems to be a good compromise between
memory waste and better socket buffer usage.
OK deraadt@
----
ok benno@

date 2018-10-29T14:29:44Z
author deraadt
files src/sys/kern/subr_prf.c log diff annotate
message irrelevant part snuck into previous commit; from semarie

date 2018-10-29T17:10:40Z
author guenther
files src/sys/sys/cdefs.h log diff annotate
message Support _ISOC11_SOURCE for forcing C11 feature visibility. Change the
default when no feature test defines are given to be C11 instead of C99
headers.

ok kettenis@ millert@
naddy@ doesn't think ports needs any pretesting for this

date 2018-10-30T03:27:45Z
author deraadt
files src/sys/kern/kern_exec.c log diff annotate
message If we execute a #!shell binary, the shell is an integral part of the
binary so it should bypass unveil restrictions. This is similar
(but different...) to how the ELF linker (ld.so) is loaded (after
unveils get dropped). Discovered in doas, due to more accurate unveil
semantics.
ok guenther tedu beck

date 2018-10-30T11:08:30Z
author kettenis
files src/sys/arch/amd64/conf/Makefile.amd64 log diff annotate
src/sys/arch/i386/conf/Makefile.i386 log diff annotate
message The way we currently generate gap.o using a linker script results in .rodata
and .data segments that have the X (executable) flag set when using lld.
This doesn't result in those sections being mapped executable in the bsd
kernel, but it does result in the X flag being set on those sections in
the final kernel binary, which confuses some scanning tools for (ROP)
gadgets.

Fix this by tweaking the generated gapdummy.c file that is used for
building gap.o. It now defines the .rodata section using inline asm.
This also fixes .data as it will inherit its flags from .rodata.

ok deraadt@, mortimer@

date 2018-10-30T11:10:03Z
author kettenis
files src/sys/arch/arm64/conf/Makefile.arm64 log diff annotate
src/sys/arch/armv7/conf/Makefile.armv7 log diff annotate
message The way we currently generate gap.o using a linker script results in .rodata
and .data segments that have the X (executable) flag set when using lld.
This doesn't result in those sections being mapped executable in the bsd
kernel, but it does result in the X flag being set on those sections in
the final kernel binary, which confuses some scanning tools for (ROP)
gadgets.

Fix this by tweaking the generated gapdummy.c file that is used for
building gap.o. It now defines the .rodata section using inline asm.
This also fixes .data as it will inherit its flags from .rodata.

ok deraadt@, mortimer@

date 2018-10-30T19:53:51Z
author kettenis
files src/sys/dev/pci/drm/drm_mipi_dsi.h log diff annotate
message Replace with minimal version written from scratch that just defines the data
structures and function prototypes that we need. The original file doesn't
even a suitable license even though the associated drm_mipi_dsi.c file is
MIT-licensed. Probably a mistake upstream, but better safe than sorry.

ok deraadt@

date 2018-10-31T02:25:26Z
author miko
files src/sys/dev/audio.c log diff annotate
message sc argument of start_output, start_input, trigger_output and trigger_input
is void* so no need to cast; ok ratchov@

date 2018-10-31T08:50:25Z
author kettenis
files src/sys/dev/pci/drm/drm_linux.h log diff annotate
src/sys/dev/pci/drm/i915/i915_dma.c log diff annotate
src/sys/dev/pci/drm/i915/i915_gem.c log diff annotate
src/sys/uvm/uvm.h log diff annotate
src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_fault.c log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_pmap.h log diff annotate
message Add support to uvm to establish write-combining mappings. Use this in the
inteldrm driver to add support for the I915_MMAP_WC flag.

ok deraadt@, jsg@

date 2018-10-31T09:50:24Z
author miko
files src/sys/dev/usb/umidi.c log diff annotate
message zap return keyword to clarify umidi_flush() returns no value; ok ratchov@

date 2018-10-31T10:15:47Z
author kettenis
files src/sys/arch/loongson/conf/Makefile.loongson log diff annotate
src/sys/arch/octeon/conf/Makefile.octeon log diff annotate
src/sys/arch/sgi/conf/Makefile.sgi log diff annotate
message Bring over gapdummy.c changes from amd64/amr64/armv7/i386.

ok deraadt@, mortimer@, visa@

date 2018-10-31T10:35:27Z
author jsg
files src/sys/dev/pci/drm/drm_trace.h log diff annotate
src/sys/dev/pci/drm/i915/i915_gem_execbuffer.c log diff annotate
src/sys/dev/pci/drm/i915/i915_trace.h log diff annotate
message add simple implementation of intel trace files which just define away
functions

ok kettenis@

date 2018-10-31T14:18:09Z
author patrick
files src/sys/dev/usb/if_ure.c log diff annotate
src/sys/dev/usb/if_urereg.h log diff annotate
message Increase max frame size and hard MTU so that we can use VLANs and
Jumbo frames on ure(4).

ok kevlo@