]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r293055: kbdmap.5: Use current names for ASCII control codes lf, ff, us
emaste [Sat, 9 Jan 2016 01:01:04 +0000 (01:01 +0000)]
MFC r293055: kbdmap.5: Use current names for ASCII control codes lf, ff, us

Refer to the old names nl, np, ns as historical aliases.

PR: 205776, 205778

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

8 years agoMFC r292749:
kib [Sat, 9 Jan 2016 00:34:48 +0000 (00:34 +0000)]
MFC r292749:
Do not substitute interpeter if the brand interpreter path is
different from the interpreter path requested by the binary.

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

8 years agoMFC r293173, r293231:
gjb [Sat, 9 Jan 2016 00:31:24 +0000 (00:31 +0000)]
MFC r293173, r293231:
 r293173:
  Fix path to include .OBJDIR to avoid polluting the source
  tree during 'make release'.

 r293231:
  Add a new target to touch the ${.OBJDIR}/release file, which
  indicates the 'release' target has run (in order to prevent
  subsequent invocations that may clobber original build output).

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r293047: Use correct name 'us' for character 31 in keymaps
emaste [Sat, 9 Jan 2016 00:28:34 +0000 (00:28 +0000)]
MFC r293047: Use correct name 'us' for character 31 in keymaps

'ns' was a historical accident, and kbdcontrol(1) has accepted the
correct 'us' as well as 'ns' since r38139.

PR: 205776

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

8 years agoMFC 293043
jpaetzel [Fri, 8 Jan 2016 23:58:32 +0000 (23:58 +0000)]
MFC 293043

Unset the gss kernel state when gssd exits

When gssd exits it leaves the kernel state set by
gssd_syscall().  nfsd sees this and waits endlessly
in an unkillable state for gssd to come back.  If you
had acidentally started gssd then stopped it, then
started nfsd you'd be in a bad way until you either
restarted gssd or rebooted the system.  This change
fixes that by setting the kernel state to "" when
gssd exits.

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

8 years agoMFC r293042:
kib [Fri, 8 Jan 2016 10:35:57 +0000 (10:35 +0000)]
MFC r293042:
Minor style cleanup.

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

8 years agoMFC r291545: make the number of fasttrap probes and the size of the trace points...
stas [Fri, 8 Jan 2016 03:45:28 +0000 (03:45 +0000)]
MFC r291545: make the number of fasttrap probes and the size of the trace points hash table
tunable via sysctl or kernel tunables.

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

8 years agoMFC: r292982
araujo [Fri, 8 Jan 2016 03:02:19 +0000 (03:02 +0000)]
MFC: r292982

Remove unused variable after r292981 to unbreak the build.

MFC: r292981

Clean up unused-but-set-variable spotted by gcc-4.9.

Reviewed by: ngie
Approved by: rodrigc (mentor)
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D4773

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

8 years agoMFC: r292980
araujo [Fri, 8 Jan 2016 02:59:56 +0000 (02:59 +0000)]
MFC: r292980

Clean up unused-but-set-variable spotted by gcc4.9.

Reviewed by: ngie
Approved by: rodrigc (mentor)
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D4774

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

8 years agoMFC: r292972
araujo [Fri, 8 Jan 2016 02:58:10 +0000 (02:58 +0000)]
MFC: r292972

Wrap using #ifdef 'notyet' those variables and statements not yet
implemented to lower the compiler warnings.

It fix the case of unused-but-set-variable spotted by gcc4.9.

Reviewed by: ngie
Approved by: rodrigc (mentor)
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D4775

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

8 years agoMFC: r292971
araujo [Fri, 8 Jan 2016 02:56:21 +0000 (02:56 +0000)]
MFC: r292971

Clean up unused-but-set-variable spotted by gcc-4.9.

Reviewed by: ngie
Approved by: rodrigc (mentor)
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D4776

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

8 years agoMFC: r292970
araujo [Fri, 8 Jan 2016 02:54:21 +0000 (02:54 +0000)]
MFC: r292970

Clean up unused-but-set-variable spotted by gcc-4.9.

Reviewed by: ngie
Approved by: rodrigc (mentor)
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D4777

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

8 years agoMFC: r292969
araujo [Fri, 8 Jan 2016 02:52:04 +0000 (02:52 +0000)]
MFC: r292969

Clean up unused-but-set-variable spotted by gcc-4.9.

Reviewed by: ngie
Approved by: rodrigc (mentor)
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D4778

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

8 years agoMFC r277938 (by hiren): make syncookie_mac() use 'tcp_seq irs' in computing hash.
stas [Fri, 8 Jan 2016 00:46:28 +0000 (00:46 +0000)]
MFC r277938 (by hiren): make syncookie_mac() use 'tcp_seq irs' in computing hash.

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

8 years agoMFC r292047: RPC: populate local address for rendezvous transporter.
stas [Fri, 8 Jan 2016 00:21:55 +0000 (00:21 +0000)]
MFC r292047: RPC: populate local address for rendezvous transporter.

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

8 years agoMFC r291941:
bdrewery [Thu, 7 Jan 2016 23:26:16 +0000 (23:26 +0000)]
MFC r291941:

  Replace unneeded manual dependency on header by adding it to SRCS.

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

