Commit Graph

248316 Commits

Author SHA1 Message Date
christos 06363001a6 fix printf format 2017-01-29 18:57:06 +00:00
maya 8c70f41783 Most error paths that goto out; don't hold tun_lock.
so don't mutex_exit(tun_lock) in them, but only in
the one that needs it.

ok skrll
2017-01-29 18:30:33 +00:00
abhinav c8b491e821 Fix a typo. 2017-01-29 16:52:38 +00:00
christos edf4b9ea7e Include sqlite3 to the dependent libraries 2017-01-29 15:42:58 +00:00
snj e6059b4b0a new lookup order will be in 7.1 before 8.0 2017-01-29 05:13:55 +00:00
snj 5e9bd3fe06 add 7.1 2017-01-29 05:12:17 +00:00
christos 2e57ffe4d0 fix function argument. 2017-01-29 04:12:52 +00:00
christos 0d0d359801 call the proper size functions 2017-01-29 02:29:06 +00:00
christos fc9eacac98 missing brace 2017-01-29 02:07:57 +00:00
christos b87b6dbc49 fix args 2017-01-29 02:07:44 +00:00
christos 553b9f4b06 handle our basename. 2017-01-29 01:46:37 +00:00
christos 624dfe6a19 override arc4* for tools build. 2017-01-29 01:46:16 +00:00
pgoyette 7a4cf709e4 Update for the new *_size() functions recently added. Mention the
implicit size limit (128KB) for the functions which do not take an
explicit limit argument.
2017-01-29 01:38:02 +00:00
christos f8006a404c Always print the rule id associated with a rule. 2017-01-29 00:18:15 +00:00
christos d185461508 add sized versions of the copyin ioctls 2017-01-29 00:16:42 +00:00
christos de9e5b2f0e add sized versions of the copyin ioctls. 2017-01-29 00:16:19 +00:00
christos 923e6ee286 - Increase copyin buffer size to 4M
- Change log output format to be like the OpenBSD's pf including in
  the header the matching rule etc, and fill in the matching info.
2017-01-29 00:15:54 +00:00
christos 37255f022c add sqlite3 2017-01-28 23:59:15 +00:00
wiz 3c1a929df9 Sort SYNOPSIS, descriptions, SEE ALSO.
Use more macros.
Fix sections.
New sentence, new line.
Various other improvements.
2017-01-28 23:52:45 +00:00
christos ce31bd9da4 add sqlite3 2017-01-28 23:42:36 +00:00
christos 92838f1e37 kerberos needs sqlite3 2017-01-28 23:40:51 +00:00
christos 61b2320621 krb5 needs sqlite3 now 2017-01-28 23:38:48 +00:00
christos a61faabfa2 kerberos now has sqlite3 support. 2017-01-28 23:34:14 +00:00
christos d36af5dd0c Fix the build (objdirs) 2017-01-28 23:19:20 +00:00
maya 491605d47f Switch agr(4) to use a workqueue. This is necessary because during
a callout, it allocates memory with M_WAITOK, which triggers a
DEBUG assert.

XXX we should drain the workqueue.

