236423 Commits

Author SHA1 Message Date
skrll
6400b3cbc8 Lumix Camera DMC-FS45 from kern/49809 2015-07-03 13:15:54 +00:00
christos
dacd5c569a PR/50009: David CARLIER: Enhance strptime to fill out more fields when it
can. From FreeBSD.
2015-07-03 13:06:54 +00:00
joerg
3490cc6261 Add an explicit note about the search path used by dlopen(3). 2015-07-03 10:19:29 +00:00
christos
1ae3462030 PR/50021: Rin Okuyama: Fix linux affinity syscalls
XXX: pullup-7
2015-07-03 02:24:28 +00:00
christos
83f2fed54f new libssh 2015-07-03 01:00:59 +00:00
christos
4054ffb031 merge conflicts 2015-07-03 00:59:59 +00:00
christos
0cf1df15f6 Changes since OpenSSH 6.8
=========================

This is primarily a bugfix release.

Security
--------

 * ssh(1): when forwarding X11 connections with ForwardX11Trusted=no,
   connections made after ForwardX11Timeout expired could be permitted
   and no longer subject to XSECURITY restrictions because of an
   ineffective timeout check in ssh(1) coupled with "fail open"
   behaviour in the X11 server when clients attempted connections with
   expired credentials. This problem was reported by Jann Horn.

 * ssh-agent(1): fix weakness of agent locking (ssh-add -x) to
   password guessing by implementing an increasing failure delay,
   storing a salted hash of the password rather than the password
   itself and using a timing-safe comparison function for verifying
   unlock attempts. This problem was reported by Ryan Castellucci.

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

 * ssh(1), sshd(8): promote chacha20-poly1305@openssh.com to be the
   default cipher

 * sshd(8): support admin-specified arguments to AuthorizedKeysCommand;
   bz#2081

 * sshd(8): add AuthorizedPrincipalsCommand that allows retrieving
   authorized principals information from a subprocess rather than
   a file.

 * ssh(1), ssh-add(1): support PKCS#11 devices with external PIN
   entry devices bz#2240

 * sshd(8): allow GSSAPI host credential check to be relaxed for
   multihomed hosts via GSSAPIStrictAcceptorCheck option; bz#928

 * ssh-keygen(1): support "ssh-keygen -lF hostname" to search
   known_hosts and print key hashes rather than full keys.

 * ssh-agent(1): add -D flag to leave ssh-agent in foreground without
   enabling debug mode; bz#2381

