199901 Commits

Author SHA1 Message Date
brueffer
2de7e645f9 MFC: r285543
Add a missing break statement, which made the code default to IPv6.

PR:		201285
Submitted by:	David Binderman
Approved by:	re (gjb)
2015-07-22 15:39:41 +00:00
hiren
141df3ac09 MFC r284941:
Avoid a situation where we do not set persist timer after a zero window
condition.
If you send a 0-length packet, but there is data is the socket buffer, and
neither the rexmt or persist timer is already set, then activate the persist
timer.

PR:		192599
Approved by:	re (delphij)
2015-07-22 15:05:45 +00:00
delphij
457165363e Fix resource exhaustion due to sessions stuck in LAST_ACK state.
Security:	CVE-2015-5358
Security:	SA-15:13.tcp
Submitted by:	Jonathan Looney (Juniper SIRT)
Approved by:	re (so blanket)
2015-07-21 23:42:17 +00:00
allanjude
c704c25de7 MFC: r285679
Add auto-detecting workaround for Lenovo GPT boot issue
	Add auto-detecting workaround for "GPT Active" boot issue
	Allow user to select partitioning scheme in the ufs wizard

PR:		184910
PR:		194359
Approved by:	re (gjb), marcel
Relnotes:	yes
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D3144
2015-07-21 21:12:28 +00:00
hiren
e21e1ce198 Partial MFC of r285528 as full RSS support is not available in FreeBSD 10.
Expose full 32bit RSS hash from card regardless of whether RSS is defined or
not. When doing multiqueue, we are all setup to have full 32bit RSS hash from
the card. We do not need to hide that under "ifdef RSS" and should expose that
by default so others like lagg(4) can use that and avoid hashing the traffic by
themselves.

Approved by:	    re (gjb)
Sponsored by:	    Limelight Networks
2015-07-21 19:41:39 +00:00
pkelsey
04fd70b7f2 MFC r285567:
Check TCP timestamp option flag so that the automatic receive buffer
scaling code does not use an uninitialized timestamp echo reply value
from the stack when timestamps are not enabled.

Approved by: re (gjb)
2015-07-21 18:38:31 +00:00
markj
84c91edd53 MFC r285663, r285664, r285667:
Ensure that locstat_nsecs() has no effect when lockstat probes are not
enabled or when the profiled lock carries the LO_NOPROFILE flag.

PR:		201642, 201517
Approved by:	re (gjb)
Tested by:	Jason Unovitch
2015-07-21 17:16:37 +00:00
allanjude
10c80a84da MFC: r285594
New partition flag for gpart, writes the 0xee partition in the pmbr in the second slot, rather than the first.
	Works around Lenovo legacy GPT boot issue

PR:		184910
Approved by:	re (gjb), marcel
Relnotes:	yes
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D3140
2015-07-21 15:50:14 +00:00
kib
90d01ac9ea Revert r284178 and r284256.
Approved by:	re (gjb)
2015-07-21 15:06:22 +00:00
vangyzen
4b34a47d4c MFC r285642
ssh: canonicize the host name before looking it up in the host file

Re-apply r99054 by des in 2002. This was accidentally dropped
by the update to OpenSSH 6.5p1 (r261320).

This change is actually taken from r387082 of
ports/security/openssh-portable/files/patch-ssh.c

Differential Revision: https://reviews.freebsd.org/D3103
PR:		198043
Approved by:	re (gjb), kib (mentor)
Sponsored by:	Dell Inc.
Relnotes:	yes
2015-07-21 14:36:33 +00:00
brueffer
dbae220f09 MFC: r285529
If ggated's exports_find() fails, the connection is removed before
(trying to) report the problem to the client.

sendfail() is called with an already closed socket and thus it
fails to inform the client about the problem.

Fix this by calling sendfail() before connection_remove().

PR:		195944
Submitted by:	Fabian Keil
Reviewed by:	pjd
Approved by:	re (gjb)
2015-07-21 14:27:36 +00:00
brueffer
77896922f6 MFC: r285531
Unbreak ggatec and ggatel on i386 after r238119, which added two more
'struct g_gate_ctl_create' fields.

While the behaviour was technically undefined on other architectures
as well, on the reporter's amd64 systems the uninitialized bytes the
kernel cares about were always zero so everything worked as expected.

PR:		197309, 199559
Submitted by:	ota@j.email.ne.jp, Fabian Keil
Reviewed by:	pjd
Approved by:	re (gjb)
2015-07-21 14:25:21 +00:00
royger
0dafb147a9 MFC: r284296
xen-blk{front/back}: remove broken FreeBSD extensions

Approved by: re (gjb)
2015-07-21 07:22:18 +00:00
royger
1266acc975 MFC: r285089
netfront: preserve configuration across migrations

