Commit Graph

237081 Commits

Author SHA1 Message Date
christos
8395c1339a merge conflicts 2015-08-13 10:33:21 +00:00
christos
fa879c24ed bump version 2015-08-13 10:32:36 +00:00
christos
f453f1d467 import openssh-7.0
Changes since OpenSSH 6.9
=========================

This focus of this release is primarily to deprecate weak, legacy
and/or unsafe cryptography.

Security
--------

 * sshd(8): OpenSSH 6.8 and 6.9 incorrectly set TTYs to be world-
   writable. Local attackers may be able to write arbitrary messages
   to logged-in users, including terminal escape sequences.
   Reported by Nikolay Edigaryev.

 * sshd(8): Portable OpenSSH only: Fixed a privilege separation
   weakness related to PAM support. Attackers who could successfully
   compromise the pre-authentication process for remote code
   execution and who had valid credentials on the host could
   impersonate other users.  Reported by Moritz Jodeit.

 * sshd(8): Portable OpenSSH only: Fixed a use-after-free bug
   related to PAM support that was reachable by attackers who could
   compromise the pre-authentication process for remote code
   execution. Also reported by Moritz Jodeit.

 * sshd(8): fix circumvention of MaxAuthTries using keyboard-
   interactive authentication. By specifying a long, repeating
   keyboard-interactive "devices" string, an attacker could request
   the same authentication method be tried thousands of times in
   a single pass. The LoginGraceTime timeout in sshd(8) and any
   authentication failure delays implemented by the authentication
   mechanism itself were still applied. Found by Kingcope.

Potentially-incompatible Changes
--------------------------------

 * Support for the legacy SSH version 1 protocol is disabled by
   default at compile time.

 * Support for the 1024-bit diffie-hellman-group1-sha1 key exchange
   is disabled by default at run-time. It may be re-enabled using
   the instructions at http://www.openssh.com/legacy.html

 * Support for ssh-dss, ssh-dss-cert-* host and user keys is disabled
   by default at run-time. These may be re-enabled using the
   instructions at http://www.openssh.com/legacy.html

 * Support for the legacy v00 cert format has been removed.

 * The default for the sshd_config(5) PermitRootLogin option has
   changed from "yes" to "prohibit-password".

 * PermitRootLogin=without-password/prohibit-password now bans all
   interactive authentication methods, allowing only public-key,
   hostbased and GSSAPI authentication (previously it permitted
   keyboard-interactive and password-less authentication if those
   were enabled).

New Features
------------

 * ssh_config(5): add PubkeyAcceptedKeyTypes option to control which
   public key types are available for user authentication.

 * sshd_config(5): add HostKeyAlgorithms option to control which
   public key types are offered for host authentications.

 * ssh(1), sshd(8): extend Ciphers, MACs, KexAlgorithms,
   HostKeyAlgorithms, PubkeyAcceptedKeyTypes and HostbasedKeyTypes
   options to allow appending to the default set of algorithms
   instead of replacing it. Options may now be prefixed with a '+'
   to append to the default, e.g. "HostKeyAlgorithms=+ssh-dss".

 * sshd_config(5): PermitRootLogin now accepts an argument of
   'prohibit-password' as a less-ambiguous synonym of 'without-
   password'.

Bugfixes
--------

 * ssh(1), sshd(8): add compatability workarounds for Cisco and more
   PuTTY versions. bz#2424

 * Fix some omissions and errors in the PROTOCOL and PROTOCOL.mux
   documentation relating to Unix domain socket forwarding;
   bz#2421 bz#2422

 * ssh(1): Improve the ssh(1) manual page to include a better
   description of Unix domain socket forwarding; bz#2423

 * ssh(1), ssh-agent(1): skip uninitialised PKCS#11 slots, fixing
   failures to load keys when they are present. bz#2427

 * ssh(1), ssh-agent(1): do not ignore PKCS#11 hosted keys that wth
   empty CKA_ID; bz#2429

 * sshd(8): clarify documentation for UseDNS option; bz#2045
2015-08-13 10:25:51 +00:00
ozaki-r
14dcf9ff75 Reflect a fix on rt_refcnt
The test was adjusted based on wrong behavior.
2015-08-13 10:22:21 +00:00
ozaki-r
c1f0857176 Remove extra rt_refcnt++ in rtalloc1
rtrequest has already done it. So we don't need to do it once more.