8 years agoMerge r293282 from head:
glebius [Thu, 7 Jan 2016 23:10:44 +0000 (23:10 +0000)]
Merge r293282 from head:
 Provide knob NO_INSTALLEXTRAKERNELS. If defined, extra kernels in KERNCONF
 won't be installed, only the first one would.

Turn NO_INSTALLEXTRAKERNELS=yes on stable/10 to preserve original
behaviour of not installing additional kernels built.

Reported & tested by: Trond Endrestøl <Trond.Endrestol fagskolen.gjovik.no>
Reported & tested by: dhw

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

8 years agoMFC r291611:
bdrewery [Thu, 7 Jan 2016 22:06:05 +0000 (22:06 +0000)]
MFC r291611:

  Add NO_INSTALLKERNEL to undo the assumption that the first KERNCONF will be
  installed as "kernel".  This is relevant for packaging of the kernel when not
  wanting a default "kernel.txz".

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

8 years agoMFC r291610:
bdrewery [Thu, 7 Jan 2016 22:05:04 +0000 (22:05 +0000)]
MFC r291610:

  Allow storing package(world|kernel) tarballs into a different location at
  PACKAGEDIR.

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

8 years agoMFH r292836:
wollman [Thu, 7 Jan 2016 20:43:45 +0000 (20:43 +0000)]
MFH r292836:

    in6_if2idlen: treat bridge(4) interfaces like other Ethernet interfaces

    bridge(4) interfaces have an if_type of IFT_BRIDGE, rather than
    IFT_ETHER, even though they only support Ethernet-style links.  This
    caused in6_if2idlen to emit an "unknown link type (209)" warning to
    the console every time it was called.  Add IFT_BRIDGE to the case
    statement in the appropriate place, indicating that it uses the same
    IPv6 address format as other Ethernet-like interfaces.

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

8 years agoMFC r280808 by andrew: Reorder sys/boot/Makefile for the efi loader move
emaste [Thu, 7 Jan 2016 20:34:06 +0000 (20:34 +0000)]
MFC r280808 by andrew: Reorder sys/boot/Makefile for the efi loader move

As these will depend on ficl having been built, and are set via
bsd.arch.inc.mk we need to place this after ficl.

As Makefile.amd64 is now late enough we can add the i386 directory to
this.

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

8 years agoMFC r281524 by andrew@: Use MACHINE in the efi loader when it is what we mean
emaste [Thu, 7 Jan 2016 20:10:49 +0000 (20:10 +0000)]
MFC r281524 by andrew@: Use MACHINE in the efi loader when it is what we mean

It may not be the same as MACHINE_CPUARCH, it just happened to be the
case the architectures this code currently supports.

Fixes build failure reported by Oliver Pinter.

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

8 years agoMFC: 292394
gnn [Thu, 7 Jan 2016 19:52:17 +0000 (19:52 +0000)]
MFC: 292394

Switch the IPsec related statistics to using the built in sysctl
variable set rather than reading from kernel memory.
This also makes the -z (zero) flag work correctly

Sponsored by: Rubicon Communications, LLC (Netgate)

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

8 years agoMFC r291377: vidfont: with vt(4) omit size from vidcontrol -f
emaste [Thu, 7 Jan 2016 17:03:26 +0000 (17:03 +0000)]
MFC r291377: vidfont: with vt(4) omit size from vidcontrol -f

When using syscons, vidfont extracts the font size from the filename
passes it to vidcontrol -f. In vt(4) mode the size argument is not
required, and some of the fonts in /usr/share/vt/fonts do not have the
size in the filename, which caused vidfont to fail. Thus, just omit the
size argument in vt(4) mode.

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

8 years agoMFC r291691: newvers: Honour SOURCE_DATE_EPOCH for build reproducibility
emaste [Thu, 7 Jan 2016 17:00:35 +0000 (17:00 +0000)]
MFC r291691: newvers: Honour SOURCE_DATE_EPOCH for build reproducibility

One reason the kernel does not build reproducibly is that it includes
a timestamp in the version string. SOURCE_DATE_EPOCH provides a standard
method to address this: it should be set to the last modification time
of the source, and build processes use the specified timestamp instead
of the "current" date and time.

This change uses SOURCE_DATE_EPOCH if it is set; how it gets set needs
to be addressed elsewhere.

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

8 years agoMFC r292676:
jtl [Thu, 7 Jan 2016 15:37:17 +0000 (15:37 +0000)]
MFC r292676:

Only allow one PT_INTERP ELF program header. This also fixes a potential
memory leak for interp_buf.

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

8 years agoMFC r292705: rtld: remove old XXX comment missed in r35529
emaste [Thu, 7 Jan 2016 14:52:32 +0000 (14:52 +0000)]
MFC r292705: rtld: remove old XXX comment missed in r35529

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

8 years agoMFC r292440:
mjg [Thu, 7 Jan 2016 12:08:15 +0000 (12:08 +0000)]
MFC r292440:

proc: fix a race which could result in dereference of bad p_pgrp pointer on
fork

