OpenBSD cvs log

created 2019-04-18T10:03:28Z
begin 2019-04-02T00:00:00Z
end 2019-04-03T00:00:00Z
path src/sys
commits 14

date 2019-04-02T03:35:08Z
author mortimer
files src/sys/arch/amd64/amd64/copy.S log diff annotate
src/sys/arch/amd64/amd64/locore.S log diff annotate
src/sys/arch/amd64/include/asm.h log diff annotate
message Add variable length trap padding between the retguard epilogue and the
following return.

This change adds a constraint that the name passed to the RETGUARD_* macros
must correspond to the name in the corresponding ENTRY which starts the
function (or a function which appears beforehand in the same file). Since
we use the distance from the ENTRY definition to calculate how much padding
to insert, the ENTRY symbol must be in scope at assembly time. This is
almost always the case already, since it is the natural way to name the
retguard symbols so they remain unique.

ok deraadt@

date 2019-04-02T05:03:00Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): Inject #UD on read of MSR_LS_CFG on AMD SVM

The LS_CFG MSR is used as a different way to determine if SSBD controls
are present. Since we don't implement this, inject a #UD on read of this
MSR, which Linux interprets as "not having SSBD controls".

ok deraadt

date 2019-04-02T05:06:39Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): Fix some broken event injection code for SVM

Rework some event injection code which was using an incorrect v_eventinj
field format.

ok deraadt

date 2019-04-02T07:08:39Z
author stsp
files src/sys/dev/acpi/sdhc_acpi.c log diff annotate
message Don't detach non-removable devices during resume on "sdhc* at acpi?".
Makes hibernate work with rootfs on built-in emmc storage.
Tested on King Jim Portabook.
ok deraadt@ kettenis@

date 2019-04-02T07:08:40Z
author stsp
files src/sys/dev/sdmmc/sdhc.c log diff annotate
src/sys/dev/sdmmc/sdhcvar.h log diff annotate
src/sys/dev/sdmmc/sdmmc.c log diff annotate
src/sys/dev/sdmmc/sdmmcvar.h log diff annotate
message Don't detach non-removable devices during resume on "sdhc* at acpi?".
Makes hibernate work with rootfs on built-in emmc storage.
Tested on King Jim Portabook.
ok deraadt@ kettenis@

date 2019-04-02T08:30:38Z
author deraadt
files src/sys/conf/newvers.sh log diff annotate
message Move to 6.5 release rathe than -beta. That means "pkg_add -u -Dsnap"
becomes the norm until release is out.

date 2019-04-02T10:46:02Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
src/sys/net/if_mpip.c log diff annotate
src/sys/net/if_mpw.c log diff annotate
message some mbuf ph_rtableid fixes

consistently set the rtabled for "outgoing" packets to the encap
rdomain. use this for rtallocs in mpip too instead of assuming 0.

date 2019-04-02T10:50:16Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
src/sys/net/if_mpip.c log diff annotate
src/sys/net/if_mpw.c log diff annotate
message clear the BCAST and MCAST mbuf flags for "outgoing" packets.

if these remain set then output on the underlying interface may
mistakenly be done with the wrong protocol type (eg, MPLS_MCAST
instead of MPLS), and to the wrong link layer address.

reported by Lee Nelson
the specific problem was identified by Mitchell Krome

date 2019-04-02T10:50:20Z
author yasuoka
files src/sys/ddb/db_input.c log diff annotate
message Fix ddb not to write its history to out of the region. When the
inputted line just ends at sizeof(db_history), ddb started writing the
histories to out of the region. diff from IIJ.

ok deraadt anton

date 2019-04-02T10:52:33Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message call pf_pkt_addr_changed on input

makes this consistent with other tunnel drivers, but mostly to avoid
having state info leak between layers of encapsulation.

date 2019-04-02T11:00:22Z
author deraadt
files src/sys/kern/kern_xxx.c log diff annotate
message retguard has now replaced the stack protector on clang architectures,
the kernel does not need a __stack_smash_handler function.
WARNING: You need a fairly new clang, approximately > March 31.
with mortimer

date 2019-04-02T11:02:01Z
author deraadt
files src/sys/uvm/uvm_mmap.c log diff annotate
message BOGO_PC is an invalid userland address, which indicates kbind() is now
disabled in the process. Rather than tying it to KERNBASE, make it simply
-1, which means it even more invalid..
ok tedu

date 2019-04-02T13:07:28Z
author visa
files src/sys/kern/vfs_init.c log diff annotate
src/sys/kern/vfs_subr.c log diff annotate
src/sys/sys/mount.h log diff annotate
src/sys/uvm/uvm_swap.c log diff annotate
message Restrict which filesystems are available for swap. This rules out
obvious misconfigurations that cannot work.

OK mpi@ tedu@

date 2019-04-02T20:24:32Z
author thfr
files src/sys/dev/pci/azalia.c log diff annotate
message disable MSI for AMD Summit Ridge/Raven Ridge HD Audio as workaround for audio stopping after varying amounts of time. ok brynet@, deraadt@