ok riastradh
2017-01-28 22:56:09 +00:00
christos 45f67fc24b Use ${TOOL_SED} and resolve paths properly. 2017-01-28 22:25:44 +00:00
christos f1955b04fe avoid the shadow 2017-01-28 21:54:57 +00:00
christos b2a3dd3ebe new Heimdal 2017-01-28 21:47:24 +00:00
christos 009f9c23f3 bump heimdal libraries 2017-01-28 21:42:41 +00:00
christos d3273b5b76 merge conflicts, adjust the build. 2017-01-28 21:31:43 +00:00
christos b9d004c6cc Release Notes - Heimdal - Version Heimdal 7.1
Security

 - kx509 realm-chopping security bug
 - non-authorization of alias additions/removals in kadmind
   (CVE-2016-2400)

 Feature

 - iprop has been revamped to fix a number of race conditions that could
   lead to inconsistent replication
 - Hierarchical capath support
 - AES Encryption with HMAC-SHA2 for Kerberos 5
   draft-ietf-kitten-aes-cts-hmac-sha2-11
 - hcrypto is now thread safe on all platforms
 - libhcrypto has new backends: CNG (Windows), PKCS#11 (mainly for
   Solaris), and OpenSSL.  OpenSSL is now a first-class libhcrypto backend.
   OpenSSL 1.0.x and 1.1 are both supported. AES-NI used when supported by
   backend
 - HDB now supports LMDB
 - Thread support on Windows
 - RFC 6113  Generalized Framework for Kerberos Pre-Authentication (FAST)
 - New GSS APIs:
   . gss_localname
 - Allow setting what encryption types a principal should have with
   [kadmin] default_key_rules, see krb5.conf manpage for more info
 - Unify libhcrypto with LTC (libtomcrypto)
 - asn1_compile 64-bit INTEGER functionality
 - HDB key history support including --keepold kadmin password option
 - Improved cross-realm key rollover safety
 - New krb5_kuserok() and krb5_aname_to_localname() plug-in interfaces
 - Improved MIT compatibility
   . kadm5 API
   . Migration from MIT KDB via "mitdb" HDB backend
   . Capable of writing the HDB in MIT dump format
 - Improved Active Directory interoperability
   . Enctype selection issues for PAC and other authz-data signatures
   . Cross realm key rollover (kvno 0)
 - New [kdc] enctype negotiation configuration:
   . tgt-use-strongest-session-key
   . svc-use-strongest-session-key
   . preauth-use-strongest-session-key
   . use-strongest-server-key
 - The KDC process now uses a multi-process model improving
   resiliency and performance
 - Allow batch-mode kinit with password file
 - SIGINFO support added to kinit cmd
 - New kx509 configuration options:
   . kx509_ca
   . kca_service
   . kx509_include_pkinit_san
   . kx509_template
 - Improved Heimdal library/plugin version safety
 - Name canonicalization
   . DNS resolver searchlist
   . Improved referral support
   . Support host:port host-based services
 - Pluggable libheimbase interface for DBs
 - Improve IPv6 Support
 - LDAP
   . Bind DN and password
   . Start TLS
 - klist --json
 - DIR credential cache type
 - Updated upstream SQLite and libedit
 - Removed legacy applications: ftp, kx, login, popper, push, rcp, rsh,
   telnet, xnlock
 - Completely remove RAND_egd support
 - Moved kadmin and ktutil to /usr/bin
 - Stricter fcache checks (see fcache_strict_checking krb5.conf setting)
    . use O_NOFOLLOW
    . don't follow symlinks
    . require cache files to be owned by the user
    . require sensible permissions (not group/other readable)
 - Implemented gss_store_cred()
 - Many more

 Bug fixes
 - iprop has been revamped to fix a number of race conditions that could
   lead to data loss
 - Include non-loopback addresses assigned to loopback interfaces
   when requesting tickets with addresses
 - KDC 1DES session key selection (for AFS rxkad-k5 compatibility)
 - Keytab file descriptor and lock leak
 - Credential cache corruption bugs
   (NOTE: The FILE ccache is still not entirely safe due to the
   fundamentally unsafe design of POSIX file locking)
 - gss_pseudo_random() interop bug
 - Plugins are now preferentially loaded from the run-time install tree
 - Reauthentication after password change in init_creds_password
 - Memory leak in the client kadmin library
 - TGS client requests renewable/forwardable/proxiable when possible
 - Locking issues in DB1 and DB3 HDB backends
 - Master HDB can remain locked while waiting for network I/O
 - Renewal/refresh logic when kinit is provided with a command
 - KDC handling of enterprise principals
 - Use correct bit for anon-pkinit
 - Many more

 Acknowledgements

 This release of Heimdal includes contributions from:

    Abhinav Upadhyay        Heath Kehoe             Nico Williams
    Andreas Schneider       Henry Jacques           Patrik Lundin
    Andrew Bartlett         Howard Chu              Philip Boulain
    Andrew Tridgell         Igor Sobrado            Ragnar Sundblad
    Antoine Jacoutot        Ingo Schwarze           Remi Ferrand
    Arran Cudbard-Bell      Jakub Čajka             Rod Widdowson
    Arvid Requate           James Le Cuirot         Rok Papež
    Asanka Herath           James Lee               Roland C. Dowdeswell
    Ben Kaduk               Jeffrey Altman          Ross L Richardson
    Benjamin Kaduk          Jeffrey Clark           Russ Allbery
    Bernard Spil            Jeffrey Hutzelman       Samuel Cabrero
    Brian May               Jelmer Vernooij         Samuel Thibault
    Chas Williams           Ken Dreyer              Santosh Kumar Pradhan
    Chaskiel Grundman       Kiran S J               Sean Davis
    Dana Koch               Kumar Thangavelu        Sergio Gelato
    Daniel Schepler         Landon Fuller           Simon Wilkinson
    David Mulder            Linus Nordberg          Stef Walter
    Douglas Bagnall         Love Hörnquist Åstrand  Stefan Metzmacher
    Ed Maste                Luke Howard             Steffen Jaeckel
    Eray Aslan              Magnus Ahltorp          Timothy Pearson
    Florian Best            Marc Balmer             Tollef Fog Heen
    Fredrik Pettai          Marcin Cieślak          Tony Acero
    Greg Hudson             Marco Molteni           Uri Simchoni
    Gustavo Zacarias        Matthieu Hautreux       Viktor Dukhovni
    Günther Deschner        Michael Meffie          Volker Lendecke
    Harald Barth            Moritz Lenz
