]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r293357:
garga [Thu, 14 Jan 2016 14:21:43 +0000 (14:21 +0000)]
MFC r293357:

Obsolete inetd related files when WITHOUT_INETD is set

Reviewed by: bapt
Approved by: gnn
Sponsored by: Rubiconn Communications (Netgate)
Differential Revision: https://reviews.freebsd.org/D4742

git-svn-id: svn://svn.freebsd.org/base/stable/10@293932 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291570
arybchik [Thu, 14 Jan 2016 14:20:33 +0000 (14:20 +0000)]
MFC r291570

sfxge: added setting TSO-related parameters

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293931 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291569
arybchik [Thu, 14 Jan 2016 14:19:03 +0000 (14:19 +0000)]
MFC r291569

sfxge: avoid TSO packets collapses if packet header uses 2 segments

It is really observed in the case of VLAN over sfxge interface.
Also this change makes total value equal to 35 which is default assumed
by the kernel for if_hw_tsomaxsegcount.

Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293930 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293312:
garga [Thu, 14 Jan 2016 14:18:10 +0000 (14:18 +0000)]
MFC r293312:

Make cap_mkdb and services_mkdb file operations sync

Similar fix was done for passwd and group operations in r285050. When a
temporary file is created and then renamed to replace official file there
are no checks to make sure data was written to disk and if a power cycle
happens at this time, system can end up with a 0 length file

Approved by: bapt
Sponsored by: Netgate
Differential Revision: https://reviews.freebsd.org/D2982

git-svn-id: svn://svn.freebsd.org/base/stable/10@293929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291488
arybchik [Thu, 14 Jan 2016 14:17:05 +0000 (14:17 +0000)]
MFC r291488

sfxge: avoid TSO packets collapses bacause of not 2K aligned data

Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291436
arybchik [Thu, 14 Jan 2016 14:16:26 +0000 (14:16 +0000)]
MFC r291436

sfxge: add prefast annotation to common code return types

Using a typedef for common code return types (rather than "int")
allows the Prefast static analyser to understand when a function
has been successful (and thus when its postconditions must hold).

This greatly reduces then number of false positives reported by
prefast for error paths in common code functions.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291434
arybchik [Thu, 14 Jan 2016 14:15:07 +0000 (14:15 +0000)]
MFC r291434

sfxge: cleanup: fix prefast annotations on mac stats updates

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293926 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291432
arybchik [Thu, 14 Jan 2016 14:14:00 +0000 (14:14 +0000)]
MFC r291432

sfxge: modify nvram update functions for uio platform to support
RFID-selectable presets

Dynamic config partitions on boards that support RFID are divided into
a number of segments, each formatted like a partition, with header,
trailer and end tags. The first segment is the current active
configuration.

The segments are initialised by manftest and each contain a different
configuration e.g. firmware variant. The firmware can be instructed
via RFID to copy a segment over the first segment, hence changing the
active configuration. This allows ops to change the configuration of
a board prior to shipment using RFID.

Changes to the dynamic config may need to be written to all segments (in
particular firmware versions written by manftest) or just the first
segment (changes to the active configuration). See SF-111324-SW.
If only the first segment is written the code still needs to be aware of
the possible presence of subsequent segments as writing to a segment may
cause its size to increase, which would overwrite the subsequent
segments and invalidate them.

Boards that do not support RFID will only have one segment in their
dynamic config partition.

Submitted by:   Paul Fox <pfox at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291398
arybchik [Thu, 14 Jan 2016 14:13:13 +0000 (14:13 +0000)]
MFC r291398

sfxge: cleanup: report error on failure path in efx_vpd_hunk_verify

If the VPD is corrupt and contains an 'RV' keyword before the
END tag, then this function could return without setting the
return code to report the error.

Found by prefast.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291397
arybchik [Thu, 14 Jan 2016 14:11:56 +0000 (14:11 +0000)]
MFC r291397

sfxge: cleanup: fix prefast annotations on mac stats updates

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293923 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291396
arybchik [Thu, 14 Jan 2016 14:10:28 +0000 (14:10 +0000)]
MFC r291396

sfxge: fix prefast warning in falconsiena_tx_qcreate

Keep prefast happy by returning the initial queue index
from falconsiena_tx_qcreate(). No change in behaviour, as
etxo_qcreate already zeros *addedp before the call.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291395
arybchik [Thu, 14 Jan 2016 14:09:40 +0000 (14:09 +0000)]
MFC r291395

sfxge: cleanup: fix prefast annotations for stats buffers

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291394
arybchik [Thu, 14 Jan 2016 14:08:57 +0000 (14:08 +0000)]
MFC r291394

sfxge: unlink PIO buffers from VIs in WC mapping in hunt_nic_fini()

PIO is not yet supported in the FreeBSD driver.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291393
arybchik [Thu, 14 Jan 2016 14:08:13 +0000 (14:08 +0000)]
MFC r291393

sfxge: infer external port numbering for Pavia

