]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC 296416:
mp [Thu, 17 Mar 2016 00:32:29 +0000 (00:32 +0000)]
MFC 296416:

Signal handling within tcsh vfork code path will conflict with some system
libraries (such as libthr) which maintain their own signal state. This
change adds the tcsh SAVESIGVEC option to save and restore the sigvecs for
the signals the child modifies before it execs.

Reviewed by: kib, rwatson
Reported by: kib

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

8 years agoMerge r296956:
glebius [Wed, 16 Mar 2016 22:35:55 +0000 (22:35 +0000)]
Merge r296956:

  Due to invalid use of a signed intermediate value in the bounds checking
  during argument validity verification, unbound zero'ing of the process LDT
  and adjacent memory can be initiated from usermode.

Submitted by:   CORE Security
Patch by:       kib
Security:       SA-16:15

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

8 years agoMFC r296807: (this time with 100% fewer unintended changes mixed in)...
ian [Wed, 16 Mar 2016 16:52:31 +0000 (16:52 +0000)]
MFC r296807: (this time with 100% fewer unintended changes mixed in)...

  Require firewall setup before running rc.d/netwait, otherwise the ping
  packets sent by netwait may not get through.

PR: 207916

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

8 years agoRevert r296940, it contained unintended changes, and will be redone.
ian [Wed, 16 Mar 2016 16:50:13 +0000 (16:50 +0000)]
Revert r296940, it contained unintended changes, and will be redone.

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

8 years agoMFC r296908:
kib [Wed, 16 Mar 2016 16:42:01 +0000 (16:42 +0000)]
MFC r296908:
Force the desired alignment of the user save area.

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

8 years agoMFC r296807:
ian [Wed, 16 Mar 2016 16:21:30 +0000 (16:21 +0000)]
MFC r296807:

  Require firewall setup before running rc.d/netwait, otherwise the ping
  packets sent by netwait may not get through.

PR: 207916

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

8 years agoMFC r296319:
kib [Wed, 16 Mar 2016 15:34:16 +0000 (15:34 +0000)]
MFC r296319:
Fix handling of DT_TEXTREL for an object with more than one read-only
segment.

PR: 207631

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

8 years agoMFC r296299 - Remove redundant NULL pointer comparison.
cy [Wed, 16 Mar 2016 01:48:32 +0000 (01:48 +0000)]
MFC r296299 - Remove redundant NULL pointer comparison.

Reported by: PVS-Studio (V595) in Differential Revision D5245

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

8 years agoMFC r296525:
bdrewery [Tue, 15 Mar 2016 17:06:40 +0000 (17:06 +0000)]
MFC r296525:

  Just exit in the child if execve(2) fails.

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

8 years agoMFC r296524:
bdrewery [Tue, 15 Mar 2016 17:05:28 +0000 (17:05 +0000)]
MFC r296524:

  Filemon: Attach from the child to avoid racing with the parent attach.

Relnotes: yes

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

8 years agoMFC r296320:
kib [Tue, 15 Mar 2016 10:45:55 +0000 (10:45 +0000)]
MFC r296320:
Adjust _callout_stop_safe() return value for the subr_sleepqueue.c needs
when migrating callout was blocked, but running one was not.

PR: 200992

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

8 years agoMFC r296579
davidcs [Mon, 14 Mar 2016 23:21:06 +0000 (23:21 +0000)]
MFC r296579
Fix code so that buf_ring allocation for Tx Queues and their mutexes
is done during during bxe_attach() and freed during bxe_detach()

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

8 years agoMFC r293878,r293880,r295116,r295117,r295477:
ngie [Mon, 14 Mar 2016 01:35:46 +0000 (01:35 +0000)]
MFC r293878,r293880,r295116,r295117,r295477:

r293878:

Remove unnecessary kldload logic added to geom_subr.sh in r293028

r293880:

PID file support hasn't been committed for ggated(8) yet. Unbreak running
the testcase more than once by restoring the "killall ggated"

r295116:

Add an additional 1 second sleep to after calling ggatec before calling
dd to defeat a race when writing out to the geom_gate(4) device

This will quell the Jenkins failure emails until I come up with a better
solution

r295117:

Use the pidfile support added to ggated(8) in r294973 to ensure that the
ggated(8) daemon used by the tests is the instance specifically invoked by
the tests instead of one or more daemon instances running on the system

r295477:

Similar to r295116, add an additional 1 second sleep after calling ggatel
before calling dd to defeat a race when writing out to the geom_gate(4)
device

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

8 years agoMFC r293821:
ngie [Mon, 14 Mar 2016 01:31:40 +0000 (01:31 +0000)]
MFC r293821:

Integrate
tools/regression/geom_{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}
in to the FreeBSD test suite as
tests/sys/geom/class/{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}

