CVS: cvs.openbsd.org: src

2019-06-24 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/06/24 16:26:25

Modified files:
sys/net: route.c 

Log message:
Since the recent recursion fix in rtable_walk(), deleting an interface
address could trigger the "rt->rt_ifidx == ifp->if_index" assertion.
In rtflushclone() the ifp that is passed to rtdeletemsg() has been
changed from the route interface to the ifa interface.  Restore the
old behavior and get the route ifp.
found by regress/sys/netinet/carp; OK mpi@



CVS: cvs.openbsd.org: src

2019-06-24 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/06/24 15:36:53

Modified files:
sys/net: if_sppp.h if_spppsubr.c 

Log message:
Use timeout_add_sec(9)

Re-challenge timeouts are made up of single scalar factors which are
multiplied with the time unit lcp.timeout to compute the timeout period.

Simply reduce that unit of 1 * hz [ticks] to 1 [s] and use the appropiate
API.

OK mpi



CVS: cvs.openbsd.org: src

2019-06-24 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/06/24 15:33:27

Modified files:
share/man/man4 : Makefile acpi.4 
sys/arch/amd64/conf: GENERIC RAMDISK_CD 
sys/dev/acpi   : files.acpi 
Added files:
share/man/man4 : glkgpio.4 
sys/dev/acpi   : glkgpio.c 

Log message:
Add glkgpio(4), a driver for the GPIO controllers found on Intel's Gemini
Lake SoC.  From James Hastings.



CVS: cvs.openbsd.org: src

2019-06-24 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/06/24 15:20:12

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

Log message:
add missing RETURN VALUES section;
also checked that POSIX requires exactly this behaviour



CVS: cvs.openbsd.org: src

2019-06-24 Thread Kurt Mosiejczuk
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/06/24 12:56:42

Modified files:
share/man/man1 : portgen.1 

Log message:
The PyPI module for portgen is very useful now, so we should mention it
in the portgen(1) man page.

ok afresh1@ phessler@



CVS: cvs.openbsd.org: www

2019-06-24 Thread Pamela Mosiejczuk
CVSROOT:/cvs
Module name:www
Changes by: pam...@cvs.openbsd.org  2019/06/24 11:42:01

Modified files:
faq/ports  : guide.html 

Log message:
Update porting guide to include new PERMIT_PACKAGE and PERMIT_DISTFILES
variables as they are currently used.
OK danj kn solene



CVS: cvs.openbsd.org: src

2019-06-24 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2019/06/24 09:17:36

Modified files:
regress/usr.bin/openssl: appstest.sh 

Log message:
Add more options test to ocsp in appstest.sh



CVS: cvs.openbsd.org: src

2019-06-24 Thread Gilles Chehade
CVSROOT:/cvs
Module name:src
Changes by: gil...@cvs.openbsd.org  2019/06/24 09:14:01

Modified files:
usr.sbin/smtpd : mta_session.c 

Log message:
rename wait queues



CVS: cvs.openbsd.org: src

2019-06-24 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/06/24 09:05:17

Modified files:
bin/ksh: ksh.1 

Log message:
Fix spelling



CVS: cvs.openbsd.org: src

2019-06-24 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2019/06/24 08:57:56

Modified files:
usr.bin/mg : buffer.c 

Log message:
switch-to-buffer (C-x b) doesn't cancel properly if C-g is pressed.
It doesn't show 'Quit'. By returning ABORT, it behaves as expected
when C-g is pressed (like all other functions that use the
minibuffer).



CVS: cvs.openbsd.org: src

2019-06-24 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/06/24 08:45:52

Modified files:
usr.bin/doas   : doas.conf.5 

Log message:
add an example hint that shows how original path can be retained



CVS: cvs.openbsd.org: src

2019-06-24 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/06/24 08:22:39

Modified files:
bin/ksh: ksh.1 

Log message:
Partial revert of rev. 1.151:
Reference the First Edition (1989) of Bolsky/Korn which is about ksh88,
the shell the OpenBSD ksh(1) descends from (via pdksh).
The Second Edition (1995) of the book is about ksh93 which we don't provide.
Pointed out by Andras Farkas on bugs@.



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 07:59:36