Adjust external port mapping table to distinguish Pavia from Monza.
Now the presence of any 40G mode implies at least 2 outputs per
external port.  So Pavia 4x10G ports are now mapped to 1,2,3,4;
Monza 4x10G ports map to 1,1,2,2 as before.

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291392
arybchik [Thu, 14 Jan 2016 14:05:00 +0000 (14:05 +0000)]
MFC r291392

sfxge: cleanup: fix prefast annotation

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291391
arybchik [Thu, 14 Jan 2016 14:04:08 +0000 (14:04 +0000)]
MFC r291391

sfxge: do not use unnamed union in siena_mc_combo_rom_hdr_t

GCC 4.2.1 used on FreeBSD 8 and 9 branches does not like unnamed
union member in the structure. It is not strictly required in head,
but nice to have to minimize difference with out-of-tree driver.

Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r291390
arybchik [Thu, 14 Jan 2016 14:03:05 +0000 (14:03 +0000)]
MFC r291390

sfxge: cleanup: error probe correction

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDocument EN-16:01, EN-16:02, EN-16:03, SA-15:27, SA-16:01,
gjb [Thu, 14 Jan 2016 11:11:46 +0000 (11:11 +0000)]
Document EN-16:01, EN-16:02, EN-16:03, SA-15:27, SA-16:01,
SA-16:02, SA-16:03, SA-16:04, SA-16:05, SA-16:06.

Bump copyright date.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293912 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoo Fix SCTP ICMPv6 error message vulnerability. [SA-16:01.sctp]
glebius [Thu, 14 Jan 2016 09:11:42 +0000 (09:11 +0000)]
o Fix SCTP ICMPv6 error message vulnerability. [SA-16:01.sctp]
o Fix Linux compatibility layer incorrect futex handling. [SA-16:03.linux]
o Fix Linux compatibility layer setgroups(2) system call. [SA-16:04.linux]
o Fix TCP MD5 signature denial of service. [SA-16:05.tcp]
o Fix insecure default bsnmpd.conf permissions. [SA-16:06.bsnmpd]

Security: FreeBSD-SA-16:01.sctp, CVE-2016-1879
Security: FreeBSD-SA-16:03.linux, CVE-2016-1880
Security: FreeBSD-SA-16:04.linux, CVE-2016-1881
Security: FreeBSD-SA-16:05.tcp, CVE-2016-1882
Security: FreeBSD-SA-16:06.bsnmpd, CVE-2015-5677

git-svn-id: svn://svn.freebsd.org/base/stable/10@293897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoConvert usr.sbin/sesutil to LPADD/DPADD for stable/10
allanjude [Thu, 14 Jan 2016 04:25:29 +0000 (04:25 +0000)]
Convert usr.sbin/sesutil to LPADD/DPADD for stable/10

Direct commit to stable/10

Pointy Hat To: allanjude

git-svn-id: svn://svn.freebsd.org/base/stable/10@293876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293683:
pfg [Thu, 14 Jan 2016 01:50:06 +0000 (01:50 +0000)]
MFC r293683:
ext4: mount panic from freeing invalid pointers

Initialize the struct with those fields to zeroes on allocation,
preventing the panic.

Patch by: Damjan Jovanovic.

PR: 206056

git-svn-id: svn://svn.freebsd.org/base/stable/10@293866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r287473
allanjude [Thu, 14 Jan 2016 01:42:09 +0000 (01:42 +0000)]
MFC: r287473
  Add the new sesutil(8) utility for managing SCSI Enclosure Services (SES) device.

MFC: r287493
  Fix iteration bug

MFC: r287485, r287494, r287992
  Please the angry gcc 4.2 gods

MFC: r287988
  Improve and expand sesutil(8)

  Return an error if no matching device is found
  Locate can address a slot, in addition to a drive
  Added fault, similar to locate but blinks a different LED
  Added the map command, lists all devices connected to the SES controller
  Added the status command, overall status of the SES controller

MFC: r292092
  sesutil: fix map not printing the status of the LED device in an array

MFC: r292093
  sesutil: pass the correct element type when printing the SES map

MFC: r292121
  sesutil: Add extra information specific to some SES devices to sesutil map

MFC: r292122
  Fix sesutil locate when a sesid is passed to locate command

MFC: r292262
  Show the enclosure name and id in sesutil map

Relnotes: yes
Sponsored by: Gandi.net
Sponsored by: ScaleEngine Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293865 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 293452:
gjb [Thu, 14 Jan 2016 00:26:31 +0000 (00:26 +0000)]
MFC 293452:
  Set FORCE_PKG_REGISTER=1 when installing packages to avoid failures
  when re-using build chroot(8) environments.

PR: 205998
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293859 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agodrm/i915: Remove "Attempting to unbind pinned buffer" message
dumbbell [Wed, 13 Jan 2016 21:56:48 +0000 (21:56 +0000)]
drm/i915: Remove "Attempting to unbind pinned buffer" message

This error message is removed in later versions of Linux and currently,
it spams users.

PR: 200712
MFC of: r289109

git-svn-id: svn://svn.freebsd.org/base/stable/10@293857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r292943, r292960
marius [Wed, 13 Jan 2016 21:38:52 +0000 (21:38 +0000)]
MFC: r292943, r292960