The tools/regression/geom and tools/regression/geom_part testcases are being
left alone because both test sets are both currently broken.

The majority of this work was done on ^/user/ngie/more-tests2 . The differences
are as follows:
- tests/sys/geom/class/Makefile.inc is not present; it was
  inlined into the class's Makefiles for explicitness.
- The testcases officially require root via kyua
- The geom_gate(4) tests don't use the pidfile changes proposed in
  https://reviews.freebsd.org/D4836 .

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

8 years agoMFC r294973:
ngie [Sun, 13 Mar 2016 23:32:59 +0000 (23:32 +0000)]
MFC r294973:

Add pidfile support to ggated(8)

The tests will manipulate the system daemon today, which can cause undesired
service interruption when the tests are run.

This change allows the geom_gate tests to be run with an arbitrary ggated(8)
daemon / geom_gate(4) device pairing.

Other changes:
- Sort #includes
- Use a more common idiom for parsing options with getopt(3)

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

8 years agoMFC r293621,r293622,r293815:
ngie [Sun, 13 Mar 2016 23:29:11 +0000 (23:29 +0000)]
MFC r293621,r293622,r293815:

r293621:

- Delete non-TAP testcases
- Add a conf.sh file for executing common functions with geom_gate
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox
- Add/increase sleeps to try and improve synchronization
- Add debug output for when checksums fail

test-1.t:
- Use pkill for killing ggated

r293622:

Remove Makefile now that the testcases are all TAP based and
prove -rv can be used on them

r293815:

Add conf.sh file missed in r293621

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

8 years agoAdd patch corresponding to r296800.
dim [Sun, 13 Mar 2016 18:34:32 +0000 (18:34 +0000)]
Add patch corresponding to r296800.

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

8 years agoPull in r219512 from upstream llvm trunk (by Hal Finkel):
dim [Sun, 13 Mar 2016 18:32:10 +0000 (18:32 +0000)]
Pull in r219512 from upstream llvm trunk (by Hal Finkel):

  [MiSched] Fix a logic error in tryPressure()

  Fixes a logic error in the MachineScheduler found by Steve Montgomery
  (and confirmed by Andy). This has gone unfixed for months because the
  fix has been found to introduce some small performance regressions.
  However, Andy has recommended that, at this point, we fix this to
  avoid further dependence on the incorrect behavior (and then
  follow-up separately on any regressions), and I agree.

  Fixes PR18883.

This fixes a possible "ran out of registers" error when compiling
www/firefox 45.0 on i386.

Direct commit to stable/10, because head already has this fix since the
llvm/clang 3.6.0 import.

PR: 207837

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

8 years agoMFC r296542:
dchagin [Sun, 13 Mar 2016 08:19:27 +0000 (08:19 +0000)]
MFC r296542:
Load linux64 module for amd64 if Linux abi enabled.

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

8 years agoMFC r294891:
ngie [Sun, 13 Mar 2016 01:20:20 +0000 (01:20 +0000)]
MFC r294891:

Require /sbin/mount_cd9660 when running the cd9660 tests

In some cases the test system might not have mount_cd9660(8). Don't
implicitly rely on it while testing cd9660 support; explicitly rely
on it

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

8 years agoMFC r293443:
ngie [Sun, 13 Mar 2016 01:17:53 +0000 (01:17 +0000)]
MFC r293443:

- Make test-1.sh into a TAP testable testcase
- Delete test-2.sh as it was an incomplete testcase, and the contents were
  basically a subset of test-1.sh
- Add a conf.sh file for executing common functions with geom_uzip
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

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

8 years agoMFC r293442:
ngie [Sun, 13 Mar 2016 01:16:50 +0000 (01:16 +0000)]
MFC r293442:

- Add a geom_stripe specific cleanup function and trap on that function at
  exit so things are cleaned up properly
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

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

8 years agoMFC r293441:
ngie [Sun, 13 Mar 2016 01:15:34 +0000 (01:15 +0000)]
MFC r293441:

- Add a geom_shsec specific cleanup function and trap on that function at
  exit so things are cleaned up properly
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

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

8 years agoMFC r293438:
ngie [Sun, 13 Mar 2016 01:14:07 +0000 (01:14 +0000)]
MFC r293438:

- Add a geom_raid3 specific cleanup function and trap on that function at
  exit so things are cleaned up properly
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

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

8 years agoMFC r293437:
ngie [Sun, 13 Mar 2016 01:12:58 +0000 (01:12 +0000)]
MFC r293437:

- Add a conf.sh file for executing common functions with gnop
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

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

8 years agoMFC r293436:
ngie [Sun, 13 Mar 2016 01:08:10 +0000 (01:08 +0000)]
MFC r293436:

