CVS: cvs.openbsd.org: src

2019-04-20 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2019/04/20 22:21:44

Modified files:
lib: check_sym 

Log message:
Improve comment grammar



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 22:11:42

Modified files:
libexec/ld.so  : resolve.c resolve.h 

Log message:
Now that all Elf_foo types are correct, we don't need to use Elf32_Word
anywhere and can use Elf_Word instead.
ok guenther



CVS: cvs.openbsd.org: src

2019-04-20 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2019/04/20 21:41:14

Modified files:
libexec/ld.so  : resolve.c resolve.h 

Log message:
On alpha, the buckets of DT_HASH are 8 bytes instead of 4 bytes.  This was
previously 'implemented' by having the Elf_Word typedef in 
vary, but that doesn't match the spec and breaks libelf so it's gone away.
Implement the variation here by defining our own type locally for this.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 19:08:46

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

Log message:
pledge "stdio" after opening file and before doing operations
from Rafael Neves



CVS: cvs.openbsd.org: src

2019-04-20 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/04/20 17:44:36

Modified files:
sys/arch/amd64/amd64: vmm.c 

Log message:
Revert enabling VMM_DEBUG which slipped through the previous commit.

Fixes panic on `vmctl start foo'.

OK tedu deraadt



CVS: cvs.openbsd.org: src

2019-04-20 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/04/20 17:22:28

Modified files:
lib/libevent   : min_heap.h 

Log message:
knf, ok bluhm



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 17:11:20

Modified files:
sys/kern   : exec_elf.c 

Log message:
#defineELFROUNDSIZE4   /* XXX Should it be sizeof(Elf_Word)? */
Now that alpha is fixed, we can use sizeof().



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 17:10:00

Modified files:
sys/sys: exec_elf.h 

Log message:
The conversion of rdsetroot to -lelf failed on alpha: -lelf thought ELF SHDR
was 80 bytes in size, rather than 64 as listed in the ELF header.  In Sep 2001
when ELF was being integrated into the tree, two of the ELF object types (and 
two
more via #define) were given different (incorrect) sizes, and hid behind an
#ifdef __alpha__ all this time.  -lelf constructs the SHDR object by 
accumulating
sizes of types, so this was finally exposed.
A review of the tree shows no other consequences, so we can fix this now.



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 17:00:07

Modified files:
sys/arch/amd64/stand/libsa: exec_i386.c 

Log message:
When copying the EFI-stored kernel to the correct operating location,
use memmove.  We don't know whether EFI allocated overlapping memory.



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 16:59:04

Modified files:
sys/arch/amd64/stand/boot: Makefile 
sys/arch/amd64/stand/cdboot: Makefile 
sys/arch/amd64/stand/efiboot: Makefile.common 
sys/arch/amd64/stand/pxeboot: Makefile 
sys/arch/hppa/stand/boot: Makefile 
sys/arch/i386/stand/boot: Makefile 
sys/arch/i386/stand/cdboot: Makefile 
sys/arch/i386/stand/pxeboot: Makefile 
sys/arch/loongson/stand/libsa: Makefile 
sys/arch/luna88k/stand/boot: Makefile 
sys/arch/macppc/stand/boot.mac: Makefile 
sys/arch/macppc/stand/ofwboot: Makefile 
sys/arch/octeon/stand/libsa: Makefile 
sys/arch/sgi/stand/boot: Makefile 
sys/arch/sgi/stand/libsa: Makefile 
sys/arch/sparc64/stand/libsa: Makefile 
sys/lib/libsa  : Makefile memcpy.c stand.h 
Added files:
sys/lib/libsa  : memmove.c 

Log message:
libsa's memcpy() is actually memmove().  make a proper memmove(), and give
memcpy() correct behaviour.  This also brings the bcopy() macro into line.



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 16:40:13

Modified files:
sys/dev/fdt: acrtc.c 

Log message:
armv7 RAMDISK is now compiled with -Oz (just to be like other ramdisks),
so clang's rule about "static inline" comes into play.
ok patrick



CVS: cvs.openbsd.org: www

2019-04-20 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2019/04/20 14:19:16

Modified files:
faq: upgrade65.html 

Log message:
Add samba to "Special packages", the samba AD DC support is broken in 6.5.



CVS: cvs.openbsd.org: www

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:www
Changes by: dera...@cvs.openbsd.org 2019/04/20 09:54:27

Modified files:
faq: current.html 

Log message:
I despise the word "support" particularly sentence fragments like "not
supported".  Instruct people more careful: experts are encouraged to
attempt building of -current since that is the road to becoming a
developer!  On the other hand, non-experts should not, explain why simply,
and describe the obvious solution in case of screwup.



CVS: cvs.openbsd.org: src

2019-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/04/20 09:47:23

Modified files:
sys/conf   : param.c 

Log message:
as discussed with beck, crank dma-range bufcache to a high number
(he suggested 90 but I prefer 80).  This is so we learn the downside
from user reports.



CVS: cvs.openbsd.org: src

2019-04-20 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2019/04/20 08:13:11

Modified files:
sys/kern   : vfs_lockf.c 

Log message:
print locked range in decimal in debug routines



CVS: cvs.openbsd.org: src

2019-04-20 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/04/20 05:36:19

Modified files:
usr.bin/netstat: inet6.c 

Log message:
The rip6 checksum errors are accounted per socket.  So the no socket
errors include these, do not subtract both from delivered.  Avoids
an underflow in the rip6 delivered counter.
OK deraadt@ claudio@



CVS: cvs.openbsd.org: src

2019-04-20 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/04/20 05:30:11

Modified files:
sys/netinet6   : raw_ip6.c 

Log message:
Statistics of "netstat -s -f inet6 -p rip6" did not work.  In
rip6_sysctl_rip6stat() copy out rip6counters, not ip6counters.
OK deraadt@ claudio@



CVS: cvs.openbsd.org: src

2019-04-20 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/04/20 05:22:47

Modified files:
gnu/llvm/lib/Target/Mips: MipsAsmPrinter.cpp 

Log message:
Restore previous section after setting the MIPS ABI marker. This keeps
the .text section in use after the file header, improving compatibility
with gcc. Without this change, module-level inline assembly blocks could
end up into wrong section.

OK kettenis@ guenther@



CVS: cvs.openbsd.org: src

2019-04-20 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2019/04/20 05:13:15

Modified files:
lib/libcrypto/asn1: x_long.c 

Log message:
Avoid undefined behaviour that results from negating a signed long with
minimum value.

Fixes oss-fuzz #14354.

ok beck@ bcook@ tb@



CVS: cvs.openbsd.org: src

2019-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/04/20 02:44:08

Modified files:
sys/dev/pci/drm/ttm: ttm_bo.c ttm_memory.c 

Log message:
drm/ttm: Fix bo_global and mem_global kfree error

>From Trigger Huang
b10cc08374728ea79555a1cd98f962b0f942e942 in linux 4.19.y/4.19.36
30f33126feca0fe16df9e9302ffc28a953e2eb37 in mainline linux



CVS: cvs.openbsd.org: src

2019-04-20 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2019/04/20 02:28:59

Modified files:
sys/kern   : vfs_lockf.c 
sys/sys: lockf.h 

Log message:
Move lockf structures from header to implementation since external users
only need a lockf_state pointer by now.

ok mpi@ visa@