OpenBSD cvs log

created 2018-11-29T13:58:00Z
begin 2018-04-18T00:00:00Z
end 2018-04-19T00:00:00Z
path src/sys
commits 12

date 2018-04-18T06:50:35Z
author pd
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
message vmm: Fix interrupt window exiting for AMD / SVM

* define V_IGN_TPR (ignore virtual TPR)
* set V_IGN_TPR while configuring window exiting (was missed in one
location along with setting of the intr vector)

This should fix unresponsive network / console issues with guests on SVM.

date 2018-04-18T09:56:57Z
author mpi
files src/sys/kern/uipc_usrreq.c log diff annotate
message Call FREF(9) earlier instead of incrementing `f_count' by hand.

ok millert@, visa@

date 2018-04-18T09:59:09Z
author mpi
files src/sys/kern/kern_descrip.c log diff annotate
message Do a FREF()/FRELE() dance after fd_getfile() in sys_fcntl().

ok visa@

date 2018-04-18T10:24:32Z
author mpi
files src/sys/dev/wscons/wskbd.c log diff annotate
message Try to get the layout from the default mux when attaching a console
keyboard late.

This makes keyboard re-attaching due to the machdep.forceukbd sysctl(2)
respect /etc/kbdtype.

Issue reported by Artturi Alm, jmc@ and landry@.

ok kettenis@

date 2018-04-18T11:40:30Z
author patrick
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message Introduce a pmap lock on pmap_fault_fixup(). Heavily threaded
applications will crash without this lock as other threads attempt
to walk the tree while another thread is adding/removing mappings.

Committing on behalf of drahn@
ok kettenis@

date 2018-04-18T11:41:16Z
author patrick
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message Stop modifying vm page flags using mixed atomic and non-atomic
operations. This resolves one of the failures frequently seen
on QEMU where spawning processes while another process is working
can lead to crashes.

Committing on behalf of drahn@
ok kettenis@ jsg@

date 2018-04-18T12:05:31Z
author jsg
files src/sys/dev/pci/drm/drm_linux.h log diff annotate
message handle failure better in release_firmware()/request_firmware()

Alloc the containing struct with M_ZERO so if loadfirmware() fails and
doesn't set the pointer we won't try to free an address based on
uninitialised memory.

Use M_DEVBUF not M_DRM when freeing the buffer allocated by
loadfirmware().

date 2018-04-18T13:24:07Z
author bluhm
files src/sys/net/if_gif.c log diff annotate
message If m_pullup() changes the mbuf in gif_input(), also adjust the mbuf
pointer in the IP protocol loop. Reset the loop's mbuf when the
mbuf is freed. The latter is not necessary, but clearing a pointer
to freed data is safer.
OK dlg@

date 2018-04-18T16:05:20Z
author deraadt
files src/sys/sys/signal.h log diff annotate
message Some programs create a PROT_NONE guard page at the far-end of the provided
stack buffer. With a page-aligned buffer, creating a MAP_STACK sub-region
would undo the PROT_NONE guard. Ignore that last page.
(We could check if the last page is non-RW before choosing to skip it. But
we've already elected to grow STK sizes to compensate. Always ignoring the
last page makes it a non-MAP_STACK guard page which can be opportunistically
discovered)
ok semarie stefan kettenis

date 2018-04-18T16:05:21Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message Some programs create a PROT_NONE guard page at the far-end of the provided
stack buffer. With a page-aligned buffer, creating a MAP_STACK sub-region
would undo the PROT_NONE guard. Ignore that last page.
(We could check if the last page is non-RW before choosing to skip it. But
we've already elected to grow STK sizes to compensate. Always ignoring the
last page makes it a non-MAP_STACK guard page which can be opportunistically
discovered)
ok semarie stefan kettenis

date 2018-04-18T16:34:42Z
author deraadt
files src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
message re-enable ucode loading. The problem is the standard memory allocator
cannot handle the larger firmwares, so we must place them somewhere
else where the kernel can read them. Let's use 1MB. And pay attention
if someone gets burned by this decision. Other solutions get a lot
more hairy
ok mlarkin jsing

date 2018-04-18T16:34:58Z
author deraadt
files src/sys/arch/amd64/stand/boot/conf.c log diff annotate
src/sys/arch/amd64/stand/cdboot/conf.c log diff annotate
src/sys/arch/amd64/stand/efiboot/conf.c log diff annotate
src/sys/arch/amd64/stand/pxeboot/conf.c log diff annotate
message crank version