- (Ab)use udivx for dividing the u_int pc_cpuid when implementing
  CPU_ISSET(), CPU_SET() etc. in sparc64 asm. This approach has the
  benefit of not clobbering %y, allowing to revert r222827 and
  partially r222828.
- In r222828, CATR() already was changed to use the equivalent of
  PCPU_GET(cpuid) instead of the MD module ID for KTR_MASK, so
  belatedly also catch up with KTR_CPU and the C side of ktr(9).
  Originally, in r203838 CATR() was moved away from directly reading
  the module ID or equivalent as that became impractical with other
  CPU types than USI/II supported. With r222828 in place, per-CPU
  data generally is set up soon enough, though, that employing
  PCPU things in ktr(9) also for use during early stages works.
- Unfortunately, an exception to the latter is the ktr(9) use
  in pmap_bootstrap(), which actually is run so early that even
  checking for bootverbose being set via the loader doesn't work.
  Consequently, replace the ktr(9) use in pmap_bootstrap() with
  OF_printf(9) and put it under #ifdef DIAGNOSTIC instead.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293853 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292861:
delphij [Wed, 13 Jan 2016 08:22:53 +0000 (08:22 +0000)]
MFC r292861:

hyperv: vmbus: run non-blocking message handlers in vmbus_msg_swintr()

We'll remove the per-channel control_work_queue because it can't properly
do serialization of message handling, e.g., when there are 2 NIC devices,
vmbus_channel_on_offer() -> hv_queue_work_item() has a race condition:
for an SMP VM, vmbus_channel_process_offer() can run concurrently on
different CPUs and if the second NIC's
vmbus_channel_process_offer() -> hv_vmbus_child_device_register() runs
first, the second NIC's name will be hn0 and the first NIC's name will
be hn1!

We can fix the race condition by removing the per-channel control_work_queue
and run all the message handlers in the global
hv_vmbus_g_connection.work_queue -- we'll do this in the next patch.

With the coming next patch, we have to run the non-blocking handlers
directly in the kernel thread vmbus_msg_swintr(), because the special
handling of sub-channel: when a sub-channel (e.g., of the storvsc driver)
is received and being handled in vmbus_channel_on_offer() running on the
global hv_vmbus_g_connection.work_queue, vmbus_channel_process_offer()
invokes channel->sc_creation_callback, i.e., storvsc_handle_sc_creation,
and the callback will invoke hv_vmbus_channel_open() -> hv_vmbus_post_message
and expect a further reply from the host, but the handling of the further
messag can't be done because the current message's handling hasn't finished
yet; as result, hv_vmbus_channel_open() -> sema_timedwait() will time out
and th device can't work.

Also renamed the handler type from hv_pfn_channel_msg_handler to
vmbus_msg_handler: the 'pfn' and 'channel' in the old name make no sense.

Submitted by: Dexuan Cui <decui microsoft com>
Reviewed by:  royger
Differential Revision:        https://reviews.freebsd.org/D4596

MFC r292859:

hyperv: vmbus: remove the per-channel control_work_queue

Now vmbus_channel_on_offer() -> vmbus_channel_process_offer() can
safely run on the global hv_vmbus_g_connection.work_queue now.

We remove the per-channel control_work_queue to achieve the proper
serialization of the message handling.

I removed the bogus TODO in vmbus_channel_on_offer(): a vmbus offer
can only come from the parent partition, i.e., the host.

PR:           kern/205156
Submitted by: Dexuan Cui <decui microsoft com>
Reviewed by:  Howard Su <howard0su gmail com>, delphij
Differential Revision:        https://reviews.freebsd.org/D4597

git-svn-id: svn://svn.freebsd.org/base/stable/10@293820 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r293001
allanjude [Wed, 13 Jan 2016 01:50:02 +0000 (01:50 +0000)]
MFC: r293001
  Introduce the ZFS Boot Environments menu to the loader menu

MFC: r293414
  Add ZFS Boot Environments menu to userboot

MFC: r293454
  Only call init_zfs_bootenv when the system is booted with ZFS

MFC: r293612
  Fix calling init_zfs_bootenv to early, resulting in empty ZFS BE menu

Relnotes: yes
Sponsored by: ScaleEngine Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293802 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293491:
kevlo [Wed, 13 Jan 2016 01:32:04 +0000 (01:32 +0000)]
MFC r293491:
- Add the definition of CHARCLASS_NAME_MAX, as per POSIX.1-2001.
- Avoid namespace pollution and move definitions of _POSIX2_CHARCLASS_NAME_MAX
  and _POSIX2_COLL_WEIGHTS_MAX into the .2001 section.
  With input from bde.

Reviewed by: bde

git-svn-id: svn://svn.freebsd.org/base/stable/10@293800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292639
davidcs [Tue, 12 Jan 2016 23:16:27 +0000 (23:16 +0000)]
MFC r292639
Add support for firmware dump (a.k.a grcdump)