- Add a conf.sh file for executing common functions with geli
-- Use linear probing to find the first unique md(4) device, unlike the other
   code which uses attach_md, as geli(8) allocates the md(4) devices itself
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

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

8 years agoMFH (r296633): upgrade to 7.2p2 (fixes xauth command injection bug)
des [Sat, 12 Mar 2016 23:53:20 +0000 (23:53 +0000)]
MFH (r296633): upgrade to 7.2p2 (fixes xauth command injection bug)
MFH (r296634): re-add aes-cbc to server-side default cipher list
MFH (r296651, r296657): fix gcc build of pam_ssh

PR: 207679
Security:       CVE-2016-3115

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

8 years agoMFC r293434:
ngie [Sat, 12 Mar 2016 23:11:08 +0000 (23:11 +0000)]
MFC r293434:

- Use attach_md for memory disks so they can be tracked.
- Add a geom_concat specific cleanup function and trap on that function at
  exit so things are cleaned up properly
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

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

8 years agoMFC r295416:
bdrewery [Sat, 12 Mar 2016 19:55:22 +0000 (19:55 +0000)]
MFC r295416:

  Fix the gcc build after r295407.

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

8 years agoMFC r268620,r294876,r294877:
bdrewery [Sat, 12 Mar 2016 19:26:21 +0000 (19:26 +0000)]
MFC r268620,r294876,r294877:

  r268620:
    Make generation of nslexer.c more robust.
  r294876:
    nslexer.c does not depend on nsparser.h.
  r294877:
    Replace nslexer.l->nslexer.c custom rule with a -D CFLAG.

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

8 years agoMFC r294873:
bdrewery [Sat, 12 Mar 2016 19:22:19 +0000 (19:22 +0000)]
MFC r294873:

  Set a value for _RECURSING_PROGS for debugging.

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

8 years agoMFC r294878:
bdrewery [Sat, 12 Mar 2016 19:20:48 +0000 (19:20 +0000)]
MFC r294878:

  Revert yacc dependency back to pre-r241298.

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

8 years agoMFC r296148:
bdrewery [Sat, 12 Mar 2016 19:18:27 +0000 (19:18 +0000)]
MFC r296148:

  Remove old compatibility checks.

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

8 years agoMFC r294899:
ngie [Sat, 12 Mar 2016 19:15:09 +0000 (19:15 +0000)]
MFC r294899:

Add debug output via ATF_REQUIRE_MSG when the first call to
mlock(2) fails

This helps identify the problem with running this test on my VM
hosts (ENOMEM)

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

8 years agoMFC r296554:
bdrewery [Sat, 12 Mar 2016 19:14:21 +0000 (19:14 +0000)]
MFC r296554:

  Remove things set already by bsd.progs.mk.

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

8 years agoMFC r296122:
bdrewery [Sat, 12 Mar 2016 19:12:52 +0000 (19:12 +0000)]
MFC r296122:

  (partial) Move PROGS logic to proper place and remove redundant and unneeded
  logic.

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

8 years agoMFC r295079:
ngie [Sat, 12 Mar 2016 19:09:51 +0000 (19:09 +0000)]
MFC r295079:

Fix the type for hw.ncpu, so sysctlbyname doesn't consistently fail on
64-bit architectures where sizeof(int) != sizeof(size_t).

PR: 206758

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

8 years agoMFC r296322:
bdrewery [Sat, 12 Mar 2016 19:08:58 +0000 (19:08 +0000)]
MFC r296322:

  Remove self-reference to destroy_dev_drain(9).

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

8 years agoMFC r296286,r296470,r296472,r296473,r296575:
bdrewery [Sat, 12 Mar 2016 19:07:21 +0000 (19:07 +0000)]
MFC r296286,r296470,r296472,r296473,r296575:

  r296286:
    Remove filemon->lock wrappers.
  r296470:
    Only call bwillwrite() for logging to vnodes, as other fo_write() calls do.
  r296472:
    Require kldunload -f to unload.
  r296473:
    Add missing break for r296472.
  r296575:
    FILEMON_SET_FD: Disallow changing the fd.

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

8 years agoMFC r294894:
ngie [Sat, 12 Mar 2016 19:05:49 +0000 (19:05 +0000)]
MFC r294894:

Adjust vm.max_wired in order to avoid hitting EAGAIN artificially

Set vm.max_wired to INT_MAX in :mlock_err, :mlock_mmap, and :mlock_nested to
avoid hitting EAGAIN artificially on the system when running the tests

Require root privileges in order to set the sysctl

Add allow_sysctl_side_effects to require.config as this test is now adjusting
sysctls that can affect the global system state

