CVS: cvs.openbsd.org: src

2019-05-13 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/05/13 23:58:36

Modified files:
usr.bin/ftp: http.c 

Log message:
Enable TLSv1.0 and TLSv1.1

Like the old ftp.  Discussed with at least with tedu@ "We should match
existing behavior at least for now"



CVS: cvs.openbsd.org: src

2019-05-13 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/05/13 23:48:58

Modified files:
regress/lib/libcrypto/botan: Makefile 

Log message:
Use propper regress target to integrate better into test framework.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/05/13 21:27:43

Modified files:
sys/kern   : kern_smr.c 

Log message:
Add lock order checking for smr_barrier(9). This is similar to the
checking done in taskq_barrier(9) and timeout_barrier(9).

OK mpi@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Sunil Nimmagadda
CVSROOT:/cvs
Module name:src
Changes by: su...@cvs.openbsd.org   2019/05/13 21:20:12

Removed files:
usr.bin/ctfdump: elf.c 

Log message:
Remove leftover elf.c



CVS: cvs.openbsd.org: src

2019-05-13 Thread Sunil Nimmagadda
CVSROOT:/cvs
Module name:src
Changes by: su...@cvs.openbsd.org   2019/05/13 21:16:55

Modified files:
usr.bin/ctfdump: Makefile ctfdump.c elf.c 

Log message:
Use elf(3) api instead of an ad-hoc elf parser.

Ok mpi@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Sunil Nimmagadda
CVSROOT:/cvs
Module name:src
Changes by: su...@cvs.openbsd.org   2019/05/13 20:32:08

Modified files:
usr.bin/ftp: main.c 

Log message:
Remove an unused and leftover label.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Sunil Nimmagadda
CVSROOT:/cvs
Module name:src
Changes by: su...@cvs.openbsd.org   2019/05/13 20:30:00

Modified files:
usr.bin/ftp: http.c 

Log message:
tls_write(3): Handle short writes.

Ok jca@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2019/05/13 17:18:22

Modified files:
distrib/alpha/miniroot: list 
distrib/amd64/common: list 
distrib/arm64/ramdisk: list 
distrib/armv7/ramdisk: list 
distrib/hppa/ramdisk: list 
distrib/i386/common: list 
distrib/landisk/ramdisk: list 
distrib/loongson/ramdisk: list 
distrib/luna88k/ramdisk: list 
distrib/macppc/ramdisk: list 
distrib/miniroot: install.sub list 
distrib/octeon/ramdisk: list 
distrib/ramdisk: list 
distrib/sgi/ramdisk: list 
distrib/sparc64/miniroot: list 
distrib/sparc64/ramdisk: list 
distrib/sparc64/ramdiskB: list 
distrib/special: Makefile 
Added files:
distrib/special/tee: Makefile 

Log message:
Add tee(1) to the ramdisk filesystem and use it to provide both a
moving progress bar during auto upgrade/install and a clean log
afterwards.  ok deraadt@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/05/13 17:13:24

Modified files:
sbin/unwind: parse.y printconf.c unwind.c unwind.h 

Log message:
Remove strict mode for now, it is in the way.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/13 16:58:52

Modified files:
sys/dev/acpi   : tpm.c 

Log message:
print a newline for attach. from f holop



CVS: cvs.openbsd.org: src

2019-05-13 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/05/13 16:55:27

Modified files:
sys/kern   : init_sysent.c kern_pledge.c syscalls.c 
 syscalls.master vfs_getcwd.c vfs_lookup.c 
 vfs_syscalls.c 
sys/sys: namei.h syscall.h syscallargs.h 

Log message:
Add a kernel implementation of realpath() as __realpath().

We want this so that we can stop allowing readlink() on traversed
vnodes in unveil().

This includes all the kernel side and the system call.
This is not yet used in libc for realpath, so nothing calls this yet.
The libc wrapper will be committed later.

Testing by many, and ports build by naddy@

ok deraadt@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Brent Cook
CVSROOT:/cvs
Module name:src
Changes by: bc...@cvs.openbsd.org   2019/05/13 16:48:30

Modified files:
lib/libssl : t1_enc.c 

Log message:
Remove unused pad check, which is handled by tls1_cbc_remove_padding() now.

Fixes COV-174858

ok tb@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Brent Cook
CVSROOT:/cvs
Module name:src
Changes by: bc...@cvs.openbsd.org   2019/05/13 16:36:01

Modified files:
lib/libtls : tls_server.c 

Log message:
Acquire mutex before incrementing the refcount. Fixes COV-186144

ok tb@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/13 16:25:27

Modified files:
lib/libc   : shlib_version 

Log message:
Add missing word in comment.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2019/05/13 16:01:56

src/distrib/special/tee

Update of /cvs/src/distrib/special/tee
In directory cvs.openbsd.org:/tmp/cvs-serv16552/tee

Log Message:
Directory /cvs/src/distrib/special/tee added to the repository



CVS: cvs.openbsd.org: src

