CVS: cvs.openbsd.org: src

2018-05-17 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/05/17 23:20:32

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

Log message:
Use SCSI_NOSLEEP for management commands issued during attach.
No real change because we'll never run out of ccbs that early.
Noticed during review of the preceding changes.

ok dlg@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/05/17 23:17:40

Modified files:
sys/dev/ic : mfireg.h 
sys/dev/pci: mfii.c 

Log message:
Add bio(4) and sensors for mfii(4), based on code from mfi(4).  Most of the
work was done by Naoki Fukaumi, some tweaks and adjustment to match the
preceding changes by me.  Tested on SAS2208, SAS3008, SAS3108, SAS3508.

ok dlg@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/05/17 23:15:33

Modified files:
etc: nsd.conf 

Log message:
Put commented minimal-reponses and refuse-any defaults into nsd.conf
so that the changed default will be pointed out to the admin by
sysmerge.

Idea & OK sthen



CVS: cvs.openbsd.org: src

2018-05-17 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/05/17 23:15:10

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

Log message:
Make mfii_mgmt() allocate and release a ccb to simplify the most common use
case.  Based on a diff from Naoki Fukaumi.  We decided to keep using scsi
flags rather than switching to MFII_DATA_IN/OUT (as done in mfi(4)) so
callers can include SCSI_NOSLEEP if required.

ok dlg@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/05/17 23:13:21

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

Log message:
Add DPRINTF/DNPRINTF for debug output as in mfi(4) and convert existing
debug output to use them.

ok dlg@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/05/17 23:12:46

Modified files:
usr.sbin/nsd   : nsd.conf.5.in options.c 

Log message:
Turn on minimal-reponses and refuse-any per default.
OK sthen



CVS: cvs.openbsd.org: src

2018-05-17 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2018/05/17 23:11:53

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

Log message:
Use passthrough IO rather than MFA for management commands.
Investigation by Naoki Fukaumi determined that this is
necessary on some controllers and works on all of them.
Tested on SAS2208, SAS3008, SAS3108, SAS3508.

ok dlg@



CVS: cvs.openbsd.org: www

2018-05-17 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2018/05/17 19:17:28

Modified files:
.  : errata62.html errata63.html 

Log message:
release ipsec errata.



CVS: cvs.openbsd.org: src

2018-05-17 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/05/17 16:51:21

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2018-05-17 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2018/05/17 15:59:26

Modified files:
sys/dev/sdmmc  : if_bwfm_sdio.c 

Log message:
The Broadcom FullMAC firmware has a few ways of doing flow control.  One
of those is a sequence number based window mechanism.  Essentially every
packet on the SDIO bus has a sequence number.  The chip records which
sequence number we used last and when it sends us replies, it tells us
the maximum sequence number it accepts.  This means we can calculate a
window of sequence numbers that we are allowed to use.  With this I no
longer overflow the chip's RX fifo and can do stable network transfers.



CVS: cvs.openbsd.org: src

2018-05-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/05/17 14:46:45

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

Log message:
Sprinkle some #ifndef SMALL_KERNEL such that RAMDISK kernels cuild again.

pointed out by stsp@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/05/17 14:28:32

Modified files:
lib/libc/arch/aarch64/gen: _atomic_lock.c 
lib/libc/arch/arm/gen: _atomic_lock.c 

Log message:
Drop memory barrier in _atomic_lock() implementation since the callers now
take care of this.

ok visa@, mpi@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/05/17 14:21:15

Modified files:
sys/dev/acpi   : acpi.c acpivar.h amltypes.h dsdt.c dwiic_acpi.c 

Log message:
Implement GenericSerialBus OpRegion support.

ok mlarkin@



CVS: cvs.openbsd.org: src

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

Modified files:
usr.sbin/nsd   : nsd.conf.5.in query.c 

Log message:
>From upcomming nsd 4.1.22:
refuse-any sends truncation (+TC) in reply to ANY queries over UDP,
and allows TCP queries like normal

OK sthen



CVS: cvs.openbsd.org: src

2018-05-17 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2018/05/17 13:02:05

Modified files:
regress/usr.bin/pkg-config: Makefile 
regress/usr.bin/pkg-config/pcdir: whitespace-prop-2.pc 
Added files:
regress/usr.bin/pkg-config/pcdir: whitespace-requires-1.pc 
  whitespace-requires-2.pc 
  whitespace-requires-3.pc 