Unlike the version submitted by cem in OneFS, this version uses a scratch file
to save/restore the previous value of the sysctl. I _really_, _really_ wish
there were better hooks in atf/kyua for per test suite setup/teardown -- using
a file is kludgy, but it's the best I can do to avoid situations where (for
instance), sysctl(3) may fail and drop a core outside the kyua sandbox.

Based on a patch submitted by cem, but modified to take business logic out of
ATF_TP_ADD_TCS(3).

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

8 years agoMFC r295161,r296014:
bdrewery [Sat, 12 Mar 2016 19:02:20 +0000 (19:02 +0000)]
MFC r295161,r296014:

  r295161:
    Add order for installworld/distribution.
  r296014:
    Add order for installworld/installkernel.

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

8 years agoMFC r295341,r295345:
ngie [Sat, 12 Mar 2016 19:00:42 +0000 (19:00 +0000)]
MFC r295341,r295345:

r295341:

Require /bin/getfacl and /bin/setfacl when running the acl tests

For cases where these utilities aren't installed, the tests would fail today
in a non-intuitive manner on sub-testcase #3 in each of the test scripts

r295345:

Use basenames for getfacl, setfacl, and zpool to work around the
fact that Jenkins hardcodes image sizes to 2GB with the FreeBSD_HEAD
job

This is to stop the unnecessary failure emails because we've gone
over the 2GB limit

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

8 years agoMFC r296002,r296012:
bdrewery [Sat, 12 Mar 2016 18:59:03 +0000 (18:59 +0000)]
MFC r296002,r296012:

  r296002:
    Don't hide AR command as bsd.lib.mk's r283925 changed as well.
  r296012:
    OBJS and POBJS have not been used since r215127.

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

8 years agoMFC r295994,r296000:
bdrewery [Sat, 12 Mar 2016 18:57:34 +0000 (18:57 +0000)]
MFC r295994,r296000:

  r295994:
    PROGS: Remove the 'build one' optimization since it breaks 'build multiple'
  r296000:
    PROGS: Only the main process will install INCS.

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

8 years agoMFC r295121:
ngie [Sat, 12 Mar 2016 18:55:48 +0000 (18:55 +0000)]
MFC r295121:

Delete argsize to fix a -Wunused-but-set-variable warning with gcc 4.9

The variable isn't actually checked -- just the end result which gets
returned from the function

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

8 years agoMFC r295980:
bdrewery [Sat, 12 Mar 2016 18:55:16 +0000 (18:55 +0000)]
MFC r295980:

  Support a WANT_MAKE_VERSION.

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

8 years agoMFC r295977:
bdrewery [Sat, 12 Mar 2016 18:54:02 +0000 (18:54 +0000)]
MFC r295977:

  Properly fix these builds by adding NO_WMISSING_VARIABLE_DECLARATIONS from
  r249657.

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

8 years agoMFC r295976:
bdrewery [Sat, 12 Mar 2016 18:51:38 +0000 (18:51 +0000)]
MFC r295976:

  PROGS: Only recurse on called targets like done for SUBDIR in r291635.

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

8 years agoMFC r295119:
ngie [Sat, 12 Mar 2016 18:40:51 +0000 (18:40 +0000)]
MFC r295119:

Remove `r_tmp` to fix a -Wunused-but-set-variable warning with gcc 4.9

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

8 years agoMFC r295118:
ngie [Sat, 12 Mar 2016 18:36:13 +0000 (18:36 +0000)]
MFC r295118:

Add #include <string.h> to mute warning from clang/gcc about implicitly
declaring strcmp(3)

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

8 years agoMFC r295407:
kib [Sat, 12 Mar 2016 17:33:40 +0000 (17:33 +0000)]
MFC r295407:
Make libc __pthread_map_stacks_exec() interposed.

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

8 years agoMFC r295391:
kib [Sat, 12 Mar 2016 17:28:30 +0000 (17:28 +0000)]
MFC r295391:
Remove the assert which outlived its usefulness.

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

8 years agoMFC r295352:
kib [Sat, 12 Mar 2016 17:25:33 +0000 (17:25 +0000)]
MFC r295352:
Do not call vn_fullpath(9) (through the pmc_getfilename() wrapper)
when its result is immediately ignored, i.e. for kernel processes
forked from the user process.  Do not test for non-null before freeing
string.

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

8 years agoMFC r295489:
kib [Sat, 12 Mar 2016 17:23:15 +0000 (17:23 +0000)]
MFC r295489:
Remove useless checks for NULL before calling free(9), in the kernel
elf linkers.

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

8 years agoMFC r295488:
kib [Sat, 12 Mar 2016 17:17:34 +0000 (17:17 +0000)]
MFC r295488:
Finish r173600.  There is no need to test a condition if both cases
result in the same value.

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