git-svn-id: svn://svn.freebsd.org/base/stable/10@293788 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292638
davidcs [Tue, 12 Jan 2016 22:58:46 +0000 (22:58 +0000)]
MFC r292638
  Check for packet_length is greater than 60 bytes as well as packet_length is
  greater than len_on_bd, before invoking the routine to handle jumbo over SGL
  (bxe_service_rxsgl()).
  Add counters for number of jumbo_over_SGL packets (rx_bxe_service_rxsgl) and
  erroneous jumbo_over_SGL packets (rx_erroneous_jumbo_sge_pkts)

  Fix formatting in bxe_sysctl_state()

git-svn-id: svn://svn.freebsd.org/base/stable/10@293787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289199
davidcs [Tue, 12 Jan 2016 22:52:45 +0000 (22:52 +0000)]
MFC r289199
Add support for reading device temperature

git-svn-id: svn://svn.freebsd.org/base/stable/10@293786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292950:
dim [Tue, 12 Jan 2016 19:33:43 +0000 (19:33 +0000)]
MFC r292950:

Drop the clang patch which adds recognition of 'CC' suffixes as aliases
for --driver-mode=g++, since this was never upstreamed.  For backwards
compatibility, add a wrapper shell script.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293782 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoFix LINT-NOINET kernels
ngie [Tue, 12 Jan 2016 18:24:22 +0000 (18:24 +0000)]
Fix LINT-NOINET kernels

- Generate opt_inet.h appropriately according to MK_INET_SUPPORT
- Only add in_gif.c to SRCS if MK_INET_SUPPORT != no

This is a surgical fix since the build infrastructure has diverged sufficiently
between stable/10 and head.

This change will likely be reverted if and when imp's changes to config.mk have
been backported to ^/stable/10 .

Reviewed by: ae (no serious objections)
Differential Revision: https://reviews.freebsd.org/D4864
MFC after: 1 week
Sponsored by: EMCC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@293778 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r284589
allanjude [Tue, 12 Jan 2016 16:38:09 +0000 (16:38 +0000)]
MFC: r284589
  Add the ability to detect ZFS and GELI encrypted file systems to fstyp(8)

MFC: r284644
  Fix GCC Warnings

MFC: r284728
  Only build ZFS support in absense of WITHOUT_ZFS

MFC: r285426
  Remove excess copyrights

MFC: r286569
  Use GELI sentinel constant

MFC: r287937
  Eliminate unneeded copying of vdev data, goto, etc. and add a note
  that checksum of vdev label should be checked (which is not done
  currently).

  No functional change.

  While I'm there, raise WARNS to 2.

MFC: r292757
  Fix order of includes in usr.sbin/fstyp/zfs.c

MFC: r292829
  Eliminate unneeded includes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoHide the "unmount of /dev failed (BUSY)" warning at shutdown or reboot,
trasz [Tue, 12 Jan 2016 14:18:54 +0000 (14:18 +0000)]
Hide the "unmount of /dev failed (BUSY)" warning at shutdown or reboot,
introduced with r293742, just like it was hidden before that commit.

This is a direct commit to 10-STABLE; this special case is not needed
in 11-CURRENT, because devfs supports forced unmounts there.  The forced
unmount could be MFC-ed, but there are some LORs at shutdown, and I have
a weird feelings about it.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290689:
trasz [Tue, 12 Jan 2016 10:24:08 +0000 (10:24 +0000)]
MFC r290689:

Fix resource leaks in error cases.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290548:
trasz [Tue, 12 Jan 2016 10:14:57 +0000 (10:14 +0000)]
MFC r290548:

Userspace part of reroot support. This makes it possible to change
the root filesystem without full reboot, using "reboot -r". This can
be used to to eg. boot from a temporary md_image preloaded by loader(8),
setup an iSCSI session, and continue booting from rootfs mounted over
iSCSI.

Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3693

git-svn-id: svn://svn.freebsd.org/base/stable/10@293744 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287964:
trasz [Tue, 12 Jan 2016 10:11:29 +0000 (10:11 +0000)]
MFC r287964:

Kernel part of reroot support - a way to change rootfs without reboot.

Note that the mountlist manipulations are somewhat fragile, and not very
pretty.  The reason for this is to avoid changing vfs_mountroot(), which
is (obviously) rather mission-critical, but not very well documented,
and thus hard to test properly.  It might be possible to rework it to use
its own simple root mount mechanism instead of vfs_mountroot().

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2698

git-svn-id: svn://svn.freebsd.org/base/stable/10@293743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287107:
trasz [Tue, 12 Jan 2016 10:09:03 +0000 (10:09 +0000)]
MFC r287107:

Make vfs_unmountall() unmount /dev after /, not before.  The only
reason this didn't result in an unclean shutdown is that devfs ignores
MNT_FORCE flag.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3467

git-svn-id: svn://svn.freebsd.org/base/stable/10@293742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r285240:
trasz [Tue, 12 Jan 2016 09:58:00 +0000 (09:58 +0000)]
MFC r285240:

Remove reboot.S (part of libc).  It's not needed and was actually
broken - returning 0 from reboot(2) resulted in SIGBUS.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289110:
trasz [Tue, 12 Jan 2016 09:27:01 +0000 (09:27 +0000)]
MFC r289110:

Make geom_nop(4) collect statistics on all types of BIOs, not just
reads and writes.

PR: kern/198405
Submitted by: Matthew D. Fuller <fullermd at over-yonder dot net>
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3679

git-svn-id: svn://svn.freebsd.org/base/stable/10@293738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292989:
hselasky [Tue, 12 Jan 2016 09:00:19 +0000 (09:00 +0000)]
MFC r292989:
Handle when filedescriptors are closed before initialized. An early
fdclose() call can cause fget_unlocked() to fail.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293192:
hselasky [Tue, 12 Jan 2016 08:49:40 +0000 (08:49 +0000)]
MFC r293192:
Fix for directly connected FULL or LOW speed USB devices.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r287842
allanjude [Tue, 12 Jan 2016 05:56:49 +0000 (05:56 +0000)]
MFC: r287842
  Make ifconfig always exit with an error code if an important ioctl fails

PR: 203062

git-svn-id: svn://svn.freebsd.org/base/stable/10@293729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r287576
allanjude [Tue, 12 Jan 2016 05:55:28 +0000 (05:55 +0000)]
MFC: r287576
  service(8) -e does not respect /etc/rc.conf.d/* entries

PR: 173454
Submitted by: giantlock@gmail.com (original patch)

git-svn-id: svn://svn.freebsd.org/base/stable/10@293728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r287528
allanjude [Tue, 12 Jan 2016 05:53:53 +0000 (05:53 +0000)]
MFC: r287528
  Document the sctp blackhole sysctl MIB

PR: 184110
Submitted by: Marie Helene Kvello-Aune <marieheleneka@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@293727 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r285552
allanjude [Tue, 12 Jan 2016 05:51:12 +0000 (05:51 +0000)]
MFC: r285552
  Use strtonum(3) instead of atoi(3)

MFC: r286289
  Introduce -P0, creating as many concurrent processes as possible

Relnotes: yes

MFC: r286461
  Fix regression in xargs -Px, add more regression tests

MFC: r287004
MFC: r287005
  Fix the racy xargs -P0 -n2 test added in r286289

PR: 199976
Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@293726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293188:
gjb [Tue, 12 Jan 2016 02:12:40 +0000 (02:12 +0000)]
MFC r293188:
 Prevent memstick installation medium from attempting to mount
 the root filesystem read-write.  This causes problems booting
 the memstick installation medium from write-protected USB flash
 drives.

PR: 187161, 205886
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293723 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r292011
hiren [Mon, 11 Jan 2016 23:37:31 +0000 (23:37 +0000)]
MFC: r292011
MFC: r292012

Add an option to use rfc6675 based pipe/inflight bytes calculation in cubic and
newreno.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r292003
hiren [Mon, 11 Jan 2016 23:34:29 +0000 (23:34 +0000)]
MFC: r292003
Improve tcp duplicate ack processing when SACK is present.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293710 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r290122
hiren [Mon, 11 Jan 2016 23:31:13 +0000 (23:31 +0000)]
MFC: r290122
Calculate the correct amount of bytes that are in-flight for a connection as
suggested by RFC 6675.

MFC: r292046
r290122 added 4 bytes and removed 8 in struct sackhint. Add a pad entry of 4
bytes to restore the size.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293709 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge from head r292743, r293627 by dchagin:
glebius [Mon, 11 Jan 2016 21:46:37 +0000 (21:46 +0000)]
Merge from head r292743, r293627 by dchagin:
------------------------------------------------------------------------
r292743 | dchagin | 2015-12-26 01:04:47 -0800 (сб, 26 дек. 2015) | 5 lines

Do not allow access to emuldata for non Linux processes.

------------------------------------------------------------------------
r293627 | dchagin | 2016-01-09 23:36:43 -0800 (сб, 09 янв. 2016) | 6 lines

Unlock process lock when return error from getrobustlist call and add
an forgotten dtrace probe when return the same error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292218
asomers [Mon, 11 Jan 2016 21:12:49 +0000 (21:12 +0000)]
MFC r292218

Don't retry SAS commands in response to protocol errors

  sys/dev/mpr/mpr_sas_lsi.c
  sys/dev/mps/mps_sas_lsi.c
        When mp[rs]sas_get_sata_identify returns
        MPI2_IOCSTATUS_SCSI_PROTOCOL_ERROR, don't bother retrying. Protocol
        errors aren't likely to be fixed by sleeping.

        Without this change, a system that generated may protocol errors due
        to signal integrity issues was taking more than an hour to boot, due
        to all the retries.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293440:
bdrewery [Mon, 11 Jan 2016 20:55:52 +0000 (20:55 +0000)]
MFC r293440:

  Fix upgrading from OSVERSION 1000002-1000032 after r288829.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292019
asomers [Mon, 11 Jan 2016 20:25:41 +0000 (20:25 +0000)]
MFC r292019

When iostat(8) receives SIGINT while running with "-w" or "-c", it will now
print statistics one more time before exiting. Also, it now implements the
wait using setitimer instead of sleep, so the waits will be more consistent
when the system is heavily loaded.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292020
asomers [Mon, 11 Jan 2016 20:24:56 +0000 (20:24 +0000)]
MFC r292020

Increase devd's client socket buffer size to 256KB. This is not as large as
it looks, because we'll hit the sockbuf's mbuf limit long before hitting its
data limit. A 256KB data limit allows creating a ZFS pool on about 450
drives without overflowing the client socket buffers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289060:
trasz [Mon, 11 Jan 2016 20:13:45 +0000 (20:13 +0000)]
MFC r289060:

Document iSCSI and autofs(5) variables in rc.conf(5).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287429:
trasz [Mon, 11 Jan 2016 20:11:41 +0000 (20:11 +0000)]
MFC r287429:

The dumpfs(8) utility doesn't actually use disktab(5); remove it
from "SEE ALSO".

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293693 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287396:
trasz [Mon, 11 Jan 2016 20:10:14 +0000 (20:10 +0000)]
MFC r287396:

It's 2015, and some people are still trying to use fdisk and then
go asking what debug flags to set for GEOM to make it work.  Advice
them to use gpart(8) instead.

Something similar should probably done with disklabel,
but I need to rewrite the disklabel examples first.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287704:
trasz [Mon, 11 Jan 2016 20:03:58 +0000 (20:03 +0000)]
MFC r287704:

Point potential geom_fox(4) users to gmultipath(8).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293691 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 289113:
trasz [Mon, 11 Jan 2016 20:01:50 +0000 (20:01 +0000)]
MFC 289113:

Add 'p' postfix to mdconfig(8).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289111:
trasz [Mon, 11 Jan 2016 19:59:56 +0000 (19:59 +0000)]
MFC r289111:

Provide better debug message on kernel module name clash.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290408:
trasz [Mon, 11 Jan 2016 19:32:07 +0000 (19:32 +0000)]
MFC r290408:

Make rctl(8) use more reasonable buffer size for retrieving the rules.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r290153 (by bdrewery)
bapt [Mon, 11 Jan 2016 19:26:18 +0000 (19:26 +0000)]
MFC: r290153 (by bdrewery)

Fix unlikely memory leak.

It is unlikely since the first check in the function is that dir[0] is '/',
but later code changes may make it real.

Coverity CID: 1332104

git-svn-id: svn://svn.freebsd.org/base/stable/10@293684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: 278899
bapt [Mon, 11 Jan 2016 19:22:58 +0000 (19:22 +0000)]
MFC: 278899

Regression: fix usershow -7

git-svn-id: svn://svn.freebsd.org/base/stable/10@293682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290404:
trasz [Mon, 11 Jan 2016 19:21:20 +0000 (19:21 +0000)]
MFC r290404:

Fix markup in rctl(8) - the 'rule' or 'filter' arguments are not optional.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@293681 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293369:
jimharris [Mon, 11 Jan 2016 17:54:23 +0000 (17:54 +0000)]
MFC r293369:

  ismt: fix ISMT_DESC_ADDR_RW macro

git-svn-id: svn://svn.freebsd.org/base/stable/10@293676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r266474:
jimharris [Mon, 11 Jan 2016 17:53:24 +0000 (17:53 +0000)]
MFC r266474:

  Add ismt(4) driver.

  ismt(4) supports the SMBus Message Transport controller found on Intel
  C2000 series (Avoton) and S1200 series (Briarwood) Atom SoCs.

Relnotes: Yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@293675 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293354:
jimharris [Mon, 11 Jan 2016 17:33:51 +0000 (17:33 +0000)]
MFC r293354:

  nvme: replace NVME_CEILING macro with howmany()

git-svn-id: svn://svn.freebsd.org/base/stable/10@293673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293352:
jimharris [Mon, 11 Jan 2016 17:32:56 +0000 (17:32 +0000)]
MFC r293352:

  nvme: add hw.nvme.min_cpus_per_ioq tunable

  Due to FreeBSD system-wide limits on number of MSI-X vectors
  (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199321),
  it may be desirable to allocate fewer than the maximum number
  of vectors for an NVMe device, in order to save vectors for
  other devices (usually Ethernet) that can take better
  advantage of them and may be probed after NVMe.

  This tunable is expressed in terms of minimum number of CPUs
  per I/O queue instead of max number of queues per controller,
  to allow for a more even distribution of CPUs per queue.  This
  avoids cases where some number of CPUs have a dedicated queue,
  but other CPUs need to share queues.  Ideally the PR referenced
  above will eventually be fixed and the mechanism implemented
  here becomes obsolete anyways.

  While here, fix a bug in the CPUs per I/O queue calculation to
  properly account for the admin queue's MSI-X vector.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293672 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293328:
jimharris [Mon, 11 Jan 2016 17:31:18 +0000 (17:31 +0000)]
MFC r293328:

  nvme: do not revert to single I/O queue when per-CPU queues not available

  Previously nvme(4) would revert to a single I/O queue if it could not
  allocate enought interrupt vectors or NVMe submission/completion queues
  to have one I/O queue per core.  This patch determines how to utilize a
  smaller number of available interrupt vectors, and assigns (as closely
  as possible) an equal number of cores to each associated I/O queue.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293327:
jimharris [Mon, 11 Jan 2016 17:29:42 +0000 (17:29 +0000)]
MFC r293327:

  nvme: break out interrupt setup code into a separate function

git-svn-id: svn://svn.freebsd.org/base/stable/10@293670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293326:
jimharris [Mon, 11 Jan 2016 17:28:47 +0000 (17:28 +0000)]
MFC r293326:

  nvme: do not pre-allocate MSI-X IRQ resources

  The issue referenced here was resolved by other changes
  in recent commits, so this code is no longer needed.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293325:
jimharris [Mon, 11 Jan 2016 17:27:20 +0000 (17:27 +0000)]
MFC r293325:

  nvme: remove per_cpu_io_queues from struct nvme_controller

  Instead just use num_io_queues to make this determination.

  This prepares for some future changes enabling use of multiple
  queues when we do not have enough queues or MSI-X vectors
  for one queue per CPU.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293324:
jimharris [Mon, 11 Jan 2016 17:26:06 +0000 (17:26 +0000)]
MFC r293324:

  nvme: simplify some of the nested ifs in interrupt setup code

  This prepares for some follow-up commits which do more work in
  this area.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293667 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293323:
jimharris [Mon, 11 Jan 2016 17:24:18 +0000 (17:24 +0000)]
MFC r293323:

  nvd: submit bios directly when BIO_ORDERED not set or in flight

  This significantly improves parallelism in the most common case.
  The taskqueue is still used whenever BIO_ORDERED bios are in flight.

  This patch is based heavily on a patch from gallatin@.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293322:
jimharris [Mon, 11 Jan 2016 17:22:57 +0000 (17:22 +0000)]
MFC r293322:

  nvd: break out submission logic into separate function

  This enables a future patch using this same logic to submit
  I/O directly bypassing the taskqueue.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293321:
jimharris [Mon, 11 Jan 2016 17:21:38 +0000 (17:21 +0000)]
MFC r293321:

  nvd: skip BIO_ORDERED logic when bio fails submission

  This ensures the bio flags are not read after biodone().
  The ordering will still be enforced, after the bio is
  submitted successfully.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293320:
jimharris [Mon, 11 Jan 2016 17:20:30 +0000 (17:20 +0000)]
MFC r293320:

  nvd: do not wait for previous bios before submitting ordered bio

  Still wait until all in-flight bios (including the ordered bio)
  complete before processing more bios from the queue.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293663 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293319:
jimharris [Mon, 11 Jan 2016 17:19:11 +0000 (17:19 +0000)]
MFC r293319:

  nvd: set DISKFLAG_DIRECT_COMPLETION

git-svn-id: svn://svn.freebsd.org/base/stable/10@293662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r286967 by imp: use -mno-aes and -mno-avx flags only with Clang
emaste [Mon, 11 Jan 2016 15:30:19 +0000 (15:30 +0000)]
MFC r286967 by imp: use -mno-aes and -mno-avx flags only with Clang

The flags -mno-aes -mno-avx only exist for clang, not [base] gcc, so
add them only to the clang CFLAGS.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMove -msoft-float compiler flag into x86/i386 cases to fix ia64
emaste [Mon, 11 Jan 2016 04:25:03 +0000 (04:25 +0000)]
Move -msoft-float compiler flag into x86/i386 cases to fix ia64

Direct commit to stable/10 as ia64 support does not exist in HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r293423, r293469:
glebius [Mon, 11 Jan 2016 01:09:50 +0000 (01:09 +0000)]
Merge r293423, r293469:

  ntp 4.2.8p5

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@293650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r281027: Clean up more x86 only options in the efi code.
emaste [Mon, 11 Jan 2016 00:43:50 +0000 (00:43 +0000)]
MFC r281027: Clean up more x86 only options in the efi code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293649 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r293370:
pfg [Sun, 10 Jan 2016 22:30:39 +0000 (22:30 +0000)]
MFC r293370:
ext2fs: reading mmaped file in Ext4 causes panic

Always call brelse(path.ep_bp), fixing reading EXT4 files using mmap().

Patch by Damjan Jovanovic.

PR: 205938

git-svn-id: svn://svn.freebsd.org/base/stable/10@293646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoRecord only mergeinfo for r283371, r283376, r283380, r283393, r283395,
dchagin [Sun, 10 Jan 2016 21:40:31 +0000 (21:40 +0000)]
Record only mergeinfo for r283371, r283376, r283380, r283393, r283395,
r283397, r283400, r283402, r283405, r283425, r283429, r283442, r283445,
r283452, r283466, r283468, r283482, r283486, r283489, r283493.

regen syscall tables.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoUnbreak stable/10 buildworlds on arm/arm, mips/mips, mips/mips64, mips/mipsel,
ngie [Sun, 10 Jan 2016 17:39:49 +0000 (17:39 +0000)]
Unbreak stable/10 buildworlds on arm/arm, mips/mips, mips/mips64, mips/mipsel,
mips/mipsn32, powerpc/powerpc, powerpc/powerpc64, sparc64/sparc64 with gcc
after r293307 (some of the BURN_BRIDGES code)

MFC after: 3 days
Pointyhat to: markj
Sponsored by: EMC / Isilon Storage Division

MFC r279017:

r279017 (by glebius):

Burn bridges to FreeBSD 7.x IGMP stats.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293637 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r292057:
ae [Sun, 10 Jan 2016 13:53:57 +0000 (13:53 +0000)]
MFC r292057:
  Make detection of GPT a bit more reliable.

  When we are detecting a partition table and didn't find PMBR, try to
  read backup GPT header from the last sector and if it is correct,
  assume that we have GPT.

  Differential Revision: https://reviews.freebsd.org/D4282

MFC r292058:
  Remove a note about damaged PMBR. Now GPT will be detected automatically
  with such corruption.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@293634 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC SVN revisions 293340, 293379
dteske [Sat, 9 Jan 2016 23:44:41 +0000 (23:44 +0000)]
MFC SVN revisions 293340, 293379

r293340: Increase maximum buffer size for `-x cmd' value
r293379: Bump copyright

git-svn-id: svn://svn.freebsd.org/base/stable/10@293620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r290275: Make figpar(3) types/macros [more] unique (s/fp_/figpar_/gi)
dteske [Sat, 9 Jan 2016 23:33:44 +0000 (23:33 +0000)]
MFC r290275: Make figpar(3) types/macros [more] unique (s/fp_/figpar_/gi)

git-svn-id: svn://svn.freebsd.org/base/stable/10@293619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoBump __FreeBSD_version after Linux changes merge.
dchagin [Sat, 9 Jan 2016 18:40:20 +0000 (18:40 +0000)]
Bump __FreeBSD_version after Linux changes merge.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293610 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r289055 (by mjg@):
dchagin [Sat, 9 Jan 2016 18:32:52 +0000 (18:32 +0000)]
MFC r289055 (by mjg@):

 linux: fix handling of out-of-bounds syscall attempts

 Due to an off by one the code would read an entry past the table, as
 opposed to the last entry which contains the nosys handler.

 This fixes my fault.

MFC r289058 (by cem@):

 Fix missing semi-colon from r289055.

MFC r289768 (by jhb@):

 Merge r289055 to amd64/linux32:

 linux: fix handling of out-of-bounds syscall attempts

 Due to an off by one the code would read an entry past the table, as
 opposed to the last entry which contains the nosys handler.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288994 (by bdrewery):
dchagin [Sat, 9 Jan 2016 18:28:15 +0000 (18:28 +0000)]
MFC r288994 (by bdrewery):

Remove redundant RFFPWAIT/vfork(2) handling in Linux fork(2) and clone(2) wrappers.

r161611 added some of the code from sys_vfork() directly into the Linux
module wrappers since they use RFSTOPPED.  In r232240, the RFFPWAIT handling
was moved to syscallret(), thus this code in the Linux module is no longer
needed as it will be called later.

This also allows the Linux wrappers to benefit from the fix in r275616 for
threads not getting suspended if their vforked child is stopped while they
wait on them.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287395 (by trasz):
dchagin [Sat, 9 Jan 2016 18:24:53 +0000 (18:24 +0000)]
MFC r287395 (by trasz):

Fixes a panic triggered by threaded Linux applications when running
with RACCT/RCTL enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284626:
dchagin [Sat, 9 Jan 2016 18:23:34 +0000 (18:23 +0000)]
MFC r284626:

Add EPOLLRDHUP support.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293606 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284166 (by jkim):
dchagin [Sat, 9 Jan 2016 18:22:09 +0000 (18:22 +0000)]
MFC r284166 (by jkim):

Properly initialize flags for accept4(2) not to return spurious EINVAL.
Note this fixes a Linuxulator regression introduced in r283490.

PR:             200662

git-svn-id: svn://svn.freebsd.org/base/stable/10@293605 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284159:
dchagin [Sat, 9 Jan 2016 18:19:18 +0000 (18:19 +0000)]
MFC r284159:

Futex is an aligned 32-bit integer. Use the proper instruction and
operand when dereferencing futex pointer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293604 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284051:
dchagin [Sat, 9 Jan 2016 18:17:58 +0000 (18:17 +0000)]
MFC r284051:

Finish r283544. In exec case properly detach threads from user space
before suicide.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283680, r283681:
dchagin [Sat, 9 Jan 2016 18:16:36 +0000 (18:16 +0000)]
MFC r283680, r283681:

Move linux64 and linux_common to it's right place and make them not
depend on bhyve.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293602 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r283569 (by nyan):
dchagin [Sat, 9 Jan 2016 18:09:07 +0000 (18:09 +0000)]
MFC r283569 (by nyan):

MFi386: r283407
  Implement vdso - virtual dynamic shared object.

MFi386: r283474
  Rework signal code to allow using it by other modules, like linprocfs.

MFi386: r283506
  For objcopy, use --input-target and --output-target.

This fixes pc98 build.

git-svn-id: svn://svn.freebsd.org/base/stable/10@293601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f