Modified files:
sys/arch/octeon/conf: Makefile.octeon 

Log message:
Add option to build octeon kernels using clang.



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 07:52:18

Modified files:
gnu/llvm/lib/Target/Mips: MipsTargetStreamer.h 
gnu/llvm/lib/Target/Mips/AsmParser: MipsAsmParser.cpp 
gnu/llvm/lib/Target/Mips/MCTargetDesc: MipsTargetStreamer.cpp 

Log message:
Implement .cplocal directive. Needed when building libcrypto.



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 07:47:33

Modified files:
gnu/llvm/lib/Target/Mips: Mips64InstrInfo.td MipsInstrInfo.td 
gnu/llvm/lib/Target/Mips/AsmParser: MipsAsmParser.cpp 

Log message:
Implement SGE pseudo-instructions. Needed when building libcrypto.



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 07:44:21

Modified files:
gnu/llvm/lib/Target/Mips/AsmParser: MipsAsmParser.cpp 

Log message:
Fix a bug in memory operand handling. If a load or store uses a symbol
as a memory operand, the assembler generates incorrect relocations in
PIC mode. As a simple fix, expand the instruction into an address load
sequence, which works, that is followed by the actual memory
instruction.

Note that the generated sequence is not always optimal. If the symbol
has a small offset, the offset could be fused with the memory
instruction. The fix does not achieve that, however. A symbol offset
adds an extra instruction.



CVS: cvs.openbsd.org: src

2019-06-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2019/06/24 07:43:19

Modified files:
sys/net: if_pppx.c 

Log message:
free(9) sizes.

ok kn@



CVS: cvs.openbsd.org: src

2019-06-24 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2019/06/24 07:39:37

Modified files:
gnu/llvm/tools/clang/lib/Driver/ToolChains: OpenBSD.cpp 

Log message:
The -nopie flag has already been pushed a few lines before,
we don't need to do that again here.

>From Brad



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 06:51:05

Modified files:
sys/kern   : init_sysent.c syscalls.c 
sys/sys: syscall.h syscallargs.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 06:49:54

Modified files:
sys/kern   : syscalls.master 

Log message:
Unlock getrlimit(2) and setrlimit(2).

OK semarie@ mpi@ deraadt@ anton@



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 06:49:03

Modified files:
sys/kern   : kern_resource.c 

Log message:
Guard uvm_map_protect() with kernel lock to prepare dosetrlimit()
for unlocking.

OK semarie@ mpi@ deraadt@ anton@



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 06:36:15

Modified files:
regress/sys/net/rtable: Makefile.inc srp_compat.h 

Log message:
Do not use a warning flag that base gcc does not understand,
and fix the warnings.

>From Moritz Buhl



CVS: cvs.openbsd.org: src

2019-06-24 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/06/24 06:33:36

Modified files:
regress/sys/net/rtable/delete: main.c 
regress/sys/net/rtable/fullfeed: main.c 

Log message:
Fix test after kernel interface change.

>From Moritz Buhl



CVS: cvs.openbsd.org: src

2019-06-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/06/24 04:04:29

Modified files:
usr.bin/tmux   : format.c 

Log message:
Expand arguments to C and s format modifiers (matches m which already expands).



CVS: cvs.openbsd.org: src

2019-06-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/06/24 02:20:02

Modified files:
usr.bin/tmux   : window.c 

Log message:
Trim trailing spaces when matching.



CVS: cvs.openbsd.org: src

2019-06-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2019/06/24 00:45:06

Modified files:
sys/dev/usb: usb_subr.c 

Log message:
Don't retry to get the usb descriptor in usbd_new_device() if the call
timed out. If usbd_get_desc() returns USBD_TIMEOUT the chance is high
that the next call will do the same and it slows down attachement of
devices a lot. Makes reattaching USB at resume a lot faster with my
umb(4) card (which likes to time out).
"move fast and fix things" deraadt@



CVS: cvs.openbsd.org: src

2019-06-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2019/06/24 00:39:49

Modified files:
usr.sbin/bgpd  : mrt.c rde.h rde_attr.c rde_community.c 

Log message:
mrt dumps lost communities after the community rewrite.
Readd them by dumping them explicitly.
Tested by and OK benno@