8 years agoMFC r257811 (by markj):
kib [Sat, 12 Mar 2016 17:12:00 +0000 (17:12 +0000)]
MFC r257811 (by markj):
Include rtld itself when iterating over loaded ELF objects in
dl_iterate_phdr(3).

MFC r294373:
Do not call callbacks for dl_iterate_phdr(3) with the rtld bind and
phdr locks locked.

MFC r294470 (by kan):
Fix initlist_add_object invocation parameters.

MFC r294936 (by kan):
Do not unlock rtld_phdr_lock over callback invocations.

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

8 years agoMFC r296348:
ae [Fri, 11 Mar 2016 09:41:46 +0000 (09:41 +0000)]
MFC r296348:
  Use correct size for malloc.

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

8 years agoMFC 296280:
jgh [Fri, 11 Mar 2016 01:39:28 +0000 (01:39 +0000)]
MFC 296280:

PR: 202971
Submitted by: adamw@FreeBSD.org
Reviewed by: bdrewery@
Approved by: wblock@
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D5429

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

8 years agoMFC r296610:
smh [Thu, 10 Mar 2016 23:37:16 +0000 (23:37 +0000)]
MFC r296610:

ZFS send fails to transmit some holes

PR: 207714
Approved by: re (gjb)
Sponsored by: Multiplay

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

8 years agoMFC r296071
davidcs [Wed, 9 Mar 2016 21:30:21 +0000 (21:30 +0000)]
MFC r296071
Upgrade the firmware carried in driver and loaded during hardware
initialization (a.k.a STORM firmware) to version 7.13.1 (latest version)

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

8 years agoMFC r283869 (by araujo)
truckman [Wed, 9 Mar 2016 17:40:33 +0000 (17:40 +0000)]
MFC r283869 (by araujo)

Fix the wrong format, format specifies type 'int' but the argument has type
'long', it was spotted by clang.

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

8 years agoMFC r295966:
kib [Wed, 9 Mar 2016 10:21:13 +0000 (10:21 +0000)]
MFC r295966:
Return dst as the result from memcpy(9) on amd64.

PR: 207422

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

8 years agoMFC r296009:
kib [Wed, 9 Mar 2016 10:19:32 +0000 (10:19 +0000)]
MFC r296009:
In bpf_getdltlist(), do not call copyout(9) while holding bpf lock.
Copy the data into temprorary malloced buffer and drop the lock for
copyout.

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

8 years agoMFC r295998:
kib [Wed, 9 Mar 2016 10:09:51 +0000 (10:09 +0000)]
MFC r295998:
Remove references to Giant in the description of vrele(9).  Add notes
about vnode lock and sleeping.

MFC r296001:
Fix year.

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

8 years agoMFC r295967:
ae [Wed, 9 Mar 2016 10:01:28 +0000 (10:01 +0000)]
MFC r295967:
  Fix useless check. m_pkthdr.len should be equal to orglen.

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

8 years agoMFC r281920,r284247,r284248,r295651
vangyzen [Tue, 8 Mar 2016 20:24:12 +0000 (20:24 +0000)]
MFC r281920,r284247,r284248,r295651

ichsmb: Add PCI device IDs for Intel Sunrise Point-H,
Wellsburg, and Lynx-Point LP SMBus controllers.
Remove whitespace.

Sponsored by: Dell Inc.

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

8 years agoMFC r295675:
pfg [Tue, 8 Mar 2016 14:38:06 +0000 (14:38 +0000)]
MFC r295675:
Fix "naive" use of ftell(3).

Secure coding practices, FIO19-C.

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

8 years agoMFC r295672:
pfg [Mon, 7 Mar 2016 16:18:52 +0000 (16:18 +0000)]
MFC r295672:
crontab: ftruncate() with ftello() instead of ftell().

Obtained from: OpenBSD (CVS rev. 1.47)

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

8 years agoMFC r295671:
pfg [Mon, 7 Mar 2016 16:12:04 +0000 (16:12 +0000)]
MFC r295671:
cron: use (char *)NULL instead of (char *)0 in execle.

Obtained from: OpenBSD (CVS Rev 1.25)

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

8 years agoMFC r295861:
pfg [Mon, 7 Mar 2016 16:05:53 +0000 (16:05 +0000)]
MFC r295861:

ostiInitiatorIOCompleted(): wrong sizeof() argument.

Detected by: PVS Static Analysis
CID: 13316011331523

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

8 years agoMFC r295810:
pfg [Mon, 7 Mar 2016 15:52:51 +0000 (15:52 +0000)]
MFC r295810:
firewire: fix a mismatch introduced in r230558.

Found by: PVS Static Analysis
Reviewed by: sbruno

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

