CVS: cvs.openbsd.org: src

2018-01-17 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2018/01/17 08:52:34

Modified files:
sys/arch/sparc64/dev: vcctty.c vdsk.c vdsp.c vldcp.c vnet.c 

Log message:
In cbus(4) drivers, make it easier to identify which driver is doing
debug printfs about LDC link state changes. No functional change.

ok kettenis@



CVS: cvs.openbsd.org: src

2018-01-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/01/17 09:33:33

Modified files:
sys/arch/amd64/amd64: aes_intel.S 

Log message:
Found a .data variable that can be in .rodata
ok mibek



CVS: cvs.openbsd.org: src

2018-01-17 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2018/01/17 09:54:19

Modified files:
sys/dev/wscons : wsdisplay.c wskbd.c 

Log message:
Add sizes for free() in wscons(4).

OK deraadt@, visa@, mpi@



CVS: cvs.openbsd.org: src

2018-01-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/01/17 10:59:58

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2018-01-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/01/17 03:22:25

Modified files:
sys/arch/arm64/arm64: cpu.c pmap.c trap.c 
sys/arch/arm64/include: cpu.h 

Log message:
Defend agains branch predictor target injection (Spectre "variant 2")
attacks by flushing the branch predictor cache (BTB) on context switches
and page faults in kkernel address space.  Note that this relies on the
presence of firmware (such as Arm Trusted Firmware) that provides PSCI
services that flush the BTB on entry as described in Arm Trusted Firmware
Security Advisory TFV 6.

ok patrick@, visa@



CVS: cvs.openbsd.org: src

2018-01-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/01/17 03:17:33

Modified files:
sys/dev/fdt: files.fdt psci.c 
Added files:
sys/dev/fdt: pscivar.h 

Log message:
Implement support for the PSCI_VERSION call and export the function such that
we can use it to defend against branch target injection attacks.

ok patrick@, visa@



CVS: cvs.openbsd.org: src

2018-01-17 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2018/01/17 01:46:15

Modified files:
sys/lib/libsa  : printf.c 

Log message:
Implement basic padding support in libsa so we can do zero-padding
in bootloader printfs.

Feedback from and ok gerhard@



CVS: cvs.openbsd.org: src

2018-01-17 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/01/17 06:25:36

Modified files:
usr.sbin/pkg_add/OpenBSD: PackageRepository.pm 

Log message:
Process redirection messages from http.
This will help for round-robin sites in anchoring a pkg_add session to
a single site, thus removing shearing effects.
Initial idea from job@, reworked a lot by me,
enthusiastic okay sthen@



CVS: cvs.openbsd.org: src

2018-01-17 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2018/01/17 06:35:52

Modified files:
usr.sbin/pkg_add/OpenBSD: FwUpdate.pm 

Log message:
Remove erreneous and leftover slash that was part of the regex before
we switched to compiled regexes.  Fixes fw_update(1).

Noticed by deraadt@
ok sthen@



CVS: cvs.openbsd.org: src

2018-01-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/01/18 00:10:53

Modified files:
usr.bin/tmux   : hooks.c tmux.h 

Log message:
Remove unused hooks_run function, from Thomas Adam.