Bugfixes
--------

 * ssh(1), sshd(8): deprecate legacy SSH2_MSG_KEX_DH_GEX_REQUEST_OLD
   message and do not try to use it against some 3rd-party SSH
   implementations that use it (older PuTTY, WinSCP).

 * Many fixes for problems caused by compile-time deactivation of
   SSH1 support (including bz#2369)

 * ssh(1), sshd(8): cap DH-GEX group size at 4Kbits for Cisco
   implementations as some would fail when attempting to use group
   sizes >4K; bz#2209

 * ssh(1): fix out-of-bound read in EscapeChar configuration option
   parsing; bz#2396

 * sshd(8): fix application of PermitTunnel, LoginGraceTime,
   AuthenticationMethods and StreamLocalBindMask options in Match
   blocks

 * ssh(1), sshd(8): improve disconnection message on TCP reset;
   bz#2257

 * ssh(1): remove failed remote forwards established by muliplexing
   from the list of active forwards; bz#2363

 * sshd(8): make parsing of authorized_keys "environment=" options
   independent of PermitUserEnv being enabled; bz#2329

 * sshd(8): fix post-auth crash with permitopen=none; bz#2355

 * ssh(1), ssh-add(1), ssh-keygen(1): allow new-format private keys
   to be encrypted with AEAD ciphers; bz#2366

 * ssh(1): allow ListenAddress, Port and AddressFamily configuration
   options to appear in any order; bz#86

 * sshd(8): check for and reject missing arguments for VersionAddendum
   and ForceCommand; bz#2281

 * ssh(1), sshd(8): don't treat unknown certificate extensions as
   fatal; bz#2387

 * ssh-keygen(1): make stdout and stderr output consistent; bz#2325

 * ssh(1): mention missing DISPLAY environment in debug log when X11
   forwarding requested; bz#1682

 * sshd(8): correctly record login when UseLogin is set; bz#378

 * sshd(8): Add some missing options to sshd -T output and fix output
   of VersionAddendum and HostCertificate. bz#2346

 * Document and improve consistency of options that accept a "none"
   argument" TrustedUserCAKeys, RevokedKeys (bz#2382),
   AuthorizedPrincipalsFile (bz#2288)

 * ssh(1): include remote username in debug output; bz#2368

 * sshd(8): avoid compatibility problem with some versions of Tera
   Term, which would crash when they received the hostkeys notification
   message (hostkeys-00@openssh.com)

 * sshd(8): mention ssh-keygen -E as useful when comparing legacy MD5
   host key fingerprints; bz#2332

 * ssh(1): clarify pseudo-terminal request behaviour and use make
   manual language consistent; bz#1716

 * ssh(1): document that the TERM environment variable is not subject
   to SendEnv and AcceptEnv; bz#2386
2015-07-03 00:54:44 +00:00
christos
dcdbe6c789 td_close() needs to be able to write to the process image, so call sooner,
before we detach from it.
2015-07-02 14:54:42 +00:00
martin
6fb47df388 PR install/50020: postinstall does not check for mandoc in /etc/man.conf.
Add a check, but ask the user to fix manually (the file could have local
modifications).
2015-07-02 09:53:12 +00:00
martin
64fd3ef0cf Simplify previous, pass awk as TOOL_AWK (that is what the makefile uses),
create an obj dir for make and force it to use that.
This version now works with read-only source again.
2015-07-02 09:31:56 +00:00
skrll
ce5468ed85 Somehow the ; disappeared from the previouis commit 2015-07-02 09:05:06 +00:00
skrll
07c0a8b173 From FreeBSD rev1.30 via OpenBSD:
- always initialise the pipe multiplier to a valid value
 - do not unchain the the interrupt QHs immediately after initialisation

Prompted by msaitoh
2015-07-02 08:35:44 +00:00
skrll
26266cdb17 Use armreg_*_{read,write} instead of handcrafted asm
No functional change.
2015-07-02 08:33:31 +00:00
msaitoh
5045f81c96 Fix bus clock for Airmont from the latest Intel SDM. 2015-07-02 05:11:50 +00:00
christos
a42548a2aa document PIOD_READ_AUXV. 2015-07-02 03:50:21 +00:00
christos
171790237c Support PIOD_READ_AUXV so that gdb can handle PIE binaries. From OpenBSD. 2015-07-02 03:47:54 +00:00
christos
2598b316f9 fix lint sets. 2015-07-01 18:18:00 +00:00
msaitoh
a62e5a29f2 Add Xeon E5-4600 v3, Xeon E3-1200 v4 etc. from the latest Intel SDM. 2015-07-01 15:46:26 +00:00
christos
fc699016d0 remove lint hack. 2015-07-01 15:38:56 +00:00
christos
df62f42666 new test 2015-07-01 15:37:35 +00:00
christos
6aa5718835 new test. 2015-07-01 15:36:44 +00:00
christos
fc4b744883 Fix segmentation fault caused by freeing prematurely function parameter types
inside cast expressions.
2015-07-01 15:34:30 +00:00
martin
c365a0b724 Clean up the src/etc/mtree directory after using it to generate the mtree
spec file.
XXX this is fishy, we should find a better way.
2015-07-01 12:40:07 +00:00
ozaki-r
5fbfc68952 Add tests of interface creation/destruction 2015-07-01 08:33:31 +00:00
hannken
418d71fb1c Unfortunately MFS uses v_data of its anonymous device vnode so
it cannot be used as vcache key.  Use v_interlock as key ...
2015-07-01 08:13:52 +00:00
dholland
3b1701b0a5 Repair accidental regression in -r1.49: for -a mode, don't allow
calendars to be other than regular files unless the -x option is in
effect.

(If not in -a mode, we're running purely as the user whose calendar it
is and if they want to DoS themselves with named pipes it's their own
lookout.)
2015-07-01 06:48:25 +00:00
dholland
c1180ac6a1 Correct privilege handling problems in calendar -a (which runs as root
from /etc/daily); do not exec other programs while the real uid is
still 0.

Also, clear the supplementary groups list up front and call initgroups
when becoming another user, to avoid leaking any extra group
privileges that we might have.

And finally, don't silently ignore errors changing uid and gid; those
are serious if they happen.
2015-07-01 06:45:51 +00:00
ozaki-r
f81368b844 Use ip_hresolv_output for if_token as well
I thought we cannot apply ip_hresolv_output to if_token because
rt0 looked being needed by arpresolve in token_output. However,
rt0 is actually not used by arpresolve in NetBSD (see obsolete
ARPRESOLVE macro).
2015-07-01 03:39:36 +00:00
wiz
e485731cb1 Bump date for previous. Add whitespace.
Fix some mandoc warnings.
2015-06-30 22:16:12 +00:00
christos
5eab5ca5f2 handle PIC compilation (if we are building a PIE system; this is used by tests) 2015-06-30 21:08:24 +00:00
sborrill
9a9013c60c Clarify that what was previously known as -A root is now -A forceroot, not
-A softroot and that -A root can still be used for historical reasons.
2015-06-30 17:18:13 +00:00
sborrill
06ac39463d Compare correct length string for force option to -A 2015-06-30 17:02:14 +00:00
skrll
c186ced2aa Fix logic inversion in 1.107 2015-06-30 13:30:50 +00:00
christos
8661aac84a whitespace police. 2015-06-30 11:56:27 +00:00
martin
17ea7bcab8 Allow /var/shm to be a symlink to a properly set up directory. 2015-06-30 11:46:47 +00:00
ozaki-r
452d01ddfd Use KASSERT for argument NULL checks 2015-06-30 08:31:42 +00:00
ozaki-r
eeab7eecc6 Fix nd6_numroutes counting
nd6_numroutes is intended to be incremented when a route is added via RA
and decremented when a RA route is deleted. However, a decrement of a RA
route was skipped when there remained references to the RA route.
2015-06-30 06:42:06 +00:00
hannken
af0e5d04e4 Redo previous again, v_specnode is invariant but not unique.
Set "vp->v_data = vp" and use v_data as key.
2015-06-30 06:19:21 +00:00
martin
90ce5da580 Fix reversed arguments in copyin(9), c.f. kern/sys_mqueue.c rev 1.39. 2015-06-30 06:01:04 +00:00
matt
058f198b88 Make vmparam.h change work with RUMP 2015-06-30 04:20:19 +00:00
macallan
4c1a8dc139 don't mess with the cycle counter event counter, out timer interrupt comes
from elsewhere and is counted there
2015-06-30 04:10:10 +00:00
macallan
65162b9f2d shorten the interrupt name so the level field is actually readable in systat 2015-06-30 03:55:23 +00:00
macallan
4762e3e045 don't map the framebuffer as cacheable 2015-06-30 03:52:54 +00:00
matt
ca102c6db5 We support multiple page sizes so let modules know it. 2015-06-30 03:41:04 +00:00
matt
4732ca2c1e Use cpu_startup_common() 2015-06-30 02:39:03 +00:00
matt
e18587463a use cpu_startup_common 2015-06-29 17:52:53 +00:00
hannken
c6ee9f5027 Use the address of vp->v_specnode as vcache key. It is invariant
over the lifetime of the vnode.

The previous worked by luck, it took the first sizeof(void *) bytes
of struct vnode as key.

Resolves CID 1308957: wrong sizeof()
2015-06-29 16:48:20 +00:00
maxv
b5a733cae1 Remove a dead branch. Could look like a memory leak, but ih cannot be
NULL.

Found by Brainy.
2015-06-29 16:36:17 +00:00
christos
3c9a847ffa Revert previous, and explain why. 2015-06-29 16:25:49 +00:00
skrll
7270a09d72 Typos 2015-06-29 16:20:14 +00:00