8 years agoSpell "maximum" correctly.
sbruno [Mon, 7 Mar 2016 13:43:23 +0000 (13:43 +0000)]
Spell "maximum" correctly.

noted by mav@

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

8 years agoTrim old entries.
hrs [Mon, 7 Mar 2016 10:59:28 +0000 (10:59 +0000)]
Trim old entries.

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

8 years ago- Use FPI and catalog resolution instead of system entities. This change
hrs [Mon, 7 Mar 2016 10:56:38 +0000 (10:56 +0000)]
- Use FPI and catalog resolution instead of system entities.  This change
  fixes build with a non-standard DOC_PREFIX, but it is still a temporal
  measure because some of them should be done by using XInclude,
  not by entity reference.

- Trim old entries and bump version numbers.

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

8 years agoMFC r295928:
hselasky [Mon, 7 Mar 2016 09:42:16 +0000 (09:42 +0000)]
MFC r295928:
Configure the correct bMaxPacketSize for control endpoints before
requesting the initial complete device descriptor and not as part of
the subsequent babble error recovery. Babble means that the received
USB packet was bigger than than configured maximum packet size. This
only affects enumeration of FULL speed USB devices which use a
bMaxPacketSize different from 8 bytes. This patch might help fix
enumeration of USB devices which exhibit USB I/O errors in dmesg
during boot.

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

8 years agoMFC r295923:
hselasky [Mon, 7 Mar 2016 09:37:07 +0000 (09:37 +0000)]
MFC r295923:
Be more verbose when truncating number of HID items.

Suggested by: Larry Rosenman <ler@lerctr.org>

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

8 years agoMFC r295608:
hselasky [Mon, 7 Mar 2016 09:35:20 +0000 (09:35 +0000)]
MFC r295608:
Fix variable assignment inside if-clause in the smsc driver.
Found by D5245 / PVS.

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

8 years agoMFC r296392: Set bhsdi_target_transfer_tag to reserved value, which is
mav [Mon, 7 Mar 2016 09:00:27 +0000 (09:00 +0000)]
MFC r296392: Set bhsdi_target_transfer_tag to reserved value, which is
0xffffffff.

This should be a purely cosmetic change.

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

8 years agoMFC r295562: Don't check CmdSN for initial login request.
mav [Mon, 7 Mar 2016 08:59:06 +0000 (08:59 +0000)]
MFC r295562: Don't check CmdSN for initial login request.

This fixes connection errors for some initiators not starting CmdSN
from zero.

While there, fix wrong status details reported for couple errors.

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

8 years agoMFC r295324: Add error check to not leak logs with syntax errors in case
mav [Mon, 7 Mar 2016 08:57:51 +0000 (08:57 +0000)]
MFC r295324: Add error check to not leak logs with syntax errors in case
of failed `zpool history`.

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

8 years agoMFC r296419 (by kib):
dim [Mon, 7 Mar 2016 07:54:48 +0000 (07:54 +0000)]
MFC r296419 (by kib):

In the link_elf_obj.c, handle sections of type SHT_AMD64_UNWIND same
as SHT_PROGBITS.  This is needed after the clang 3.8 import, which
generates that type for .eh_frame section, which had SHT_PROGBITS type
before.

Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com>
PR: 207729
Tested by: dim (previous version)
Sponsored by: The FreeBSD Foundation

MFC r296428:

Since kernel modules can now contain sections of type SHT_AMD64_UNWIND,
the boot loader should not skip over these anymore while loading images.
Otherwise the kernel can still panic when it doesn't find the .eh_frame
section belonging to the .rela.eh_frame section.

Unfortunately this will require installing boot loaders from sys/boot
before attempting to boot with a new kernel.

Reviewed by: kib

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

8 years agoMFC r295901:
dim [Mon, 7 Mar 2016 07:49:01 +0000 (07:49 +0000)]
MFC r295901:

Fix a problem in ld, causing it to sometimes print messages similar to
"invalid string offset 65521 >= 27261 for section `.strtab'". for object
files produced by recent versions of clang.

In BFD's elf_create_symbuf() function, the size of the symbol buffer
('ssymbuf') is not calculated correctly, and the initial value for the
'ssym' variable is off by one, since 'ssymbuf' has shndx_count + 1
members.

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

8 years agoMFC r295844:
dim [Mon, 7 Mar 2016 07:46:17 +0000 (07:46 +0000)]
MFC r295844:

Fix "invalid type '(null)'" usage messages in zfs(8) and zpool(8).

Currently, zfs(8) and zpool(8) print "invalid type '(null)'" or similar
messages, if you pass in invalid types, sources or column names for "zfs
get", "zfs list" and "zpool get".  This is because the commands use
getsubopt(3), and in case of failure, they print 'value', which is NULL
when sub options don't match.