2019-05-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/05/13 15:44:14

Modified files:
sys/dev/pci/drm/include/linux: preempt.h 

Log message:
add in_irq() in_interrupt() in_task()

in_irq() uses ci_idepth on archs that have it
in_interrupt() is the same as in_irq() for now, linux has in_irq() for
hard interrupt context and in_interrupt() is also for soft interrupt
and nmi context.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/05/13 15:50:50

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

Log message:
enable in_irq() based check



CVS: cvs.openbsd.org: src

2019-05-13 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/05/13 15:47:10

Modified files:
regress/sys/kern/realpath: realpathtest.c 

Log message:
Document our currently incosnsistent behaviour and our current
sins which have been judged by Dr Posix as sinful...



CVS: cvs.openbsd.org: src

2019-05-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2019/05/13 15:27:59

Modified files:
sys/arch/alpha/dev: sgmap_common.c 
sys/arch/alpha/include: bus.h 
sys/arch/alpha/isa: isadma_bounce.c 

Log message:
free(9) sizes.

>From miod@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2019/05/13 15:29:28

Modified files:
sys/dev/pci: sv.c 

Log message:
free(9) sizes.

>From Jan Klemkow, ok tedu@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2019/05/13 15:13:04

Modified files:
usr.sbin/bgpd  : rde_update.c 

Log message:
Don't use a hardcoded list of how attribute are dumped and instead move
to a loop-switch construct in up_generate_attr().  This way attributes
are always dumped in ascending order as suggested by the RFC and adding
special attributes is simpler than in the current way.
The MP attributes are a special case since those are handled at a later
stage of creating UPDATE messages.
OK benno@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Dale Rahn
CVSROOT:/cvs
Module name:src
Changes by: dr...@cvs.openbsd.org   2019/05/13 14:55:22

Modified files:
sys/arch/arm64/arm64: intr.c 
sys/arch/arm64/dev: agintc.c 

Log message:
Move idepth tracking out of interrupt controller into common layer.
'looks good' kettenis@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2019/05/13 14:47:19

Modified files:
sbin/sysctl: sysctl.c 

Log message:
KERN_PFSTATUS is not handled by sysctl so warn about it if requested but
ignore if sysctl -a is used.
OK bluhm@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/05/13 14:10:23

Modified files:
usr.bin/tmux   : attributes.c grid.c input.c tmux.1 tmux.h 
 tty-term.c tty.c 

Log message:
Add support for overline (SGR 53), from Ricardo Banffy.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/05/13 14:07:02

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

Log message:
Always include Lock in the menu.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2019/05/13 14:00:33

Modified files:
lib/libc/include: namespace.h 
Added files:
lib/libc/include: DETAILS 

Log message:
Move 'how this works' details from namespace.h to DETAILS



CVS: cvs.openbsd.org: src

2019-05-13 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/05/13 13:42:28

Modified files:
regress/sys/kern: Makefile 

Log message:
Link regress sigpthread to build.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/05/13 13:40:22

Log message:
Test the interaction of signals with multiple posix threads.  It
covers blocking with signal mask, killing process or thread, invoking
handler or waiting for signal.

Status:

Vendor Tag: bluhm
Release Tags:   bluhm_20190513

N src/regress/sys/kern/sigpthread/README
N src/regress/sys/kern/sigpthread/sigpthread.c
N src/regress/sys/kern/sigpthread/Makefile
N src/regress/sys/kern/sigpthread/LICENSE

No conflicts created by this import



CVS: cvs.openbsd.org: src

2019-05-13 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/05/13 13:21:32

Modified files:
sys/kern   : exec_elf.c kern_exit.c kern_sig.c tty.c 
sys/nfs: nfs_socket.c 
sys/sys: proc.h signalvar.h sysctl.h 

Log message:
When killing a process, the signal is handled by any thread that
does not block the signal.  If all threads block the signal, we
delivered it to the main thread.  This does not conform to POSIX.
If any thread unblocks the signal, it should be delivered immediately
to this thread.
Mark such signals pending at the process instead of a single thread.
Then any thread can handle it later.
OK kettenis@ guenther@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2019/05/13 12:20:13

Modified files:
sys/net: bridgestp.c 

Log message:
Do not check for IFF_RUNNING inside bstp_initialization().

This allows to set such flag after completing the initialization of a
bridge and still have bstp_tick() be scheduled from the begining.

Fix a regression reported by and ok markus@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2019/05/13 12:14:05

Modified files:
sys/net: if_bridge.c 

Log message:
Deal with the case where bridge_getbif() can return NULL.

Since `bif' are removed from the interface list before calling smr_barrier()
and the hash queue is cleaned up afterward, it is possible to find an ifidx
with bridge_rtlookup() that won't match to any `bif'.

Fix a panic reported by Hrvoje Popovski, ok visa@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/05/13 11:31:51

Modified files:
sys/kern   : kern_descrip.c 