Approved by: re (gjb)
2015-07-21 07:20:02 +00:00
hiren
2fc2987135 Fix a typo in r285668. Replace hw.ixgbe.* with correct hw.ix.* for a couple of
sysctls.

Approved by:	re (gjb)
Sponsored by:	Limelight Networks
2015-07-21 00:31:13 +00:00
allanjude
e644fa27a1 MFC: r277949:
New function smbios_match to detect BIOS versions during boot

MFC: r277957:
	Fix order of functions in smbios.c (corrects r277949)

MFC: r281138:
	SMBIOS support for EFI

r281138 makes changes to the new unified EFI loader (r280950), which has not been merged to stable/10 (and likely won't be).
These changes were manually applied to the amd64 EFI loader (sys/boot/amd64/efi).
The changes to sys/boot/amd64/efi are a direct commit.

Reviewed by:	stas
Approved by:	re (gjb), marcel
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D3129
2015-07-20 22:14:55 +00:00
gjb
70968cfdb6 MFC r285253 (hrs):
- Add IPv6 support in quota(1).  While rpc.rquotad has supported
   PF_INET6 for a long time, quota(1) utility supported only PF_INET.
 - Clean up confusing changes in f_mntfromname.
 - Add an entry for rquotad with rpc/udp6 to inetd.conf.

PR:		194084
Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
2015-07-20 21:52:05 +00:00
svnmir
9c3b950c98 MFC: r285482
A variable was misspelled resulting in chmod executing on the installer instead of on the target chroot

PR:	191402

MFC:	r285553
	make /var/audit its own dataset so it is not part of the OS boot environment

PR:	199864

MFC:	r285554
	Set a mountpoint on the root of the pool so user-created datasets have a mountpoint to inherit

MFC:	r285557
	Make bsdinstall's zfsboot script align partitions to 4k/1m when the user requests it

PR:	195174

Approved by:	re (gjb), brueffer
Relnotes:	yes
Sponsored by:	ScaleEngine Inc.
2015-07-20 16:17:53 +00:00
brueffer
332926e663 MFC: r285457
Don't claim c99 is a wrapper around gcc; it's a wrapper around the system
cc.

PR:             201303
Submitted by:   Bruce Cran
Approved by:    re (gjb)
2015-07-20 14:40:34 +00:00
jpaetzel
91cc8a35f0 MFC 278040:
Prevent inlining txg_quiesce

This allows dtrace to monitor the calls to txg_quiesce which can be
really helpful.

Also standardize __noinline order for arc_kmem_reap_now.

Sponsored by:	Multiplay

Approved by:	re
2015-07-20 14:38:40 +00:00
hiren
a22599dcad Loader tunable fetching has been broken on stable/10 since ix(4) rewrite
introduced by r280182. FreeBSD-head doesn't need TUNABLE_INT() now with
SYSCTL_INT() but stable/10 still does.
Note: This is a direct commit to stable/10.

PR:		201644
Reviewed by:	erj
Approved by:	re (gjb)
Sponsored by:	Limelight Networks
2015-07-18 04:49:36 +00:00
pkelsey
8515ac5674 MFC r285275 (only the part that fixes PR 199568):
Obtain proper capsicum rights for dump files so rotation of such files works when requested.  This is equivalent to cherry picking the following upstream commits:

commit c6d472bf63488b0c2ab7ab9f4b32c68dd2c8ea2b
commit f08eb851eedf9775e6485ab75c0d8cf8d1306be6
commit d83a284abc80d3d09f6bddd087760bb1b01d9cc7

PR: 		199568
Approved by:	re
2015-07-18 01:29:27 +00:00
gjb
752b1ca18b Update stable/10 to BETA2 in preparation for 10.2-BETA2 builds.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-17 00:00:04 +00:00
kib
dfb797a5f0 MFC r284207 (by alc):
Correct a type error in kmem_unback().

Requested by:	alc
Approved by:	re (gjb)
2015-07-16 15:13:17 +00:00
kib
83cf60b07d MFC r276439 (by alc):
Make the creation of the free lists dynamic, i.e., it is based on the
available physical memory at boot time. For amd64 systems with 64 GB
or more of physical memory, create free lists for managing pages with
physical addresses below 4 GB.

PR:	185727
Requested by:	alc
Approved by:	re (gjb)
2015-07-16 14:41:58 +00:00
ae
1392531c0f MFC r285204:
Fill the port and protocol information in the SADB_ACQUIRE message
  in case when security policy has it as required by RFC 2367.

  PR:		192774

Approved by:	re (delphij)
2015-07-15 21:09:38 +00:00
delphij
023ccaf9ce Document r285612, MFC of ntp 4.2.8p3.
Approved by:	re (gjb)
2015-07-15 19:38:14 +00:00
delphij
2a25cee78a MFC r280849,280915-280916,281015-281016,282097,282408,282415,283542,
284864,285169-285170,285435:

ntp 4.2.8p3.

Relnotes:	yes
Approved by:	re (?)
2015-07-15 19:21:26 +00:00
delphij
a0741a7553 MFC r285424 (ian):
Use the monotonic (uptime) counter rather than time-of-day to measure
elapsed time between ntp_adjtime() clock offset adjustments.  This
eliminates spurious frequency steering after a large clock step (such
as a 1970->2015 step on a system with no battery-backed clock hardware).

This problem was discovered after the import of ntpd 4.2.8, which does
things in a slightly different (but still correct) order than the 4.2.4
we had previously.  In particular, 4.2.4 would step the clock then
immediately after use ntp_adjtime() to set the frequency and offset to
zero, which captured the post-step time-of-day as a side effect.  In
4.2.8, ntpd sets frequency and offset to zero before any initial clock
step, capturing the time as 1970-ish, then when it next calls
ntp_adjtime() it's with a non-zero offset measurement. This non-zero
value gets multiplied by the apparent 45-year interval, which blows up
into a completely bogus frequency steer.  That gets clamped to 500ppm,
but that's still enough to make the clock drift so fast that ntpd has
to keep stepping it every few minutes to compensate.

Approved by:	re (gjb)
2015-07-15 19:11:43 +00:00
gjb
11002a31ef MFC r285427:
Do not mount /var/log and /var/tmp as md(4)-backed devices.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2015-07-15 18:18:07 +00:00
brueffer
7422eac7e1 MFC: r261495 by ed
Use right buffer to print to.

PR:		kern/176597
Submitted by:	Christoph Mallon <christoph mallon gmx de>
Approved by:	re (gjb)
2015-07-15 17:43:13 +00:00
pkelsey
bc26e9b8dc MFC r285190:
Fix if_loop so bpfwrite() can use it regardless of the state of
bd_hdrcmplt.  As if_loop does not use link-level headers, its behavior
when used by bpfwrite() should be the same regardless of the state of
bd_hdrcmplt.  Without this change, libpcap (and other BPF users that
work like it) fail when writing to loopback interfaces.

Approved by: re
2015-07-15 16:57:40 +00:00
pkelsey
df980625bb MFC r285188:
Fix sysctl(3) so it returns the intended values for all mib names in
the 'user' sysctl tree, which have all been coming back 0 or empty
since r240176.

Approved by: re
2015-07-15 16:55:56 +00:00
brueffer
8a1877efc7 MFC: r277218, r277219, r280572, r280573, r280574
Add manpages for the ixl and ixlv drivers.

PR:		194313
Approved by:	re (marius)
2015-07-15 16:47:13 +00:00
brueffer
8ed5249cad MFC: r285006
Use the correct le*dec function to decode a 16bit type.

PR:		194228
Submitted by:	David Horwitt
Approved by:	re (marius)
2015-07-15 11:58:30 +00:00
gjb
14800f2c02 Remove the r283505 entry for now, pending refinement based
on feedback from andrew@ and ian@.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 23:41:19 +00:00
gjb
551128af36 Document r284096, dtb module for AM335x systems
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 21:46:12 +00:00
gjb
12f3ea2c4f Document r284094, rpi.dtb module and installation default.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 21:46:09 +00:00
gjb
18d6fe02dc Document r284555, sfxge(4) 7XXX-series NIC support.
Add Solarflare Communications to sponsors.ent.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 21:46:06 +00:00
gjb
642cd8edb0 Document r282826, SIFTR kernel configuration option.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 21:46:03 +00:00
gjb
1736d24de9 Document r282065, PAE_TABLES option.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 21:46:00 +00:00
gjb
72e58da01b Document r275249, timeo, actimeo, noac, proto mount_nfs(8) options.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 21:45:58 +00:00
gjb
c440e1745d Reword the r283505 entry.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 20:10:41 +00:00
gjb
ff1449e1ab Document r281323, bzipfs support in EFI loader.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 20:10:39 +00:00
gjb
328da9c29d Document r283505, relocatable kernel and ubldr.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 20:10:36 +00:00
gjb
b842b22b36 Document r283500: Toradex Apalis support, and AUDMUX, SDMA, and
SSI support.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 20:10:34 +00:00
gjb
008eea70ec Document r278599, support for Exynos 5420 and SMP enabled
by default.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 20:10:31 +00:00
gjb
cbe8956737 Document r278079, support to poweroff the BeagleBone Black via
shutdown(8) and poweroff(8) added.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 20:10:29 +00:00
gjb
6c773df886 Fix another typo. Sigh.
Submitted by:	brueffer
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 17:01:55 +00:00
gjb
b6d8dba032 Document r284499, cdce(4) support for RTL8153 chipset.
Submitted by:	Ben Woods
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2015-07-14 16:57:14 +00:00