2017-01-28 20:46:41 +00:00
jakllsch 9b0a9a1385 avoid -Werror=sign-conversion 2017-01-28 19:19:41 +00:00
christos dc0230d3b5 factor out common subexpressions. 2017-01-28 19:07:16 +00:00
nat 7e4b3e54c6 Add bta2dpd(8) - bluetooth advanced audio daemon. 2017-01-28 17:14:21 +00:00
nat b6121f8d46 bta2dpd - Bluetooth Advand Audio Distribution (A2DP) Profile Daemon.
bta2dpd allows you to stream audio to and from bluetooth devices.
It features high quality stereo audio and is intended for use with pad(4)
device.

As discussed on current-users@ and tech-userlevel@
2017-01-28 16:55:54 +00:00
christos a4ac56487b We need to define COMPAT_NETBSD32 before we include other files;
otherwise things like ucontext32_t will be missing.
2017-01-28 16:43:59 +00:00
kamil 36d20cd835 Add personal TODO and research goals
Things I want to finish for 8:

- as much as possible from the LLDB, Swift, .NET and VirtualBox projects
- more c11 in libc

Things I want to research for 9:

- turn system utilities into C libraries + add bindings for Lua
- rebase Haiku stack on NetBSD + add Kit(s) accessing libsystem utilities
2017-01-28 15:40:16 +00:00
christos 98d86f55fe we have space for one more. 2017-01-28 15:09:55 +00:00
christos 1ff2e9944e fix size computation 2017-01-28 15:08:06 +00:00
christos 6c8a901940 copy the terminating NUL (njoly) 2017-01-28 15:01:01 +00:00
jakllsch 0599f5991d Drop inadvertent redundant CPU_CONTROL_MMU_ENABLE ((1 < 22)) for PJ4Bv7.
This was intended to be CPU_CONTROL_UNAL_ENABLE, which is already handled.