Log message:
dup2(n,n) would rlimit check before handling the n==n shortcut,
and incorrectly return EBADF when n>curlim.
ok millert guenther tedu



CVS: cvs.openbsd.org: src

2019-05-13 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2019/05/13 11:18:10

Modified files:
lib/libc/gen   : nlist.c 

Log message:
The fd used by nlist() isn't application visible, so mark it close-on-exec
to avoid leaking it

ok deraadt@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/05/13 11:00:12

Modified files:
usr.bin/sort   : coll.c coll.h sort.1 sort.c 

Log message:
Delete tentacles of LC_NUMERIC support.
Our libc doesn't support that now and won't in the future.
Minus ~90 lines of code, no functional change.
OK tb@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/05/13 10:23:15

Modified files:
sys/dev/pci/drm/include/linux: idr.h 

Log message:
add idr_is_empty()



CVS: cvs.openbsd.org: src

2019-05-13 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/05/13 10:04:49

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

Log message:
ephermal -> ephemeral

>From Hiltjo Posthuma



CVS: cvs.openbsd.org: src

2019-05-13 Thread Pratik Vyas
CVSROOT:/cvs
Module name:src
Changes by: p...@cvs.openbsd.org2019/05/13 09:40:34

Modified files:
sys/arch/amd64/amd64: vmm.c 
sys/arch/amd64/include: vmmvar.h 
sys/dev/pv : pvbus.c pvclock.c pvreg.h 

Log message:
vmm: add host side pvclock

Emulate kvm pvclock in vmm(4).  Compatible with pvclock(4) in OpenBSD.  Linux
does not attach to this (yet).

Fixes by reyk@ and tested extensively by reyk@, tb@ and phessler@

ok mlarkin@ phessler@ reyk@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2019/05/13 09:19:16

Modified files:
usr.sbin/relayd: relay_http.c 

Log message:
Add Connection: close when switching to "unlimited" reading mode.

Ask the server to close the connection after the request since we
don't read any further request headers.  This fixes an issue with
OPTIONS and optional body, as well as similar cases.

Reported and tested by Rivo Nurges

OK benno@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/05/13 08:11:20

Modified files:
lib/libc/net   : resolver.3 

Log message:
explicitly mention that RES_NOALIASES has no effect;
jmc@ noticed that the text wasn't completely clear;
OK jmc@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Denis Fondras
CVSROOT:/cvs
Module name:src
Changes by: de...@cvs.openbsd.org   2019/05/13 07:47:36

Modified files:
usr.sbin/bgpd  : rde_update.c 

Log message:
fix export default-route.

OK claudio@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Aaron Bieber
CVSROOT:/cvs
Module name:src
Changes by: abie...@cvs.openbsd.org 2019/05/13 06:31:56

Modified files:
sys/arch/sgi/hpc: wskbdmap_sgi.c 

Log message:
regen (missed this when I did the colemak update)



CVS: cvs.openbsd.org: src

2019-05-13 Thread Brent Cook
CVSROOT:/cvs
Module name:src
Changes by: bc...@cvs.openbsd.org   2019/05/13 06:05:04

Modified files:
lib/libcrypto  : Tag: OPENBSD_6_5 opensslv.h 

Log message:
LibreSSL 2.9.2



CVS: cvs.openbsd.org: src

2019-05-13 Thread Rob Pierce
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2019/05/13 04:00:29

Modified files:
regress/lib/libutil: Makefile 

Log message:
Hookup ber regress.

ok bluhm@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2019/05/13 03:54:07

Modified files:
usr.sbin/relayd: relay.c relay_http.c relayd.h util.c 

Log message:
Fix filter rules with "forward to" statement in persistent connections.

OK bentley@ mikeb@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/05/13 02:56:07

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Fix column width for copy mode commands.



CVS: cvs.openbsd.org: src

2019-05-13 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2019/05/13 01:33:23

Modified files:
usr.sbin/snmpd : usm.c 

Log message:
According to RFC3414 section 4 applications should be able to discover the
snmpEngineBoots and snmpEngineTime by sending an AuthPriv request with the
requested values set to zero and with a valid user.

Move the engine_boots and engine_time down after the user check and remove
the 0-check, so we can reply with the appropriate usmStatsNotInTimeWindows.

This allows us to use p5-Net-SNMP against snmpd with seclevel enc.

OK rob@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2019/05/13 01:24:50

Modified files:
usr.sbin/snmpd : snmpe.c 

Log message:
According to RFC3414 section 4 applications should be able to discover the
snmpEngineID by sending a noAuthNoPriv request. Move the seclevel check to
after the usm_decode phase, so we can reply with the mandatory
usmStatsUnknownEngineIDs instead of usmStatsUnsupportedSecLevels.

This brings us one step closer to using p5-Net-SNMP with seclevel enc.

OK tb@, rob@



CVS: cvs.openbsd.org: src

2019-05-13 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2019/05/13 00:04:55

Modified files:
lib/libc/stdlib: malloc.3 

Log message:
Mention introduction of *_conceal.