They should print 'suboptarg' instead, which is the documented way to
get at the non-matching sub option value.

Reviewed by: smh
Differential Revision: https://reviews.freebsd.org/D5365

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

8 years agoMFC r295836:
kp [Sun, 6 Mar 2016 08:52:03 +0000 (08:52 +0000)]
MFC r295836:
ifconfig(8): can't use 'name' or 'description' when creating interface with auto numbering

If one does 'ifconfig tap create name blah', it will return error because the
'name' command doesn't properly populate the request sent to ioctl(...). The
'description' command has the same bug, and is also fixed with this patch.

If one does 'ifconfig tap create mtu 9000 name blah', it DOES work, but 'tap0'
(or other sequence number) is echoed, instead of the expected 'blah'. (assuming
the name change actually succeeded)

PR:     206876
Submitted by:       Marie Helene Kvello-Aune <marieheleneka@gmail.com>
Differential Revision:      https://reviews.freebsd.org/D5341

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

8 years agoMFC:
dwmalone [Sun, 6 Mar 2016 08:40:21 +0000 (08:40 +0000)]
MFC:
r295924: Make sure that hash-based db files fsync befor closing/syncing.
r295925: We no longer need O_SYNC pwd_mkd
r295465: We no longer need O_SYNC on services_mkdb
r295800: We no longer need O_SYNC on cap_mkdb

This should improve the performance of building db files.

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

8 years agoMFC r295276: Add defines for WRITE_UNCORRECTABLE ATA command, and improve
rpokala [Sun, 6 Mar 2016 02:33:02 +0000 (02:33 +0000)]
MFC r295276: Add defines for WRITE_UNCORRECTABLE ATA command, and improve
command logging

Add #defines for ATA_WRITE_UNCORRECTABLE48 and its features. Update the
decoding in ATACAM to recognize the new values. Also improve command
decoding for a few other commands (SMART, NOP, SET_FEATURES). Bring the
decoding in ata(4) up to parity with ATACAM.

Sponsored by: Panasas, Inc.

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

8 years ago- Reset stable/10 back to -PRERELEASE status now that releng/10.3
marius [Fri, 4 Mar 2016 01:29:09 +0000 (01:29 +0000)]
- Reset stable/10 back to -PRERELEASE status now that releng/10.3
  has been branched.
- Update __FreeBSD_version to reflect the new -STABLE branch.

Approved by: re (implicit)

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

8 years agoRe-enable SSLv2 support to restore ABI.
jkim [Fri, 4 Mar 2016 00:40:15 +0000 (00:40 +0000)]
Re-enable SSLv2 support to restore ABI.

Excerpt from CHANGES:

    Even if "enable-ssl2" is used, users who want to negotiate SSLv2 via
    the version-flexible SSLv23_method() will need to explicitly call
    either of:

SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
    or
SSL_clear_options(ssl, SSL_OP_NO_SSLv2);

    as appropriate.  Even if either of those is used, or the application
    explicitly uses the version-specific SSLv2_method() or its client and
    server variants, SSLv2 ciphers vulnerable to exhaustive search key
    recovery have been removed.  Specifically, the SSLv2 40-bit EXPORT
    ciphers, and SSLv2 56-bit DES are no longer available.

Approved by: re (marius, gjb), so (delphij)

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

8 years agoMFC 285730
gnn [Thu, 3 Mar 2016 23:25:31 +0000 (23:25 +0000)]
MFC 285730
Only report the lack of ALTQ support if pfctl is using verbose (-v) mode.

PR: 194935
Submitted by: Jim Thompson
Approved by: re (gjb)

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

8 years agoMFC: r296025:
kp [Thu, 3 Mar 2016 07:16:35 +0000 (07:16 +0000)]
MFC: r296025:

pf: Fix possible out-of-bounds write

In the DIOCRSETADDRS ioctl() handler we allocate a table for struct pfr_addrs,
which is processed in pfr_set_addrs(). At the users request we also provide
feedback on the deleted addresses, by storing them after the new list
('bcopy(&ad, addr + size + i, sizeof(ad));' in pfr_set_addrs()).

This means we write outside the bounds of the buffer we've just allocated.
We need to look at pfrio_size2 instead (i.e. the size the user reserved for our
feedback). That'd allow a malicious user to specify a smaller pfrio_size2 than
pfrio_size though, in which case we'd still read outside of the allocated
buffer. Instead we allocate the largest of the two values.

Reported By:        Paul J Murphy <paul@inetstat.net>
PR:         207463
Approved by: re (marius)

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

8 years agoMerge OpenSSL 1.0.1s. This is a security update.
delphij [Wed, 2 Mar 2016 15:43:01 +0000 (15:43 +0000)]
Merge OpenSSL 1.0.1s.  This is a security update.