During fork p_starcopy - p_endcopy area of a process is populated with bcopy
with only proc lock held. Another forking thread can find such a process and
proceed to access p_pgrp included in said area.

Fix the problem by moving the field outside. It is being properly assigned
later.

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

8 years agoMFC r287649:
markj [Thu, 7 Jan 2016 07:21:37 +0000 (07:21 +0000)]
MFC r287649:
Use a common subroutine to fetch and zero protocol stats instead of
duplicating roughly similar code for each protocol.

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

8 years agoloader.efi: combine GetMemoryMap and ExitBootServices and retry on error
emaste [Thu, 7 Jan 2016 04:02:37 +0000 (04:02 +0000)]
loader.efi: combine GetMemoryMap and ExitBootServices and retry on error

MFC r292338: UEFI: combine GetMemoryMap and ExitBootServices and retry on error

The EFI memory map may change before or during the first
ExitBootServices call. In that case ExitBootServices returns an error,
and GetMemoryMap and ExitBootServices must be retried.

Glue together calls to GetMemoryMap(), ExitBootServices() and storage of
(now up-to-date) MODINFOMD_EFI_MAP metadata within a single function.

That new function - bi_add_efi_data_and_exit() - uses space previously
allocated in bi_load_efi_data() to store the memory map (it will fail if
that space is too short). It handles re-calling GetMemoryMap() once to
update the map key if necessary. Finally, if ExitBootServices() is
successful, it stores the memory map and its header as MODINFOMD_EFI_MAP
metadata.

ExitBootServices() calls are now done earlier, from within arch-
independent bi_load() code.

MFC r292442: loader.efi: show EFI error number, not full status value

EFI return values set the high bit to indicate an error. The log
messages changed here are printed only in the case of an error,
so including the error bit is redundant. Also switch to decimal to
match the error definitions (in sys/boot/efi/include/efierr.h).

MFC r292515: loader.efi: refresh size in GetMemoryMap retry loop

If ExitBootServices fails due to a changed efi_mapkey then GetMemoryMap
must be called again. In this case it is also possible for the memory
map to grow, so repeat the initial GetMemoryMap call to fetch the new
size.

Also roll bi_add_efi_data_and_exit into bi_load_efi_data as there's no
need for it to be a separate function.

PR: 202455
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r281138: SMBIOS support for EFI
emaste [Thu, 7 Jan 2016 03:28:56 +0000 (03:28 +0000)]
MFC r281138: SMBIOS support for EFI

Restore smbios support lost in r293297

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

8 years agoRemove old amd64 EFI directory
emaste [Thu, 7 Jan 2016 02:45:41 +0000 (02:45 +0000)]
Remove old amd64 EFI directory

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

8 years agoMFC r288372: Use EFI page size constants instead of hardcoding 4096
emaste [Thu, 7 Jan 2016 02:42:56 +0000 (02:42 +0000)]
MFC r288372: Use EFI page size constants instead of hardcoding 4096

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

8 years agoMFC r287934: Increase EFI staging size from 32MB to 48MB
emaste [Thu, 7 Jan 2016 02:41:57 +0000 (02:41 +0000)]
MFC r287934: Increase EFI staging size from 32MB to 48MB

The EFI boot loader allocates a single chunk of contiguous memory to
hold the kernel, modules, and any other loaded data.  This memory block
is relocated to the kernel's expected location during the transfer of
control from the loader to the kernel.

PR: 201679

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

8 years agoMFC r292576: boot1.efi: show EFI error number, not full status value
emaste [Thu, 7 Jan 2016 02:37:17 +0000 (02:37 +0000)]
MFC r292576: boot1.efi: show EFI error number, not full status value

EFI return values set the high bit to indicate an error. The log
messages changed here are printed only in the case of an error,
so including the error bit is redundant. Also switch to decimal to
match the error definitions (in sys/boot/efi/include/efierr.h).

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

8 years agoMFC r281000: Move i386/efi files to new home in efi/loader/arch/i386
emaste [Thu, 7 Jan 2016 02:33:28 +0000 (02:33 +0000)]
MFC r281000: Move i386/efi files to new home in efi/loader/arch/i386

This was not (and still is not) connected to the build, but the EFI
loader is in the process of being built for other than amd64 so these
files ought to live in their eventual MD location.

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

8 years agoMFC r280950: Move the efi loaders to be under sys/boot/efi
emaste [Thu, 7 Jan 2016 02:22:45 +0000 (02:22 +0000)]
MFC r280950: Move the efi loaders to be under sys/boot/efi

In HEAD this was done to support UEFI on arm64. Merging to stable/10 to
facilitate the merging of later UEFI changes.

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

8 years agoMFC SVN revisions 292899,292996,292999-293000.
dteske [Thu, 7 Jan 2016 02:06:14 +0000 (02:06 +0000)]
MFC SVN revisions 292899,292996,292999-293000.

r292899: Fix stack leak introduced by SVN r97201
r292996: Remove debugging messages added by SVN r187143
r292999: Fix a memory leak
r293000: Remove supposition comment

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

