CVS: cvs.openbsd.org: src

2018-07-07 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/07/08 00:17:10

Modified files:
lib/libfuse: fuse_chan_fd.3 fuse_daemonize.3 fuse_destroy.3 
 fuse_get_session.3 fuse_loop.3 fuse_main.3 
 fuse_mount.3 fuse_new.3 fuse_opt.3 
 fuse_parse_cmd_line.3 fuse_setup.3 
 fuse_teardown.3 fuse_version.3 

Log message:
mop up;



CVS: cvs.openbsd.org: src

2018-07-07 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2018/07/07 20:49:38

Added files:
lib/libfuse: fuse_destroy.3 

Log message:
Add man page for fuse_destroy(3).



CVS: cvs.openbsd.org: src

2018-07-07 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2018/07/07 20:28:42

Modified files:
lib/libfuse: Makefile fuse_main.3 
Added files:
lib/libfuse: fuse_chan_fd.3 fuse_daemonize.3 
 fuse_get_session.3 fuse_loop.3 fuse_mount.3 
 fuse_new.3 fuse_opt.3 fuse_parse_cmd_line.3 
 fuse_setup.3 fuse_teardown.3 fuse_version.3 

Log message:
Create separate man pages for each library function.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2018/07/07 20:18:51

Modified files:
regress/sys/netinet/recvmsg: recvmsg.c 

Log message:
zap empty line



CVS: cvs.openbsd.org: src

2018-07-07 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2018/07/07 20:16:48

Modified files:
regress/sys/kern: Makefile 

Log message:
hook up ftruncate



CVS: cvs.openbsd.org: src

2018-07-07 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2018/07/07 20:14:54

Added files:
regress/sys/kern/ftruncate: Makefile ftruncate.c 

Log message:
Add regress covering the recently fixed NULL pointer deref in vn_writechk().
This program also help uncovering a locking error in spec_setattr() fixed by
visa@.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2018/07/07 20:13:12

src/regress/sys/kern/ftruncate

Update of /cvs/src/regress/sys/kern/ftruncate
In directory cvs.openbsd.org:/tmp/cvs-serv50863/ftruncate

Log Message:
Directory /cvs/src/regress/sys/kern/ftruncate added to the repository



CVS: cvs.openbsd.org: src

2018-07-07 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/07/07 17:16:24

Modified files:
regress/sys/kern/unveil: Makefile syscalls.c 

Log message:
rename all the pledgepath bits to unveil



CVS: cvs.openbsd.org: www

2018-07-07 Thread Rafael Sadowski
CVSROOT:/cvs
Module name:www
Changes by: rsadow...@cvs.openbsd.org   2018/07/07 15:17:10

Modified files:
.  : want.html 

Log message:
I'm looking for a "CD/DVD-RW" or "Blu-ray Combo" SATA or USB burner.

"multimedia/k3b-kde4" and upcoming "x11/kde-applications/k3b" cannot
find any burner device. In order to analyze the issue I need a SATA
or USB burner.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/07/07 10:14:40

Modified files:
sys/kern   : kern_descrip.c 

Log message:
Fix an argument type error that happens when translating fcntl(F_SETOWN)
to ioctl(TIOCSPGRP). The ioctl handlers expect a pointer to an int, so
read the argument into a local int variable and pass the variable's
address to the handler instead of referencing SCARG(uap, arg) directly.

OK guenther@, mpi@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/07/07 09:41:25

Modified files:
sys/kern   : spec_vnops.c 

Log message:
Remember to lock v_specparent for VOP operations.

OK anton@, mpi@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/07/07 09:40:02

Modified files:
sys/kern   : spec_vnops.c 

Log message:
Fix a locking error in spec_setattr(). Unlike many VOP operations,
VOP_SETATTR() does not release the vnode lock (and it has never done
the unlocking in the past). Therefore spec_setattr() has to keep the
argument vnode locked and unlock v_specparent instead after the nested
VOP_SETATTR() call.

Fixes a WITNESS panic found by anton@
OK anton@, mpi@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/07/07 09:19:25

Modified files:
sys/kern   : kern_sched.c 

Log message:
Release the kernel lock fully on thread exit. This prevents a locking
error that would happen otherwise when a traced and stopped
multithreaded process is forced to exit. The error shows up as a kernel
panic when WITNESS is enabled. Without WITNESS, the error causes
a system hang.

sched_exit() has expected that a single KERNEL_UNLOCK() would release
the lock completely. That assumption is wrong when an exit happens
through the signal tracing logic:

sched_exit
exit1
single_thread_check
single_thread_set
issignal  <-- KERNEL_LOCK()
userret  <-- KERNEL_LOCK()
syscall