Should fix PR kern/51921.
2017-01-28 13:21:11 +00:00
spz b367ed3864 merge for OpenSSL 1.0.2k 2017-01-27 23:16:20 +00:00
spz fc2ef7411d updated man pages & the x86_64 mont* asm fix for the new openssl.
Expect at least one more commit until the tree builds again.
2017-01-27 23:00:46 +00:00
spz 34505c60e1 import of OpenSSL 1.0.2k
Upstream changelog:
Changes between 1.0.2j and 1.0.2k [26 Jan 2017]

 *) Truncated packet could crash via OOB read

    If one side of an SSL/TLS path is running on a 32-bit host and a specific
    cipher is being used, then a truncated packet can cause that host to
    perform an out-of-bounds read, usually resulting in a crash.

    This issue was reported to OpenSSL by Robert Święcki of Google.
    (CVE-2017-3731)
    [Andy Polyakov]

 *) BN_mod_exp may produce incorrect results on x86_64

    There is a carry propagating bug in the x86_64 Montgomery squaring
    procedure. No EC algorithms are affected. Analysis suggests that attacks
    against RSA and DSA as a result of this defect would be very difficult to
    perform and are not believed likely. Attacks against DH are considered just
    feasible (although very difficult) because most of the work necessary to
    deduce information about a private key may be performed offline. The amount
    of resources required for such an attack would be very significant and
    likely only accessible to a limited number of attackers. An attacker would
    additionally need online access to an unpatched system using the target
    private key in a scenario with persistent DH parameters and a private
    key that is shared between multiple clients. For example this can occur by
    default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
    similar to CVE-2015-3193 but must be treated as a separate problem.

    This issue was reported to OpenSSL by the OSS-Fuzz project.
    (CVE-2017-3732)
    [Andy Polyakov]

 *) Montgomery multiplication may produce incorrect results

    There is a carry propagating bug in the Broadwell-specific Montgomery
    multiplication procedure that handles input lengths divisible by, but
    longer than 256 bits. Analysis suggests that attacks against RSA, DSA
    and DH private keys are impossible. This is because the subroutine in
    question is not used in operations with the private key itself and an input
    of the attacker's direct choice. Otherwise the bug can manifest itself as
    transient authentication and key negotiation failures or reproducible
    erroneous outcome of public-key operations with specially crafted input.
    Among EC algorithms only Brainpool P-512 curves are affected and one
    presumably can attack ECDH key negotiation. Impact was not analyzed in
    detail, because pre-requisites for attack are considered unlikely. Namely
    multiple clients have to choose the curve in question and the server has to
    share the private key among them, neither of which is default behaviour.
    Even then only clients that chose the curve will be affected.

    This issue was publicly reported as transient failures and was not
    initially recognized as a security issue. Thanks to Richard Morgan for
    providing reproducible case.
    (CVE-2016-7055)
    [Andy Polyakov]

 *) OpenSSL now fails if it receives an unrecognised record type in TLS1.0
    or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
    prevent issues where no progress is being made and the peer continually
    sends unrecognised record types, using up resources processing them.
    [Matt Caswell]
2017-01-27 22:53:49 +00:00
palle 5dcf0bb125 sun4v: implement missing handling of itsb traps 0x008 and 0x009. Based on code from OpenBSD. Tested using qemu. 2017-01-27 21:35:38 +00:00
christos adbaca4132 Strip first otherwise we end up with __RCSID("NetBSD") 2017-01-27 18:02:09 +00:00
ryo 672772a1a5 Don't hold softnet_lock if NET_MPSAFE.
Some functions lock softnet_lock while waiting in pserialize_perform() in pfil_add_hook().
(e.g. key_timehandler(), etc)
2017-01-27 17:25:34 +00:00
christos ee8d32bb92 remove __HAVE_COMPAT_NETBSD32 2017-01-27 17:21:51 +00:00
kamil be61ec4715 Remove debug printf(3)
No functional change.

Sponsored by <The NetBSD Foundation>
2017-01-27 16:43:07 +00:00
kamil 71f5b91f6d Add new tests signal{9,10} in t_ptrace_wait{,3,4,6,id,pid}
signal9:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching PTRACE_LWP_CREATE breakpoint

signal10:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching PTRACE_LWP_EXIT breakpoint

Both tests are broken and linked with PR kern/51918.

Sponsored by <The NetBSD Foundation>
2017-01-27 16:35:47 +00:00