8 years agoMFC r286368: Remove guards around overwriting loader.rc and menu.rc
dteske [Thu, 7 Jan 2016 01:50:50 +0000 (01:50 +0000)]
MFC r286368: Remove guards around overwriting loader.rc and menu.rc

There have been .local version of each for user modifications for some time
This allows users to receive future updates to these files

PR: 183765
Differential Revision: https://reviews.freebsd.org/D3176
Submitted by: Bertram Scharpf, Nikolai Lifanov (patch)
Reviewed by: dteske, loos, eadler
Approved by: bapt (mentor)
Relnotes: yes
Sponsored by: ScaleEngine Inc.

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

8 years agoMFC SVN revisions 280922,285875,285882.
dteske [Thu, 7 Jan 2016 01:33:42 +0000 (01:33 +0000)]
MFC SVN revisions 280922,285875,285882.
r280922: Change contents of the exec variable in loader.conf (dteske/rpaulo)
r285875: Use double newlines consistently (trasz/foundation)
r285882: Use consistent spacing (trasz/foundation)

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

8 years agoMFC r290693: Add support for "rc.conf.d" file(s).
dteske [Thu, 7 Jan 2016 00:53:07 +0000 (00:53 +0000)]
MFC r290693: Add support for "rc.conf.d" file(s).

Differential Revision: https://reviews.freebsd.org/D3551
Reviewed by: allanjude
Relnotes: yes

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

8 years agoMFC r278492: Add "vt_"* aliases to bsdconfig console entries.
dteske [Thu, 7 Jan 2016 00:42:38 +0000 (00:42 +0000)]
MFC r278492: Add "vt_"* aliases to bsdconfig console entries.
NB: "syscons_"* kept for backward compatibility

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

8 years agoMFC r289677:
bdrewery [Thu, 7 Jan 2016 00:40:51 +0000 (00:40 +0000)]
MFC r289677:

  Fix a ton of speelling errors

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

8 years agoMFC r270228:
ngie [Wed, 6 Jan 2016 20:50:23 +0000 (20:50 +0000)]
MFC r270228:
r270228 (by asomers):

Numerous small fixes, mostly suggested by Coverity.

tests/sys/kern/unix_seqpacket_test.c
* Remove a duplicate error check in mk_pair_of_sockets
* Always close sockets in the success path of ATF test cases.  Don't
  bother with the error paths, because those are mostly assertions
  anyway.  Most of these socket leaks were reported by Coverity.
  All of them are harmless, because each ATF test case runs in its
  own process.
* Fix the len argument to send in shutdown_send and
  shutdown_send_sigpipe.  The old version was using sizeof a pointer
  instead of sizeof the char array.  Reported by Coverity.
* Change a few ATF_CHECK to ATF_REQUIRE if the test can't reasonably
  continue past a failure.

CID: 122999512299911229988122999412299891229992
CID: 122999312299901229984122996712300051229977
CID: 122996612300041229976

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

8 years agoMFC r271397:
ngie [Wed, 6 Jan 2016 20:43:41 +0000 (20:43 +0000)]
MFC r271397:
r271397 (by asomers):

Abort the create_socket test if socket creation fails.

CID: 1232756

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

8 years agoMFC r292914,r292957:
ngie [Wed, 6 Jan 2016 20:29:15 +0000 (20:29 +0000)]
MFC r292914,r292957:

r292914:

Integrate tools/regression/sockets/unix_passfd into the FreeBSD test
suite as tests/sys/kern/unix_passfd_test