Log message:
add some more whitespace torture partly induced by aja@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/05/17 12:58:40

Modified files:
usr.sbin/nsd   : Makefile.in config.h.in configlexer.lex 
 configparser.y configure configure.ac 
 dbcreate.c difffile.c nsd-checkconf.8.in 
 nsd-checkconf.c nsd-checkzone.8.in 
 nsd-control.8.in nsd-mem.c nsd.8.in 
 nsd.conf.5.in nsd.conf.sample.in options.c 
 options.h query.c query.h server.c udb.c 
 xfr-inspect.c xfrd-disk.c zonec.c 

Log message:
update to nsd 4.1.21
OK sthen



CVS: cvs.openbsd.org: src

2018-05-17 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/05/17 10:44:23

Modified files:
share/man/man7 : utf8.7 

Log message:
Bytes only have eight bits, not nine.
Thus, remove the placeholder for the ninth bit.
Patch from Ross L Richardson .



CVS: cvs.openbsd.org: src

2018-05-17 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2018/05/17 09:21:06

Modified files:
share/man/man9 : file.9 

Log message:
Update the manual to match with the current semantics of fd_getfile().
Also, adjust the notes about FREF() and FRELE() as proper reference
counting is becoming mandatory.

OK jmc@, mpi@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/05/17 07:46:57

Modified files:
sbin/dhclient  : dhclient.c 

Log message:
Any IPv4 address change could alter which interface has the active
default route and thus 'owns' resolv.conf. So check if resolv.conf
should be (re)written after all IPv4 RTM_NEWADDR or RTM_DELADDR
messages.



CVS: cvs.openbsd.org: src

2018-05-17 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/05/17 07:39:00

Modified files:
sbin/slaacd: engine.c frontend.c slaacd.c slaacd.h 

Log message:
Handle RTM_DELETE of slaacd managed default route by re-inserting it.
Problem pointed out & OK phessler



CVS: cvs.openbsd.org: src

2018-05-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2018/05/17 06:32:33

Modified files:
sys/dev/pv : if_hvn.c 

Log message:
Let hvn_iff handle promisc mode activation

Tested by Daniel Wade, , thanks!



CVS: cvs.openbsd.org: src

2018-05-17 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/05/17 05:52:04

Modified files:
sbin/slaacd: slaacd.c 

Log message:
Fully align this with route(8); no need to be different here and might
help us if we ever get rid of KAME hack.



CVS: cvs.openbsd.org: src

2018-05-17 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/05/17 05:51:27

Modified files:
sbin/slaacd: frontend.c slaacd.c slaacd.h 

Log message:
Introduce SLAACD_RTA_LABEL define to not use a string constant all
over the place.



CVS: cvs.openbsd.org: src

2018-05-17 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2018/05/17 05:25:11

Modified files:
sys/miscfs/fuse: fuse_device.c fuse_vfsops.c fuse_vnops.c 
 fusebuf.c 

Log message:
Pass size argument to free(9).

ok mpi@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2018/05/17 05:04:14

Modified files:
sys/net: if.c 

Log message:
Move the handling of SIOCIFGCLONERS out of the NET_RLOCK(). The global
_clone list and the if_cloners_count are currently protected by the
KERNEL_LOCK(). Introduce the ifclonerslk rwlock to serialize access to
these two globals as a small step towards removing the KERNEL_LOCK() from
the ioctl path. While there, separate the two codepaths in if_clone_list()
more clearly and replace a ternary operator with MIN().

guidance & ok mpi, ok visa



CVS: cvs.openbsd.org: src

2018-05-17 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/05/17 03:22:18

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

Log message:
Implement LoadTable().

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-05-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2018/05/17 02:09:26

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

Log message:
Make VMM_DEBUG kernels compile again;  ok mlarkin



CVS: cvs.openbsd.org: src

2018-05-17 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/05/17 01:21:32

Modified files:
lib/libcrypto/man: ENGINE_set_RSA.3 

Log message:
spelling fix;



CVS: cvs.openbsd.org: src

2018-05-17 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2018/05/17 00:53:45

Modified files:
sys/dev/ic : bwfm.c 

Log message:
Recent Broadcom chipsets have a dedicated PMU core and it can't be
accessed using the Chipcommon core anymore.