This fixes regressed behavior of ARP cache expiration which an expired
cache doesn't disappear.
2015-08-13 10:14:26 +00:00
msaitoh
76e03c6b0b Reduce diff against FreeBSD r280181. 2015-08-13 10:03:37 +00:00
shm
7d14271c4e Extend AUTHORS section. Nobody likes a braggart.
OK mrg@
2015-08-13 09:00:29 +00:00
ozaki-r
e12cf6b309 Move rtfree to a common place
This change also plugs a missing rtfree on an error path.
2015-08-13 07:59:05 +00:00
msaitoh
90a6dc2de1 MSI and MSI-X are supported now. 2015-08-13 05:02:37 +00:00
msaitoh
cf6cd3a5c4 Change pci_msi[x]_count()'s argument. 2015-08-13 05:01:04 +00:00
msaitoh
f5fe29e986 Compile ixv(4) by default. 2015-08-13 04:58:03 +00:00
msaitoh
57d62ed3a8 - Add MSI/MSI-X support. The multiqueue function is not supported yet.
- Make ixv.c compilable. _NOT_TESTED_YET_
2015-08-13 04:56:43 +00:00
msaitoh
eae4f48c70 Add workaround for PCI prefetchable bit in msipic_construct_msix_pic().
Some chips (e.g. Intel 82599) report SERR and MSI-X interrupt doesn't work.
This problem might not be the driver's bug but our PCI common part or VMs'
bug. See fxp(4), bge(4) and ixgbe(4). All of them has the same workaround
related to prefetchable bit. For the MSI-X table area, it should not have side
effect by prefetching. Until we find a real reason, we ignore the prefetchable
bit.
2015-08-13 04:52:40 +00:00
msaitoh
b62abb6e08 - Don't take pci_attach_args as an argument in pci_msi[x]_count().
- Move prototypes of pci_msi[x]_count() from x86/x86/pci_machdep_common to
  sys/dev/pci/pcivar.h.
- Move pci_msi[x]_count() from x86/pci/pci_msi_machdep.c to sys/dev/pci/pci.c
2015-08-13 04:39:33 +00:00
msaitoh
ef5463a999 regen. 2015-08-13 04:27:36 +00:00
msaitoh
97108cdff5 Add some Red Hat devices. 2015-08-13 04:27:16 +00:00
knakahara
548488f0d7 fix: Cortex delay() shorten rarely. 2015-08-13 02:25:07 +00:00
nakayama
1b89033042 Resurrect ./usr/include/gcc-4.8/tgmath.h on sparc*. They are not
obsolete.
2015-08-12 21:56:27 +00:00
nakayama
cc667c64ac Remove obsolete directory ./usr/include/gcc-4.5 2015-08-12 21:55:05 +00:00
tsutsui
bcbfd9f8ca No need to have errno in a MD file. It's in MI src/sys/lib/libsa/errno.c. 2015-08-12 18:32:48 +00:00
dholland
b1828e0ba3 Hack up dinode usage to be 64 vs. 32 as needed. Part 1.
(This part changes the native lfs code; the ufs-derived code already
has 64 vs. 32 logic, but as aspects of it are unsafe, and don't
entirely interoperate cleanly with the lfs 64/32 stuff, pass 2 will be
rehashing that.)
2015-08-12 18:28:00 +00:00
dholland
1c8e2a4061 Make the inode number in the 64-bit dinode 64 bits wide, like the
other lfs64 on-disk inode numbers; I've been doing that since this is
a new format and we may as well take the opportunity. This does assume
that more than 4 billion files on a single volume becomes desirable;
but for an average file size of 10K all that takes is a 40 TB volume,
and it's not that hard to make one of those these days if you want to
badly enough.
2015-08-12 18:27:18 +00:00
dholland
e54b457c15 Provide 32-bit and 64-bit versions of FINFO.
This also entailed sorting out part of struct segment, as that
contains a pointer into the current FINFO data.
2015-08-12 18:27:01 +00:00
dholland
2e090556c4 Make 32-bit and 64-bit versions of SEGSUM.
Also fix some of the FINFO handling as it's closely entangled.
2015-08-12 18:26:26 +00:00
dholland
32577c4f1c Add IFILE32 and IFILE64 structures for the on-disk ifile entries.
Add and use accessors. There are also a bunch of places that cast and
I hope I've found them all...
2015-08-12 18:25:51 +00:00
dholland
f11e4edeba Make 32-bit and 64-bit versions of CLEANERINFO.
XXX: while this is written to disk, it seems like much of it would
XXX: be better set up as a commpage shared with the cleaner.
2015-08-12 18:25:03 +00:00
dholland
aaf6e0acef Widen several of the fields of BLOCK_INFO to 64 bits.
Keep the old BLOCK_INFO as BLOCK_INFO_70, and version the fcntls that
use it.

Note that BLOCK_INFO_70 has 64-bit padding issues so that it's
different on 32-bit and 64-bit machines. This has been fixed. However,
BLOCK_INFO also contains a pointer, so compat32 stuff for 32-on-64 is
still needed and doesn't currently exist.
2015-08-12 18:24:14 +00:00
dholland
e1e4bfc43e Fix botched syscall_package. HI CHRISTOS 2015-08-12 18:23:59 +00:00
dholland
104ce729d4 Move the security checks for lfs_bmapv/lfs_markv into those functions.
(instead of the system call entry points)