The error is a regression of r1.216 of kern_sig.c.

Panic reported and fix tested by Laurence Tratt
OK mpi@



CVS: cvs.openbsd.org: xenocara

2018-07-07 Thread Visa Hankala
CVSROOT:/cvs
Module name:xenocara
Changes by: v...@cvs.openbsd.org2018/07/07 08:56:22

Modified files:
distrib/sets/lists/xbase: md.octeon 

Log message:
sync



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 08:39:23

Modified files:
distrib/miniroot: install.sub 

Log message:
Always quote both parameters of ask() which picks the question and
default answer parameters via $1 and $2.

OK tb



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 08:35:06

Modified files:
distrib/miniroot: install.sub 

Log message:
Make sure the question parameter is set to be able to search for an answer
in the response file.

OK krw tb



CVS: cvs.openbsd.org: src

2018-07-07 Thread Gilles Chehade
CVSROOT:/cvs
Module name:src
Changes by: gil...@cvs.openbsd.org  2018/07/07 07:38:55

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

Log message:
make it more obvious that there was a problem with a .forward file:

424 4.2.4 Mailing list expansion problem
524 5.2.4 Mailing list expansion problem

postmaster still has to look to logs to understand the real issue but at
least it doesn't go unnoticed anymore.

ok eric@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 07:11:47

Modified files:
distrib/miniroot: install.sub 

Log message:
Compact function description.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Landry Breuil
CVSROOT:/cvs
Module name:src
Changes by: lan...@cvs.openbsd.org  2018/07/07 07:03:08

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

Log message:
Fix uaudio(4) detection on Logitech Webcam C200/C210/C250/C270/C310/C500.

Those devices have a broken AudioControl descriptor which advertises a
bad value for bLength for the FEATURE_UNIT sub-descriptor, so add a
quirk 'fixing' this bLength so that uaudio(4) attaches properly instead
of bailing out with 'audio descriptors make no sense, error=4'.

My C310 now properly attaches but doesnt seem to work right now, this is
a different issue that will be worked on.

Thanks to tb@, remi@, weerd@, Raf Czlonka, Base Pr1me, Jordan Geoghegan,
Peter J.  Philipp, Alfredo Vogel, James Hastings, Bruno Flueckiger,
Remco & Alex Tsang for providing lsusb -v output for a large variety of
Logitech Webcams.

ok mpi@ ratchov@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 06:54:33

Modified files:
distrib/miniroot: install.sub 

Log message:
Trim function description by leaving out parts that are already
explained for _ask(). Give a hint why _ask() is called from within
a while-loop.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2018/07/07 06:08:07

Modified files:
sbin/slaacd: slaacd.c 

Log message:
slaacd is not interested in v4-related route messages so set the address
family on the two socket() calls to open the routing socket, so that only
v6-related and af-unspecific messages are seen.

One of the sockets is only used for sending not receiving messages;
shutdown the receive side to avoid receiving messages as suggested by
claudio@.

slaacd is run by default (watching for interface changes to add the
"autoconf" flag), so has to process route messages even where IPv6
autoconf isn't used - these changes reduce CPU use on machines processing
large numbers of route updates (in particular full-table BGP routers).

ok florian@ claudio@ benno@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/07/07 05:32:01

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

Log message:
- move everything tag-related into state->{tags}
- implement "define-tag deleted" heuristic: when we remove the tag
definition, we can no longer run the command at-end
- implement superseded semantics to be used for texmf



CVS: cvs.openbsd.org: src

2018-07-07 Thread Landry Breuil
CVSROOT:/cvs
Module name:src
Changes by: lan...@cvs.openbsd.org  2018/07/07 04:55:50

Modified files:
sys/dev/usb: usbdevs.h usbdevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2018-07-07 Thread Landry Breuil
CVSROOT:/cvs
Module name:src
Changes by: lan...@cvs.openbsd.org  2018/07/07 04:55:26

Modified files:
sys/dev/usb: usbdevs 

Log message:
Add ids for Logitech Webcam C250, also affected by the 'bogus
FEATURE_UNIT bLength' issue.

ok mpi@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 04:26:28

Modified files:
distrib/miniroot: install.sub 

Log message:
Be more precise explaining that _ask() captures user responses
interactively and also from the response file.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/07/07 03:59:34

Modified files:
sbin/disklabel : editor.c 

Log message:
Add recommended error checks around the use of strtod() in
parse_sizespec().

ok otto@



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 03:25:00

Modified files:
distrib/miniroot: install.sub 

Log message:
Tweak comments