CVS: cvs.openbsd.org: src

2018-02-25 Thread Carlos Cardenas
CVSROOT:/cvs
Module name:src
Changes by: ccarde...@cvs.openbsd.org   2018/02/25 23:47:06

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2018-02-25 Thread Carlos Cardenas
CVSROOT:/cvs
Module name:src
Changes by: ccarde...@cvs.openbsd.org   2018/02/25 23:46:10

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add devices found on thinkpad e475 with an AMD A10-9600P
(Bristol Ridge, aka tweaked Carrizo) not to be confused with
Carrizo-L (16h apu).

ok jsg@, mlarkin@



CVS: cvs.openbsd.org: src

2018-02-25 Thread Carlos Cardenas
CVSROOT:/cvs
Module name:src
Changes by: ccarde...@cvs.openbsd.org   2018/02/25 23:36:54

Modified files:
usr.sbin/vmctl : vmctl.c 

Log message:
vmctl: clarify console error message

Clear up ambiguous error message when attaching to a console fails as
the vm id is not guaranteed to be populated.

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-02-25 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2018/02/25 20:56:44

Modified files:
usr.bin/ssh: xmss_commons.c xmss_commons.h xmss_fast.c 
 xmss_fast.h xmss_hash.c xmss_hash.h 
 xmss_hash_address.c xmss_hash_address.h 
 xmss_wots.c xmss_wots.h 

Log message:
Add $OpenBSD$ markers to xmss files to help keep synced with portable.
ok djm@.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2018/02/25 20:12:41

Modified files:
sys/arch/amd64/include: pmap.h 

Log message:
Delete pmap_update_2pg(), the #include of , trailing
whitespace, and the leading underbars of '__inline'

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-02-25 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2018/02/25 20:03:05

Modified files:
usr.bin/ssh: xmss_commons.h 

Log message:
Add newline at end of file to prevent compiler warnings.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 15:52:48

Modified files:
lib/libcrypto/man: RSA_get_ex_new_index.3 
   X509_STORE_set1_param.3 

Log message:
In x509_vfy.h rev. 1.24 2018/02/22 17:19:31, jsing@ provided
X509_STORE_set_ex_data(3) and X509_STORE_get_ex_data(3).
Document them.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 15:24:18

Modified files:
lib/libcrypto/man: X509_OBJECT_get0_X509.3 X509_STORE_CTX_new.3 
   X509_STORE_set1_param.3 
   X509_VERIFY_PARAM_set_flags.3 

Log message:
In x509_vfy.h rev. 1.24 2018/02/22 17:19:31, jsing provided
X509_STORE_get0_objects(3).  Merge the documenteation from OpenSSL,
heavily tweaked by me.  While here, document six additional public
functions closely related to X509_STORE_set1_param(3) that OpenSSL
lacks documentation for.  No Copyright-worthy amount of text remains
in X509_STORE_set1_param.3, so switch to my Copyright and license.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/02/25 13:43:33

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

Log message:
Add RK805 support.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/02/25 13:42:42

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

Log message:
Add RK3328 support.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/02/25 13:42:13

Modified files:
sys/dev/fdt: rkclock.c rkclock_clocks.h 

Log message:
More RK3328 clocks.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 13:26:51

Modified files:
lib/libcrypto/man: Makefile 
Added files:
lib/libcrypto/man: X509_OBJECT_get0_X509.3 

Log message:
In x509_vfy.h rev. 1.23 2018/02/22 17:17:09, jsing@ provided
X509_OBJECT_get0_X509(3) and X509_OBJECT_get0_X509_CRL(3).
Since they are undocumented in OpenSSL, write a new manual
page from scratch, also documenting five closely related
public functions that have already been available before.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 10:46:39

Modified files:
lib/libcrypto/man: PKCS7_verify.3 Makefile X509_STORE_CTX_new.3 
   X509_STORE_load_locations.3 
   X509_STORE_set1_param.3 
   X509_STORE_set_verify_cb_func.3 
lib/libssl/man : SSL_CTX_set_cert_store.3 
Added files:
lib/libcrypto/man: X509_STORE_new.3 

Log message:
In x509_vfy.h rev. 1.22 2018/02/22 17:15:09, jsing@ provided
X509_STORE_up_ref(3).  X509_STORE_new(3) and X509_STORE_free(3)
have already been available earlier.  Import the documentation from
OpenSSL, adding some precision.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/02/25 10:24:44