Avoids duplication.

While touching these, pass the lwp around instead of the proc -- the
latter was there for no other reason than because once upon a time
struct proc was the first argument of all syscalls.

(For that matter, why not just use curlwp instead of passing it around
all over the place? The cost of passing it to every syscall probably
exceeds the cost of loading it from curcpu, even on machines where
it's not just kept in a register all the time.)
2015-08-12 18:23:47 +00:00
dholland
17964a9f43 Fix assorted 64->32 truncations related to BLOCK_INFO.
Also make note of a cleaner limitation: it seems that when it goes to
coalesce discontiguous files, it mallocs an array with one BLOCK_INFO
for every block in the file. Therefore, with 64-bit LFS, on a 32-bit
platform it will be possible to have files large enough to overflow
the cleaner's address space. Currently these will be skipped and cause
warnings via syslog.

At some point someone should rewrite the logic to coalesce files to
use chunks of some reasonable size, as discontinuity between such
chunks is immaterial and mallocing this much space is silly and
fragile. Also, the kernel only accepts up to 65536 blocks at a time
for bmapv and markv, so processing more than this at once probably
isn't useful and may not even work currently. I don't want to change
this around just now as it's not entirely trivial.
2015-08-12 18:23:16 +00:00
tsutsui
37c170c28e Remove unused es message files. 2015-08-12 18:22:22 +00:00
tsutsui
7ec466b181 Drop ancient AOUT2ELF option. Saves ~280 bytes. 2015-08-12 18:20:02 +00:00
tsutsui
5b88d89ed6 Specify -DNDEBUG to remove assert(3) macro. Shaves instbin ~40 bytes. 2015-08-12 18:08:02 +00:00
tsutsui
1088923901 Try to shrink binary size a bit.
- omit usage of options in SMALLPROG case
- use bool instead of int where appropriate
- rely on zero-initialized-bss
2015-08-12 17:59:51 +00:00
tsutsui
6a40721f00 Make local functions static. 2015-08-12 17:53:03 +00:00
riastradh
6625d44d90 Need wapbl transaction around ffs_blkfree_cg. Fixes wapbl+discard. 2015-08-12 14:52:35 +00:00
maxv
e99716e305 Remove KMEMSTATS. 2015-08-12 07:53:56 +00:00
ozaki-r
f818671bf4 Move insane goto label 2015-08-12 07:13:14 +00:00
ozaki-r
972f005299 Tidy up header inclusions 2015-08-12 02:20:31 +00:00
pooka
2cecb63011 Fix handle typos/pastos in bus_space_barrier() calls 2015-08-11 22:28:34 +00:00
dholland
406388c702 SEE ALSO re_format(7). 2015-08-11 18:15:41 +00:00
apb
12054cebf1 zoneinfo: Import tzdata2015f. [apb 20150811] 2015-08-11 18:12:21 +00:00
apb
bac1668902 Update for tzdata2015f 2015-08-11 18:11:11 +00:00
apb
f15c02ef49 Update for tzdata2015f:
* Fix numbering in a comment;
* Update version numbers;
* Adjust a regex to recognise "Changes affecting.*data" without
  the word "format".
2015-08-11 18:10:13 +00:00
apb
fd53cdca36 Import tzdata2015f from ftp://ftp.iana.org/tz/releases/tzdata2015f.tar.gz
Summary of changes in tzdata2015f (2015-08-10 18:06:56 -0700):
  * North Korea switches to +0830 on 2015-08-15.
  * Uruguay no longer observes DST.
  * Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC.
  * The two characters '%z' in a zone format now stand for the UTC
    offset, e.g., '-07' for seven hours behind UTC and '+0530' for
    five hours and thirty minutes ahead.
  * Comments for America/Halifax and America/Glace_Bay have been improved.
  * Data entries have been simplified for Atlantic/Canary, Europe/Simferopol,
    Europe/Sofia, and Europe/Tallinn.
  * Changes affecting documentation.
2015-08-11 18:07:00 +00:00
prlw1
c71e0745a5 fix typos 2015-08-11 16:06:52 +00:00
nonaka
c9e00d7df0 armfpe is gone. 2015-08-11 13:12:25 +00:00
ozaki-r
aade6ffbb3 Fix double rtfree 2015-08-11 09:30:32 +00:00
ozaki-r
aa2414a0f0 Free rtentry when we successfully obtain it but return NULL 2015-08-11 08:27:08 +00:00
msaitoh
56d05a2e25 - Add X540.
- Remove HARDWARE list because it's difficult to maintain.
2015-08-11 04:25:13 +00:00