- Convert testcases to ATF
- Fix an alignment issues
- Mark rights_creds_payload(..) as an expected failure (see PR # 181741)

https://reviews.freebsd.org/D689

Submitted by: markj

r292957:

Rename `recvfd` and `sendfd` variables in recvfd/sendfd functions to avoid
-Wshadow issues with gcc

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

8 years agoMFC r288961,r288962:
ngie [Wed, 6 Jan 2016 20:27:55 +0000 (20:27 +0000)]
MFC r288961,r288962:

r288961 (by bdrewery):

Fix build with older GCC which, doesn't like 'main' being a variable name.

r288962 (by jhb):

Tweak: use 'mainlwp' instead of 'mainpid' since this is a thread (LWP)
identifier, not a pid.

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

8 years agoMFC r292328:
ngie [Wed, 6 Jan 2016 20:21:40 +0000 (20:21 +0000)]
MFC r292328:

Integrate a number of testcases from tools/regression/lib/msun
into the FreeBSD test suite

There's no functional change with these testcases; they're purposely
being left in TAP format for the time being

Other testcases which crash on amd64/i386 as-is have not been
integrated yet (they need to be retested on a later version of
CURRENT, as I haven't used i386 in some time)

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

8 years agoMFC r292650,r292651:
ngie [Wed, 6 Jan 2016 20:06:15 +0000 (20:06 +0000)]
MFC r292650,r292651:

r292650:

Move mac_bsdextended check up before running the test_libugidfw_strings testcases

I realize that these tests could be run before mac_bsdextended is loaded, but
it would overcomplicate things to special case handle the testcases before doing
the mac_bsdextended(4) feature check

The testcases will be split up so they can be run separately in the near future

r292651:

Delete the comment about running `test_libugidfw_strings` before testing
`mac_is_present` so it doesn't accidentally confuse people

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

8 years agoMFC r292570:
ngie [Wed, 6 Jan 2016 20:02:49 +0000 (20:02 +0000)]
MFC r292570:

Integrate tools/regression/mac/mac_bsdextended and
tools/regression/mac/mac_portacl into the FreeBSD test suite as
tests/sys/mac/bsdextended and tests/sys/mac/portacl, respectively

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

8 years agoMFC r292530,r292546:
ngie [Wed, 6 Jan 2016 19:40:37 +0000 (19:40 +0000)]
MFC r292530,r292546:

r292530:

- Use 1 for an exit code instead of -1 with err, errx, and exit
- Add unistd.h for getuid(3)
- Sort #includes

r292546:

- Convert testcase to TAP format
- Use nitems(x) instead of handrolled sizeof(x) / sizeof(*x) macro
- Do not mark count != 0 case with bsde_get_rule_count as a failure; this
  generates false positives on systems with ugidfw rules set on it

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

8 years agoMFC r270675:
bdrewery [Wed, 6 Jan 2016 17:48:35 +0000 (17:48 +0000)]
MFC r270675:

  Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env
  var if set)

PR: 205965

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

8 years agoMFC r292877:
pfg [Wed, 6 Jan 2016 16:32:39 +0000 (16:32 +0000)]
MFC r292877:
pax: prevent possible buffer overflow

Or at least quiet down some static analyzers about it.

CID: 978835
Obtained from: OpenBSD

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

8 years agoMFC r292872:
pfg [Wed, 6 Jan 2016 16:25:00 +0000 (16:25 +0000)]
MFC r292872:

ext2: recognize ext4 INCOMPAT_RECOVER flag

This is a flag specific for journalling in ext4.
Add it to the list of ext4 features we ignore for
read-only purposes.

PR: 205668

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

8 years agoMFC r292961:
kib [Wed, 6 Jan 2016 16:02:22 +0000 (16:02 +0000)]
MFC r292961:
Force nullfs vnode reclaim after unlinking, to potentially unlink
lower vnode.

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

8 years agoMFC: r292266 & r292947
smh [Wed, 6 Jan 2016 09:56:06 +0000 (09:56 +0000)]
MFC: r292266 & r292947

Add flag to disable inital reboot(8) userland sync

Sponsored by: Multiplay

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

8 years agoMFC 292366: Flag the first port on a Sheevaplug ftdi serial device as jtag.
ian [Tue, 5 Jan 2016 17:12:33 +0000 (17:12 +0000)]
MFC 292366: Flag the first port on a Sheevaplug ftdi serial device as jtag.

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

8 years agoMFC r287920:
rstone [Tue, 5 Jan 2016 16:58:07 +0000 (16:58 +0000)]
MFC r287920:

  Fix /sbin/route to never look up (invalid) interface names through DNS

  /sbin/route has a bug where if it is passed an interface name that does
  not exist, it falls through and winds up interpreting it as a hostname.
  It fails out eventually, but on a system where DNS lookup is broken you
  can end up waiting for up to 60 seconds waiting for the DNS lookup to
  timeout.  I'm not quite sure what happens if the DNS lookup somehow
  succeeds but I doubt that can end well.

  Reviewed by:  markj, cem
  MFC after:    2 weeks
  Sponsored by: EMC/Isilon Storage Division

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

8 years agoMFC r292890:
kib [Tue, 5 Jan 2016 13:05:38 +0000 (13:05 +0000)]
MFC r292890:
Add standard extended feature bit 6 from the Intel SDM rev. 57.

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

8 years agoAdd `..` after sys/kern/pipe entry accidentally missed in r291183
ngie [Tue, 5 Jan 2016 08:10:06 +0000 (08:10 +0000)]
Add `..` after sys/kern/pipe entry accidentally missed in r291183

This is a direct commit to stable/10

Pointyhat to: ngie
Reported by: rodrigc
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMerge from head r287357-287358,287400:
glebius [Tue, 5 Jan 2016 03:22:10 +0000 (03:22 +0000)]
Merge from head r287357-287358,287400:
  Not only build with buildworld, but also install with installworld all
  alternative kernels.

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

8 years agobmake 20151220
sjg [Mon, 4 Jan 2016 20:05:40 +0000 (20:05 +0000)]
bmake 20151220

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

8 years agoMFH: r292522
brueffer [Mon, 4 Jan 2016 16:51:56 +0000 (16:51 +0000)]
MFH: r292522

Merge from contrib/openbsm to bring the kernel audit bits up to date with OpenBSM 1.2 alpha 4:

- remove $P4$
- fix a comment

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

8 years agoMFC r280351: Stop calling x86_efi_copyin and x86_efi_getdev directly
emaste [Mon, 4 Jan 2016 16:33:54 +0000 (16:33 +0000)]
MFC r280351: Stop calling x86_efi_copyin and x86_efi_getdev directly

In HEAD this is to help port loader.efi to both 32 and 64-bit ARM where
we can use this file with minimal changes. Merged to stable/10 to
simplify MFCs of later EFI commits.

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

8 years agoMFH: 292432,r292433,r292434
brueffer [Mon, 4 Jan 2016 16:32:21 +0000 (16:32 +0000)]
MFH: 292432,r292433,r292434

- Merge OpenBSM 1.2 alpha 4.
- Regenerate config.h for OpenBSM 1.2 alpha 4.
- Add au_notify.2 and MLINKs (added in OpenBSM 1.2 alpha 4).

Relnotes: yes

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

8 years agoMFC r292949:
hselasky [Mon, 4 Jan 2016 09:58:16 +0000 (09:58 +0000)]
MFC r292949:
Add support for modifying coalescing parameters runtime.

Sponsored by: Mellanox Technologies

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

8 years agoMFC r292948:
hselasky [Mon, 4 Jan 2016 09:56:57 +0000 (09:56 +0000)]
MFC r292948:
Allow I2C to read address 0x51 as well as address 0x50.

Submitted by: Shahar Klein <shahark@mellanox.com>
Sponsored by: Mellanox Technologies

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

8 years agoMFC r292946:
hselasky [Mon, 4 Jan 2016 09:55:21 +0000 (09:55 +0000)]
MFC r292946:
10G ER/LR should present itself as LR.

MFC after: 1 week
Submitted by: Shahar Klein <shahark@mellanox.com>
Sponsored by: Mellanox Technologies

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

8 years agoMFC r292838:
hselasky [Mon, 4 Jan 2016 09:52:40 +0000 (09:52 +0000)]
MFC r292838:
Add support for CQE zipping. CQE zipping reduces PCI overhead by
coalescing and zipping multiple CQEs into a single merged CQE. The
feature is enabled by default and can be disabled by a sysctl.

Implementing this feature mlx5_cqwq_pop() has been separated from
mlx5e_get_cqe().

Submitted by: Mark Bloch <markb@mellanox.com>
Differential Revision: https://reviews.freebsd.org/D4598
Sponsored by: Mellanox Technologies

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

8 years agoMFC r292837:
hselasky [Mon, 4 Jan 2016 09:49:53 +0000 (09:49 +0000)]
MFC r292837:
Add support for sysctl tunables to 10-stable and older. Pushed through
head first to simplify driver maintenance.

MFC after: 1 week
Submitted by: Drew Gallatin <gallatin@freebsd.org>
Differential Revision: https://reviews.freebsd.org/D4552
Sponsored by: Mellanox Technologies

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

8 years agoMFC r292835:
hselasky [Mon, 4 Jan 2016 09:47:20 +0000 (09:47 +0000)]
MFC r292835:
Make the eeprom dump function more readable and rename variables for
better clarity.

Submitted by: Daria Genzel <dariaz@mellanox.com>
Differential Revision: https://reviews.freebsd.org/D4551
Sponsored by: Mellanox Technologies

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

8 years agoAdd missed mergeinfo.
hselasky [Mon, 4 Jan 2016 09:38:33 +0000 (09:38 +0000)]
Add missed mergeinfo.

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

8 years agoMFC r289563,r291481,r292537,r292538,r292542,r292543,r292544 and r292834:
hselasky [Mon, 4 Jan 2016 09:37:05 +0000 (09:37 +0000)]
MFC r289563,r291481,r292537,r292538,r292542,r292543,r292544 and r292834:

Update the LinuxKPI:
- Add more functions and types.
- Implement ACCESS_ONCE(), WRITE_ONCE() and READ_ONCE().
- Implement sleepable RCU mechanism using shared exclusive locks.
- Minor workqueue cleanup:
  - Make some functions global instead of inline to ease debugging.
  - Fix some minor style issues.
- In the zero delay case in queue_delayed_work() use the return value
  from taskqueue_enqueue() instead of reading "ta_pending" unlocked and
  also ensure the callout is stopped before proceeding.
- Implement drain_workqueue() function.
- Reduce memory consumption when allocating kobject strings in the
  LinuxKPI. Compute string length before allocating memory instead of
  using fixed size allocations. Make kobject_set_name_vargs() global
  instead of inline to save some bytes when compiling.

Sponsored by: Mellanox Technologies

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

8 years agoMFC r291199:
hselasky [Mon, 4 Jan 2016 07:27:58 +0000 (07:27 +0000)]
MFC r291199:
Fix compile warning about shifting signed negative constant.

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

8 years agoMFC r292814:
ngie [Mon, 4 Jan 2016 07:11:15 +0000 (07:11 +0000)]
MFC r292814:

- Explicitly initialize ch to 0
- Delete some spurious whitespace
- Use calloc instead of malloc in the last test to ensure that
  sendspace is properly zero'ed out

Submitted by: markj

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

8 years agoMFC r292822:
ngie [Mon, 4 Jan 2016 07:09:29 +0000 (07:09 +0000)]
MFC r292822:

Remove retval to fix a -Wunused-but-set-variable warning from gcc 4.9

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

8 years agoMFC r292820:
ngie [Mon, 4 Jan 2016 07:06:46 +0000 (07:06 +0000)]
MFC r292820:

Clean trailing whitespace

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

8 years agoMFC r292815:
ngie [Mon, 4 Jan 2016 07:03:58 +0000 (07:03 +0000)]
MFC r292815:

Staticize several variables that are used exclusively in bsnmpd/main.c and
bsnmpd/trap.c

This fixes several -Wmissing-variable-declaration warnings noted by clang

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

8 years agoMFC r292816,r292818,r292819:
ngie [Mon, 4 Jan 2016 07:02:48 +0000 (07:02 +0000)]
MFC r292816,r292818,r292819:

r292816:

Place cancel and error under #ifdef DEBUG to mute
-Wunused-but-set-variable warnings reported by gcc 4.9

Remove some trailing whitespace as well

Tested with and without -DDEBUG

r292818:

Fix style(9) a bit and ensure that error from initializing kqueue(2) is
sane

- Push the kqueue(2) initialization down so the errno will correspond with
  the failure instead of potentially being stomped on by functions called
  by `PLAIN_REQUIRE_KERNEL_MODULE`
- Delete trailing whitespace
- Add spaces between braces for conditional and control blocks (for/if)
- Use err/errx instead of perror+printf+exit/printf+exit.
- Remove braces for single-line conditionals

Tested with and without -DDEBUG

r292819:

- Fix an improperly sized buffer for `pathname` [1]
- Fix a -Wunused-but-set-variable warning [2]

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

8 years agoMFC r292531,r292532,r292533,r292545:
ngie [Mon, 4 Jan 2016 06:57:06 +0000 (06:57 +0000)]
MFC r292531,r292532,r292533,r292545:

r292531:

Make test_matches.sh into a series of TAP testcases

Use temporary filesystems / memory disks instead of a hardcoded path
which doesn't exist on test systems

r292532:

Mark `subject matching jailid` testcase as an unexpected failure with
TODO to ensure that the testcase isn't marked as a failure

PR: 205481

r292533:

Skip the testcases if mac_bsdextended(4) isn't detected on the
system

r292545:

Redo the TAP integration so it works with Kyua

Kyua needs numbers in the TAP results :/, but prove doesn't

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

8 years agoMFC r292605, r292606, r292607, r292608:
pfg [Mon, 4 Jan 2016 03:20:41 +0000 (03:20 +0000)]
MFC r292605, r292606, r292607, r292608:

cron: bring some fixes for Coverity reports and other issues.

crontab: replace malloc + bzero with calloc
crontab: properly free an entry
cron: Check the return value of pipe(2)

CID: 271773, 1009830,

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

8 years agoMFC r279437,r284107:
ngie [Sun, 3 Jan 2016 22:50:19 +0000 (22:50 +0000)]
MFC r279437,r284107:

r279437 (by rstone):

Allow Illumos code to co-exist with nv(9)

r284107 (by avg):

compat nvpair.h: make sure that the names are mangled only for kernel

Currently there is no good reason to mangle the userland API.
The change was introduced in eac1d566b46edef765754203bef22c75c1699966,
r279437.  Also see https://reviews.freebsd.org/D1881.

I am still convinced that nv should not have introduced intentionally
conflicting API.

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

8 years agoMFC r293015:
dim [Sun, 3 Jan 2016 17:23:16 +0000 (17:23 +0000)]
MFC r293015:

Merge r293013 from clang380-import branch:

Fix a clang 3.8.0 warning in pflogd.c:

contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
       if (!if_exists(interface) == -1) {
   ^                     ~~

The if_exists() function does not return -1, and even if it did, it
would not be the correct way to check.  Just ditch the == -1 instead.

Obtained from: OpenBSD's pflogd.c 1.49

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

8 years agoMFC r293014:
dim [Sun, 3 Jan 2016 17:19:17 +0000 (17:19 +0000)]
MFC r293014:

Merge r293006 from clang380-import branch:

For determining the compiler version, quote the string to be echo'd,
otherwise the command might fail.  This is because clang -v now results
in the following:

FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn)

The second "3.8.8svn)" string tripped up the shell command.

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

8 years agoMFC r292884:
ngie [Fri, 1 Jan 2016 00:36:59 +0000 (00:36 +0000)]
MFC r292884:

Fix getopt(3) argument after r290180; I forgot to change -r to -R
by accident

Pointyhat to: ngie

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

8 years agoMFC r292719:
ume [Fri, 1 Jan 2016 00:35:06 +0000 (00:35 +0000)]
MFC r292719:
  Remove _gethostbynisname() and _gethostbynisaddr().  These functions
  used to be called from getipnodebyname().

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

8 years agoMFC r292640,r292641:
ngie [Thu, 31 Dec 2015 20:25:26 +0000 (20:25 +0000)]
MFC r292640,r292641:

r292640:

Clean up trailing whitespace; no functional change

Sponsored by: EMC / Isilon Storage Division

r292641:

Fix r292640

vim overzealously removed some trailing `+' and I didn't check the
diff

Pointyhat to: ngie
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r292710:
ngie [Thu, 31 Dec 2015 19:32:46 +0000 (19:32 +0000)]
MFC r292710:

Remove unused function `act_getkernstring`

This fixes a clang -Wunused warning

Differential Revision: https://reviews.freebsd.org/D4697
Reported by: Jenkins
Reviewed by: araujo, bapt
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r292983:
bz [Thu, 31 Dec 2015 11:23:39 +0000 (11:23 +0000)]
MFC r292983:

 Bump copyright year.

 Happy New Year 2016!

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

8 years agoMFC r292813.
cy [Thu, 31 Dec 2015 06:01:07 +0000 (06:01 +0000)]
MFC r292813.

Correct __FreeBSD__ check.

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

8 years agoMFC r278860:
ngie [Thu, 31 Dec 2015 03:55:02 +0000 (03:55 +0000)]
MFC r278860:
r278860 (by jmg):

remove NULL check as M_WAITOK will not return NULL

Reviewed by: jhb
Sponsored by: FreeBSD Foundation

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

8 years agoMFC nv(3) and part of nv(9) to stable/10
ngie [Thu, 31 Dec 2015 03:28:14 +0000 (03:28 +0000)]
MFC nv(3) and part of nv(9) to stable/10

This includes the following revisions from head:

r258065,r258594,r259430,r260222,r261407,r261408,r263479,r264021,r266351,
r269603,r271026,r271027,r271028,r271241,r271578,r271579,r271847,r272102,
r272843,r273752,r277920,r277921,r277925,r277926,r277927,r279421,r279422,
r279423,r279424,r279425,r279426,r279427,r279428,r279429,r279430,r279431,
r279432,r279434,r279435,r279436,r279438,r279439,r279440,r279760,r282122,
r282254,r282257,r282304,r282312,r285339,r288340

This change reverts stable/10@r282122 and stable/10@r288340, and re-MFCs the
series again (r282122, r285339, and r288340).

More changes are pending to nv(9)/pci(4) after further review/work. Please see
the Phabricator review for more details (both https://reviews.freebsd.org/D4232
and https://reviews.freebsd.org/D4249 ).

- Tested with:
-- Booting VMware Fusion 8.1.0 running on a Haswell Apple Macbook Pro
-- Booting a Haswell machine with zfs and running some stress workloads with
   VirtualBox guests
-- make tinderbox
-- kyua test -k /usr/tests/lib/libnv

Differential Revision: https://reviews.freebsd.org/D4249 (part of a larger diff)
Relnotes: yes
Reviewed by: oshogbo (implicit), sbruno (implicit)
Submitted by: Kevin Bowling <kevin.bowling@kev009.com>
Sponsored by: EMC / Isilon Storage Division

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

8 years agoMFC r287220:
jamie [Thu, 31 Dec 2015 01:26:43 +0000 (01:26 +0000)]
MFC r287220:

  Fix a conversion error in rc.d/jail

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

8 years agoMFC r292759:
jamie [Thu, 31 Dec 2015 01:24:16 +0000 (01:24 +0000)]
MFC r292759:

  Let old-style (shell-based) jail configuration handle jail names that
  contain characters not allowed in a shell variable (such as "-").
  These will be replaced by an underscore in jail config variables,
  e.g. for jail "foo-bar" you would set "jail_foo_bar_hostname".

  This is separate from the current code that changes the jail names
  if they contain "." or "/".  It also doesn't apply to jails defined
  in a jail.conf file.

PR: 191181

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

8 years agoMFC: r292846, r292847, r292849
bapt [Wed, 30 Dec 2015 23:25:45 +0000 (23:25 +0000)]
MFC: r292846, r292847, r292849

Restore dryrun support for pw groupmod
Remove useless assignement of linelen
Simplify code for parsing extra groups

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

8 years agoMFC r278449, r278926:
gjb [Wed, 30 Dec 2015 13:12:54 +0000 (13:12 +0000)]
MFC r278449, r278926:

 r278449:
  Enable multi-threaded xz(1) compression for release install
  media.

 r278926 (rpaulo):
  Use xz(1) via pipe when compressing the release distribution
  tarballs.

Tested on: stable/10@r292855
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r292765: Allocate separate scratch space for scanner purposes.
mav [Wed, 30 Dec 2015 11:55:19 +0000 (11:55 +0000)]
MFC r292765: Allocate separate scratch space for scanner purposes.

This space does not require DMA syncing. It reduces lock scope of the DMA
scratch space.  It allows whole DMA scratch space to be used to I/O, so now
we can fetch up to ~1000 ports from SNS.

Due to the last fact, increase maximal number of ports from 256 to 1024.

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

8 years agoMFC r292764: Split DMA buffers for request, response and ATIO queues.
mav [Wed, 30 Dec 2015 11:54:37 +0000 (11:54 +0000)]
MFC r292764: Split DMA buffers for request, response and ATIO queues.

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

8 years agoMFC r292745: Use single DMA tag for scratch areas of all virtual ports.
mav [Wed, 30 Dec 2015 11:53:21 +0000 (11:53 +0000)]
MFC r292745: Use single DMA tag for scratch areas of all virtual ports.

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

8 years agoMFC r292741: Make port logins asynchronous, following r292739 logic.
mav [Wed, 30 Dec 2015 11:51:35 +0000 (11:51 +0000)]
MFC r292741: Make port logins asynchronous, following r292739 logic.

This is even more important since it involves more network operations and
more prone to delays and timeouts.

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