Modified files:
sbin/disklabel : disklabel.c editor.c 

Log message:
Bunch of whitespace fixes.

ok otto@



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 09:26:15

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

Log message:
In x509_vfy.h rev. 1.21 2018/02/22 17:11:30, jsing@ provided
X509_STORE_CTX_get0_store(3).  It is undocumented in OpenSSL,
so write some documentation from scratch.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 09:04:07

Modified files:
lib/libcrypto/man: X509_STORE_CTX_get_error.3 
   X509_STORE_CTX_new.3 

Log message:
In x509_vfy.h rev. 1.21 2018/02/22 17:11:30, jsing@ provided
X509_STORE_CTX_get0_chain(3).  Adapt the documentation.

It is absurd that OpenSSL documents the two almost identical functions
X509_STORE_CTX_get0_chain(3) and X509_STORE_CTX_get1_chain(3) in
two different manual pages, with quite different wordings, and without
even referencing each other.  It is very obvious that they have
lost their way in their own mire of functions.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/02/25 07:47:21

Modified files:
usr.sbin/pkg_add/OpenBSD: PkgCheck.pm 

Log message:
much better checks
- add an explicit dir thingy so that we don't look for /var/db/pkg/+CONTENTS
- actually prepend dir name to info name, oops
- also check for files/dirs that do not belong to root:wheel or have too
lax permissions.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/02/25 07:20:39

Modified files:
usr.sbin/pkg_add/OpenBSD: PkgCheck.pm 

Log message:
add explicit permission checks.
pkg_check is most often run as root. In case of a garbled file systems
it won't notice when permissions are completely wrong.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/02/25 07:19:26

Modified files:
usr.sbin/pkg_add/OpenBSD: PkgCheck.pm 

Log message:
sprinkle quite a few more calls to safe



CVS: cvs.openbsd.org: src

2018-02-25 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/02/25 06:25:57

Modified files:
sys/dev/fdt: rkclock.c rkclock_clocks.h 

Log message:
Initial RK3328 clocks.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/02/25 06:26:44

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

Log message:
RK3328 support.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2018/02/25 05:40:51

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

Log message:
Don't pass our configured SSID to iwm(4) firmware during a background scan.
Apparently this can cause a firmware crash during a TX command on 7265 devices.
Why this happens is unclear.

Problem reported and workaround tested by trondd on bugs@
I have verified that hidden SSID APs still work, though we won't be able to
seamlessly roam between them anymore. Seems like a fair trade-off for now.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2018/02/25 05:40:06

Modified files:
sys/dev/pci: if_iwn.c if_iwnvar.h 

Log message:
My previous commit to iwn(4) broke the scan loop.

The problem happened if we didn't find an AP to connect to after one scan
iteration. The net80211 stack then performs a SCAN -> SCAN transition to
kick off another scan, but the driver treated this transition as a no-op
and remained in SCAN state doing nothing.

To fix this, introduce a flag which keeps track of whether a firmware
scan command is in progress, and start another scan during a SCAN->SCAN
transition if no scan is in progress. Matches what iwm(4) does.
Note that previously (i.e. in 6.2), iwn(4) would always try to start
a new scan regardless of what the firmware was currently doing.

Problem noticed by myself and also by deraadt@
test & ok tb@



CVS: cvs.openbsd.org: src

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

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

Log message:
sync



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 03:53:16

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

Log message:
In x509.h rev. 1.37 2018/02/22 17:01:44, jsing@ provided
X509_CRL_set1_lastUpdate(3) and X509_CRL_set1_nextUpdate(3) and
in rev. 1.39 2018/02/22 17:06:42 X509_set1_notBefore(3) and
X509_set1_notAfter(3).  Document them, again from scratch
because what OpenSSL provides is slightly confusing.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 03:07:34

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

Log message:
Correct the description of ASN1_item_free(3) with respect to
optional reference counting.  ETOOMUCHMAGIC.  By the way, this
public hellhole is still undocumented in OpenSSL.



CVS: cvs.openbsd.org: src

2018-02-25 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/02/25 02:49:08

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

Log message:
In x509.h rev. 1.35 2018/02/22 16:53:42, jsing@ provided
X509_CRL_up_ref(3).  Since it is undocumented in OpenSSL,
write some documentation from scratch.  While here, also
correct the description of X509_CRL_free(3) and mention
X509_CRL_dup(3), too.