Relnotes: yes
Approved by: re (so@ implicit)

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

8 years agoMFC r295969:
ae [Wed, 2 Mar 2016 13:38:21 +0000 (13:38 +0000)]
MFC r295969:
  Fix bug in filling and handling ipfw's O_DSCP opcode.
  Due to integer overflow CS4 token was handled as BE.

  PR: 207459
Approved by: re (gjb)

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

8 years agoMFC r295995:
bdrewery [Wed, 2 Mar 2016 01:24:41 +0000 (01:24 +0000)]
MFC r295995:

  BDECFLAGS has not been available since r82604 removed
  /etc/defaults/make.conf.

Approved by: re (gjb)

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

8 years agoMFC [Hyper-V]: r296028
sephe [Tue, 1 Mar 2016 02:07:14 +0000 (02:07 +0000)]
MFC [Hyper-V]: r296028

hyperv: Wait 5 seconds for hyperv result, instead of 500ms

This addresses various devices (network, stoarge) attach failure.

Approved by: re (gjb)
Reported by:    Hongxiong Xian <v-hoxian microsoft com>
Tested by:      Hongxiong Xian <v-hoxian microsoft com>
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5435

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

8 years agoMFC r295944:
jimharris [Mon, 29 Feb 2016 15:45:43 +0000 (15:45 +0000)]
MFC r295944:

  nvme: fix intx handler to not dereference ioq during initialization

  This was a regression from r293328, which deferred allocation
  of the controller's ioq array until after interrupts are enabled
  during boot.

Approved by: re (gjb)
Sponsored by: Intel

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

8 years agoUpdate stable/10 to BETA3 in preparation for 10.3-BETA3 builds.
marius [Fri, 26 Feb 2016 00:10:52 +0000 (00:10 +0000)]
Update stable/10 to BETA3 in preparation for 10.3-BETA3 builds.

Approved by: re (implicit)

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

8 years agoMFC: r295906
marius [Fri, 26 Feb 2016 00:09:50 +0000 (00:09 +0000)]
MFC: r295906

Fix and clean up usage of DMA and TSO segments:
- At Intel it is believed that most of their products support "only"
  40 DMA segments so lower {EM,IGB}_MAX_SCATTER accordingly. Actually,
  40 is more than plenty to handle full size TSO packets so it doesn't
  make sense to further distinguish between MAC variants that really
  can do 64 DMA segments. Moreover, capping at 40 DMA segments limits
  the stack usage of {em,igb}_xmit() that - given the rare use of more
  than these - previously hardly was justifiable, while still being
  sufficient to avoid the problems seen with em(4) and EM_MAX_SCATTER
  set to 32.
- In igb(4), pass the actually supported TSO parameters up the stack.
  Previously, the defaults set in if_attach_internal() were applied,
  i. e. a maximum of 35 TSO segments, which made supporting more than
  these in the driver pointless. However, this might explain why no
  problems were seen with IGB_MAX_SCATTER at 64.
- In em(4), take the 5 m_pullup(9) invocations performed by em_xmit()
  in the TSO case into account when reporting TSO parameters upwards.
  In the worst case, each of these calls will add another mbuf and,
  thus, the requirement for an additional DMA segment. So for best
  performance, it doesn't make sense to advertize a maximum of TSO
  segments that typically will require defragmentation in em_xmit().
  Again, this leaves enough room to handle full size TSO packets.
- Drop TSO macros from if_lem.h given that corresponding MACS don't
  support TSO in the first place.

Reviewed by: erj, sbruno, jeffrey.e.pieper_intel.com
Approved by: re (gjb)

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

8 years agoMFC r295830
davidcs [Thu, 25 Feb 2016 22:07:32 +0000 (22:07 +0000)]
MFC r295830
Remove dead code. Code Cleanup. Improve clarity in debug messages

Approved by:re (marius)

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

8 years agoMFC r295823
davidcs [Thu, 25 Feb 2016 20:02:30 +0000 (20:02 +0000)]
MFC r295823

Modified the use of bxe_grc_dump() function so that it can be invoked directly
at any potential error path, where a fwdump is needed.
The fwdump (a.k.a grcdump) is stored in a driver buffer.
The sysctl grcdump_done indicates if a fwdump was taken and waiting to be retrieved.
The sysctl trigger_grcdump can be used to manually trigger a fwdump.

Approved by:re (marius)

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

8 years agoMFC r294854
davidcs [Thu, 25 Feb 2016 19:28:57 +0000 (19:28 +0000)]
MFC r294854
Upgrade FW to 5.4.56
Update driver version to 3.10.26

Approved by:re (marius)

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