CVS: cvs.openbsd.org: src

2018-06-19 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/06/19 23:51:25

Modified files:
sys/dev/pci/drm/i915: intel_lvds.c 

Log message:
drm/i915: Disable LVDS on Radiant P845

>From Ondrej Zary
e88640adf6fe0709466f814a26753d78184a598c in linux 4.4.y/4.4.136
b3fb22733ae61050f8d10a1d6a8af176c5c5db1a in mainline linux



CVS: cvs.openbsd.org: src

2018-06-19 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/06/19 16:35:08

Modified files:
share/man/man9 : uvm.9 
sys/uvm: uvm_stat.c uvmexp.h 
usr.bin/systat : systat.1 uvm.c 
usr.bin/vmstat : vmstat.c 

Log message:
Rename some unused fields in struct uvmexp to
unusedNN.

Missing man page bits pointed out by
jmc@. Ports source scan by sthen@.

ok deraadt@ guenther@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/06/19 13:40:44

Modified files:
usr.sbin/slaacctl: slaacctl.8 

Log message:
add some missing punctuation, and remove some vertical whitespace;



CVS: cvs.openbsd.org: src

2018-06-19 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/06/19 13:29:52

Modified files:
sys/arch/amd64/amd64: cpu.c 
sys/arch/amd64/include: cpu.h 
sys/kern   : kern_sched.c kern_sysctl.c 
sys/sys: sched.h sysctl.h 

Log message:
SMT (Simultanious Multi Threading) implementations typically share
TLBs and L1 caches between threads.  This can make cache timing
attacks a lot easier and we strongly suspect that this will make
several spectre-class bugs exploitable.  Especially on Intel's SMT
implementation which is better known as Hypter-threading.  We really
should not run different security domains on different processor
threads of the same core.  Unfortunately changing our scheduler to
take this into account is far from trivial.  Since many modern
machines no longer provide the ability to disable Hyper-threading in
the BIOS setup, provide a way to disable the use of additional
processor threads in our scheduler.  And since we suspect there are
serious risks, we disable them by default.  This can be controlled
through a new hw.smt sysctl.  For now this only works on Intel CPUs
when running OpenBSD/amd64.  But we're planning to extend this feature
to CPUs from other vendors and other hardware architectures.

Note that SMT doesn't necessarily have a posive effect on performance;
it highly depends on the workload.  In all likelyhood it will actually
slow down most workloads if you have a CPU with more than two cores.

ok deraadt@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/06/19 13:06:47

Modified files:
share/man/man5 : bsd.port.mk.5 

Log message:
Update update-patches description, document EDIT_PATCHES

OK jca



CVS: cvs.openbsd.org: src

2018-06-19 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/06/19 12:15:01

Modified files:
usr.sbin/vmd   : config.c 

Log message:
print process name in debug message



CVS: cvs.openbsd.org: src

2018-06-19 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/06/19 11:13:50

Modified files:
usr.sbin/vmctl : vmctl.c 

Log message:
knf



CVS: cvs.openbsd.org: src

2018-06-19 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/06/19 11:12:34

Modified files:
usr.sbin/vmd   : config.c i8253.c i8259.c ns8250.c parse.y pci.c 
 task.c vioscsi.c virtio.c vm.c vmd.c 

Log message:
knf



CVS: cvs.openbsd.org: src

2018-06-19 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/06/19 09:39:01

Modified files:
lib/libc/sys   : ktrace.2 

Log message:
use a full stop, as per the other items; from nan xiao



CVS: cvs.openbsd.org: src

2018-06-19 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/06/19 08:27:08

Modified files:
usr.sbin/pkg_add/OpenBSD: Delete.pm PkgAdd.pm PkgDelete.pm 

Log message:
Pass the set thru to deletion operations (we may need to solve_tags!)



CVS: cvs.openbsd.org: src

2018-06-19 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/06/19 08:22:03

Modified files:
distrib/sets/lists/base: mi 
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2018-06-19 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/06/19 08:12:11

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

Log message:
fix solve_tags to deal with the actual list of tags (match tag to tag
definitions)



CVS: cvs.openbsd.org: src

2018-06-19 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/06/19 08:01:16

Modified files:
usr.bin: Makefile 

Log message:
Enable ldap(1) in the build.

OK deraadt@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/06/19 07:23:08

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

Log message:
sigh... define-tag still has to migrate early, so that it can be part of
DependOnly



CVS: cvs.openbsd.org: src

2018-06-19 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2018/06/19 07:01:34

Modified files:
lib/libfuse: fuse.c fuse_private.h 
sys/miscfs/fuse: fuse_vfsops.c fuse_vnops.c fusefs.h 
sys/sys: mount.h 

Log message:
Changes the default mount behaviour so only the user that mounts the
file system can access it unless the allow_other mount options is
specified. The allow_other mount option makes the file system
available to other users just like any other mounted file system.

ok mpi@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2018/06/19 06:36:18

Modified files:
bin/ed : re.c 

Log message:
Revert previous, there were some unintended beviour changes.



CVS: cvs.openbsd.org: src

2018-06-19 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2018/06/19 05:27:54

Modified files:
lib/libfuse: fuse.c 
sys/sys: fusebuf.h 
sys/miscfs/fuse: fusebuf.c 

Log message:
Send the calling thread id, effective uid and gid, and umask to the
FUSE file system. fuse_get_context(3) will now return the correct
values.

ok mpi@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/06/19 05:28:11

Modified files:
usr.bin/whois  : whois.c 

Log message:
Plug getaddrinfo(3) memory leak

choose_server() calls getaddrinfo(3) but never frees the result.
Minimal fix that relies on getaddrinfo(3) only updating the "res"
pointer if the call was successful.

While here, call freeaddrinfo(3) earlier in whois(), less code and less
overall memory used since whois() can recurse.

ok millert@ tb@ benno@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/06/19 04:43:21

Modified files:
share/man/man4 : mpii.4 

Log message:
describe more supported hardware



CVS: cvs.openbsd.org: src

2018-06-19 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/06/19 04:32:41

Modified files:
sys/dev/pci: mpiireg.h mpii.c 

Log message:
Add support for SAS3.5 controllers.  This involves reordering
initialisation so we get the controller capabilities first, allowing a
soft reset instead of hard reset.  The new controllers don't work after a
hard reset, and older generations seem fine either way.

tested by robert@ on a sas3408, by dlg@ on a sas2008 (on sparc64) and by me
on a sas3008.
ok dlg@ robert@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/06/19 04:19:04

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

Log message:
getting closer to having actual tags working.
I now know under which form they need to be stored



CVS: cvs.openbsd.org: src

2018-06-19 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/06/19 04:08:45

Modified files:
share/snmp : OPENBSD-PF-MIB.txt 

Log message:
Correct pfCntProtoCksum description.

>From joel@



CVS: cvs.openbsd.org: src

2018-06-19 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/06/19 03:58:36

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

Log message:
tidy. no actual behavior change