]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoFix frexpl() declaration to not include the field name.
trasz [Thu, 9 Jun 2016 20:49:26 +0000 (20:49 +0000)]
Fix frexpl() declaration to not include the field name.

MFC after: 1 month

8 years agoRe-order some jail parameter reading to prevent a vnode leak.
jamie [Thu, 9 Jun 2016 20:43:14 +0000 (20:43 +0000)]
Re-order some jail parameter reading to prevent a vnode leak.

8 years agoUpdate to latest upstream version
des [Thu, 9 Jun 2016 20:40:12 +0000 (20:40 +0000)]
Update to latest upstream version

PR: 209177
Reported by: Vitaly Magerya
MFC after: 1 week

8 years agoClean up some logic in jail error messages, replacing a missing test and
jamie [Thu, 9 Jun 2016 20:39:57 +0000 (20:39 +0000)]
Clean up some logic in jail error messages, replacing a missing test and
a redundant test with a single correct test.

8 years agoDefine tunable instead of using CTLFLAG_RWTUN flag with kern.corefile.
oshogbo [Thu, 9 Jun 2016 20:23:30 +0000 (20:23 +0000)]
Define tunable instead of using CTLFLAG_RWTUN flag with kern.corefile.

The allproc_lock lock used in the sysctl_kern_corefile function is initialized
in the procinit function which is called after setting sysctl values at boot.
That means if we set kern.corefile at boot we will be trying to use
lock with is uninitialized and machine will crash.

If we define kern.corefile as tunable instead of using CTFLAG_RWTUN we will
not call the sysctl_kern_corefile function and we will not use an uninitialized
lock. When machine will boot then we will start using function depending on
the lock.

Reviewed by: pjd

8 years agolibc/rpc: Make use of some xdr_* macros.
pfg [Thu, 9 Jun 2016 19:44:47 +0000 (19:44 +0000)]
libc/rpc: Make use of some xdr_* macros.

xdr_rpcprog and xdr_rpcvers were broken in older versions of FreeBSD
but were fixed in r296394. Give them some use hoping they help make
the code somewhat more readable.

8 years agoFix up r274061
ngie [Thu, 9 Jun 2016 19:12:51 +0000 (19:12 +0000)]
Fix up r274061

Detect /usr/share/dict/words the "right way" by using require.files instead of
the hacked up attempt in the dict(..) function, which didn't work properly on
systems where MK_DICT == no.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoUpdate `goodResult` after recent changes made to the PRNG in libc
ngie [Thu, 9 Jun 2016 18:35:37 +0000 (18:35 +0000)]
Update `goodResult` after recent changes made to the PRNG in libc

The PRNG was changed in r300953/r300956, and subsequently, the numbers
generated have changed. This is expected ABI breakage per ache

X-MFC with: r300953, r300956
Tested with: amd64, i386
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd DDB command "kldstat"
cem [Thu, 9 Jun 2016 18:27:41 +0000 (18:27 +0000)]
Add DDB command "kldstat"

It prints much the same information as kldstat(8) without any arguments.

Suggested by: jhibbits
Sponsored by: EMC / Isilon Storage Division

8 years agokvprintf: Pad %*c to width, like %*s
cem [Thu, 9 Jun 2016 18:24:51 +0000 (18:24 +0000)]
kvprintf: Pad %*c to width, like %*s

Sponsored by: EMC / Isilon Storage Division

8 years agoAdd debug output to aid in determining why `goodResult` != `result`
ngie [Thu, 9 Jun 2016 18:11:42 +0000 (18:11 +0000)]
Add debug output to aid in determining why `goodResult` != `result`

MFC after: 1 week
PR: 210619 (for diagnosis)
Sponsored by: EMC / Isilon Storage Division

8 years agourtwn(4): refresh manpage.
avos [Thu, 9 Jun 2016 17:26:54 +0000 (17:26 +0000)]
urtwn(4): refresh manpage.

Mention URTWN_WITHOUT_UCODE option (r295871), hardware encryption support
(r292175), IBSS (r290651) and HOSTAP (r290631) mode support;
cleanup CAVEATS section (some 11n support was added in r297175 + add a
note about current rate control issues).

8 years agoAdd PCDuino3b dts. It uses the pcduino3 dts from upstream and adds the hdmi node...
manu [Thu, 9 Jun 2016 17:10:19 +0000 (17:10 +0000)]
Add PCDuino3b dts. It uses the pcduino3 dts from upstream and adds the hdmi node, axp gpio and changes the phy mode to rgmii.

Approved by: andrew (mentor)
Differential Revision: https://reviews.freebsd.org/D6775

8 years agoUse -L to specify compat32 library paths instead of -Y
emaste [Thu, 9 Jun 2016 17:03:03 +0000 (17:03 +0000)]
Use -L to specify compat32 library paths instead of -Y

-Y is an uncommon linker option that is rather similar to -L.  In
discussion with Peter it seems early amd64 development might have
required the -Y-specific behaviour, but it is no longer necessary.

Switch to -L which is more widely supported and much more commonly
used, to make it easier to link the FreeBSD base system with linkers
other than ld.bfd.

Submitted by: Rafael Ávila de Espíndola
Differential Revision: https://reviews.freebsd.org/D6681

8 years agoMake sure the OSD methods for jail set and remove can't run concurrently,
jamie [Thu, 9 Jun 2016 16:41:41 +0000 (16:41 +0000)]
Make sure the OSD methods for jail set and remove can't run concurrently,
by holding allprison_lock exclusively (even if only for a moment before
downgrading) on all paths that call PR_METHOD_REMOVE.  Since they may run
on a downgraded lock, it's still possible for them to run concurrently
with PR_METHOD_GET, which will need to use the prison lock.

8 years agoxen/timer: re-introduce the inittodr call in the resume path
royger [Thu, 9 Jun 2016 16:15:01 +0000 (16:15 +0000)]
xen/timer: re-introduce the inittodr call in the resume path

r298930 removed the inittodr call, but it seems like this prevents
"calcru: runtime went backwards ..." messages from occasionally appearing
when resuming from migration.

Reported by: Karl Pielorz <kpielorz@tdx.co.uk>
Sponsored by: Citrix Systems R&D

8 years agoAdd place holder for SDIO CAM stuff for CCB XPT type.
imp [Thu, 9 Jun 2016 16:05:56 +0000 (16:05 +0000)]
Add place holder for SDIO CAM stuff for CCB XPT type.

Sponsored by: Netflix

8 years agoAdd NVME IO type.
imp [Thu, 9 Jun 2016 16:05:49 +0000 (16:05 +0000)]
Add NVME IO type.

8 years agoImprove debugging of xpt.
imp [Thu, 9 Jun 2016 16:05:40 +0000 (16:05 +0000)]
Improve debugging of xpt.

Sponsored by: Netflix

8 years agoRemove a comment that was part of copied code, and is misleading in
jamie [Thu, 9 Jun 2016 15:34:33 +0000 (15:34 +0000)]
Remove a comment that was part of copied code, and is misleading in
the new location.

8 years agoAdd IPFW support to blacklistd-helper
lidl [Thu, 9 Jun 2016 15:19:48 +0000 (15:19 +0000)]
Add IPFW support to blacklistd-helper

Relnotes: YES
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6753

8 years agoRevert previous commit, until issue with sparc64 resolved.
sjg [Thu, 9 Jun 2016 14:44:05 +0000 (14:44 +0000)]
Revert previous commit, until issue with sparc64 resolved.

Approved by: so (implicit)

8 years agoFix the rpcb_getaddr() definition to match its declaration.
kevlo [Thu, 9 Jun 2016 14:33:00 +0000 (14:33 +0000)]
Fix the rpcb_getaddr() definition to match its declaration.

Submitted by: Sebastian Huber <sebastian dot huber at embedded-brains dot de>

8 years agorum(4): refresh manpage.
avos [Thu, 9 Jun 2016 14:18:12 +0000 (14:18 +0000)]
rum(4): refresh manpage.

Add a note about hardware encryption support (r288633),
adhoc-demo mode (r288622) and remove BUGS section (fixed in r288632).

8 years agoSwitch from console="comconsole" to boot_multicons="YES" in EC2.
cperciva [Thu, 9 Jun 2016 13:58:31 +0000 (13:58 +0000)]
Switch from console="comconsole" to boot_multicons="YES" in EC2.

Amazon recently introduced an API for capturing screenshots of an
emulated VGA device; this commit makes that (somewhat) useful.

MFC after: 3 weeks

8 years agonet80211: discard an injected frame if it is smaller than header length.
avos [Thu, 9 Jun 2016 13:42:18 +0000 (13:42 +0000)]
net80211: discard an injected frame if it is smaller than header length.

Do not try to pass such frames; a correct frame cannot be smaller than
(the corresponding) header size.
(for wpi(4) an additional check was added in r289012).

PR: 144987

8 years agoDocument 292432, OpenBSM updated to version 1.2 alpha 4.
skreuzer [Thu, 9 Jun 2016 13:36:31 +0000 (13:36 +0000)]
Document 292432, OpenBSM updated to version 1.2 alpha 4.

Approved by: re (gjb, implicit, relnotes)

8 years agoDocument 300879, acpica updated to version 20160527
skreuzer [Thu, 9 Jun 2016 13:33:13 +0000 (13:33 +0000)]
Document 300879, acpica updated to version 20160527

Approved by: re (gjb, implicit, relnotes)

8 years agoDocument 291125, xz updated to version 5.2.2
skreuzer [Thu, 9 Jun 2016 13:23:13 +0000 (13:23 +0000)]
Document 291125, xz updated to version 5.2.2

Approved by: re (gjb, implicit, relnotes)

8 years agoFix some cosmetic issues in kern_fail.c omitted from r296927.
markj [Thu, 9 Jun 2016 13:17:08 +0000 (13:17 +0000)]
Fix some cosmetic issues in kern_fail.c omitted from r296927.

Obtained from: Matthew Bryan <matthew.bryan@isilon.com>

8 years agoConsistently use 'unsigned int' for session IDs.
trasz [Thu, 9 Jun 2016 13:04:57 +0000 (13:04 +0000)]
Consistently use 'unsigned int' for session IDs.

MFC after: 1 month

8 years agosfxge(4): bump version to the closest out-of-tree driver version
arybchik [Thu, 9 Jun 2016 12:33:53 +0000 (12:33 +0000)]
sfxge(4): bump version to the closest out-of-tree driver version

Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): handle negative ticks difference correctly
arybchik [Thu, 9 Jun 2016 12:29:03 +0000 (12:29 +0000)]
sfxge(4): handle negative ticks difference correctly

ticks are signed int and if statistics is not updated for a long time
(more than INT_MAX ticks, but less than UINT_MAX) difference becomes
negative and less than hz for a long time.

Other option to repeat is simply load driver (which initializes
timestamps to 0) when ticks are negative.

Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D6777

8 years agoAdd some spares to structs used by iscsi(4), to avoid ABI problems
trasz [Thu, 9 Jun 2016 11:39:50 +0000 (11:39 +0000)]
Add some spares to structs used by iscsi(4), to avoid ABI problems
during 11-STABLE.

MFC after: 1 month

8 years agonet80211: fix duplicate packet counter incrementation.
avos [Thu, 9 Jun 2016 08:19:42 +0000 (08:19 +0000)]
net80211: fix duplicate packet counter incrementation.

Remove 'if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);' from raw xmit
and apbridge path; it will be incremented by ieee80211_tx_complete()
after packet transmission.

Noticed by: Imre Vadasz <imre@vdsz.com>

8 years agoDecouple MaxBurstLength and FirstBurstLength from MaxRecvDataSegmentLength
trasz [Thu, 9 Jun 2016 07:49:20 +0000 (07:49 +0000)]
Decouple MaxBurstLength and FirstBurstLength from MaxRecvDataSegmentLength
reported by the ICL module in iscsid(8).  This harmed performance and was
just wrong.

MFC after: 1 month

8 years agoDon't cap FirstBurstLength to maximum MaxRecvDataSegmentLength claimed
trasz [Thu, 9 Jun 2016 07:19:02 +0000 (07:19 +0000)]
Don't cap FirstBurstLength to maximum MaxRecvDataSegmentLength claimed
by the offload driver; there is no reason to do so, and it actually
harms performance.

MFC after: 1 month

8 years agoFix a bunch of "xref refers to *this* page" igor(1) warnings.
trasz [Thu, 9 Jun 2016 06:55:00 +0000 (06:55 +0000)]
Fix a bunch of "xref refers to *this* page" igor(1) warnings.

MFC after: 1 month

8 years agoUpdate jemalloc to 4.2.1.
jasone [Thu, 9 Jun 2016 06:10:20 +0000 (06:10 +0000)]
Update jemalloc to 4.2.1.

8 years agoCleanup unneded include "opt_ipfw.h".
ae [Thu, 9 Jun 2016 05:48:34 +0000 (05:48 +0000)]
Cleanup unneded include "opt_ipfw.h".

It was used for conditional build IPFIREWALL_FORWARD support.
But IPFIREWALL_FORWARD option was removed a long time ago.

8 years agoAdd 'env - PATH=$$PATH' to bsdec2-image-upload make command, in order to
cperciva [Thu, 9 Jun 2016 03:54:25 +0000 (03:54 +0000)]
Add 'env - PATH=$$PATH' to bsdec2-image-upload make command, in order to
avoid environment pollution problems.  That port uses <bsd.prog.mk> but
is not compatible with the latest mk bits in HEAD.

Reported by: gjb
No rush, but make sure it's in the tree before tomorrow by: gjb

8 years agoAdd support for truss'ing Linux/x86_64 binaries under amd64.
jhb [Thu, 9 Jun 2016 02:21:07 +0000 (02:21 +0000)]
Add support for truss'ing Linux/x86_64 binaries under amd64.

Prodding by: xmj

8 years agoPrint a message when the efi disk isn't a logical partition.
manu [Thu, 9 Jun 2016 02:02:50 +0000 (02:02 +0000)]
Print a message when the efi disk isn't a logical partition.

Approved by: andrew (mentor)
Differential Revision: https://reviews.freebsd.org/D6782

8 years agoAdd a prototype for random_harvest_queue to dev/random/random_harvestq.h
sjg [Thu, 9 Jun 2016 01:50:43 +0000 (01:50 +0000)]
Add a prototype for random_harvest_queue to dev/random/random_harvestq.h
This fixes a warning that occurs in a number of files that use the
random_harvest_queue function.

Differential Revision: https://reviews.freebsd.org/D4229
Submitted by: stevek@juniper.net
Reviewed by: markm
Approved by: so

8 years agoioat(4): Add ddb "show ioat <unit>" debugger command
cem [Thu, 9 Jun 2016 01:31:09 +0000 (01:31 +0000)]
ioat(4): Add ddb "show ioat <unit>" debugger command

Sponsored by: EMC / Isilon Storage Division

8 years agoImplement an NSS backend for netgroups and add getnetgrent_r(3).
markj [Thu, 9 Jun 2016 01:28:44 +0000 (01:28 +0000)]
Implement an NSS backend for netgroups and add getnetgrent_r(3).

This support appears to have been documented in nsswitch.conf(5) for some
time. The implementation adds two NSS netgroup providers to libc. The
default, compat, provides the behaviour documented in netgroup(5), so this
change does not make any user-visible behaviour changes. A files provider
is also implemented.

innetgr(3) is implemented as an optional NSS method so that providers such
as NIS which are able to implement efficient reverse lookup can do so.
A fallback implementation is used otherwise. getnetgrent_r(3) is added for
convenience and to provide compatibility with glibc and Solaris.

With a small patch to net/nss_ldap, it's possible to specify an ldap
netgroup provider, allowing one to query nisNetgroupTriple entries.

Sponsored by: EMC / Isilon Storage Division

8 years agoFix an infinite loop in setnetgrent(3) with NIS netgroups.
markj [Thu, 9 Jun 2016 01:11:48 +0000 (01:11 +0000)]
Fix an infinite loop in setnetgrent(3) with NIS netgroups.

Handle an empty result from yp_match() by returning NULL, which is
consistent with the handling of an empty netgroup in /etc/netgroup.
setnetgrent(3) has no return value, so there is no particular need to
distinguish this case from an error.

PR: 26486
MFC after: 2 weeks

8 years agoUse a more common spelling for "(char *)0" in the getnetgrent man page.
markj [Thu, 9 Jun 2016 01:05:23 +0000 (01:05 +0000)]
Use a more common spelling for "(char *)0" in the getnetgrent man page.

MFC after: 3 days

8 years agoRevert r301707
ngie [Wed, 8 Jun 2016 23:30:13 +0000 (23:30 +0000)]
Revert r301707

getnetent_p doesn't return NULL like getnetent does. coccinelle got confused and
I didn't verify that it worked before committing the change

MFC after: 1 week
X-MFC with: r301707
Pointyhat to: ngie

8 years agoUse NULL instead of `0` in _ht_getnetbyname(..)
ngie [Wed, 8 Jun 2016 23:23:19 +0000 (23:23 +0000)]
Use NULL instead of `0` in _ht_getnetbyname(..)

- getnetent returns NULL on completion/error.
- .h_aliases is NULL terminated.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoAlso set -fshort-wchar on arm64, this fixes parsing strings from UEFI,
andrew [Wed, 8 Jun 2016 23:23:16 +0000 (23:23 +0000)]
Also set -fshort-wchar on arm64, this fixes parsing strings from UEFI,
e.g. on the command line.

Sponsored by: ABT Systems Ltd

8 years agoThe code responsible for opening and rotating pcap files is independent
oshogbo [Wed, 8 Jun 2016 23:22:59 +0000 (23:22 +0000)]
The code responsible for opening and rotating pcap files is independent
of Capser and should use openat(2) unconditionally on FreeBSD.
openat(2) is mandatory when sandboxed with Capsicum, but still works
in the absence of Capsicum.

Reviewed by: AllanJude

8 years agoTest for strchr(3) returning NULL, not 0
ngie [Wed, 8 Jun 2016 23:17:30 +0000 (23:17 +0000)]
Test for strchr(3) returning NULL, not 0

MFC after: 3 days
Reported by: coccinelle
Sponsored by: EMC / Isilon Storage Division

8 years agoPrint the newline character along with the carriage return when TERM_EMU is
andrew [Wed, 8 Jun 2016 23:13:20 +0000 (23:13 +0000)]
Print the newline character along with the carriage return when TERM_EMU is
disabled. Without this we print all lines over top of each other.

Sponsored by: ABT Systems Ltd

8 years agoAllow libefi to be built with TERM_EMU undefined. There were a few places
andrew [Wed, 8 Jun 2016 22:36:55 +0000 (22:36 +0000)]
Allow libefi to be built with TERM_EMU undefined. There were a few places
where we assumed TERM_EMU was defined but didn't check. Fix these by also
including them under the ifdefs.

As HO is called from loader we need a null implementation so loader.efi
doesn't need to know which version of libefi it is building against.

Sponsored by: ABT Systems Ltd

8 years agoFix spelling of the casper introduced in the r296047.
oshogbo [Wed, 8 Jun 2016 22:30:21 +0000 (22:30 +0000)]
Fix spelling of the casper introduced in the r296047.

PR: 210031
Reported by: AllanJude, jmallett

8 years agoRemove the ARMv4/ARMv5 userland atomic support from struct proc on armv6.
andrew [Wed, 8 Jun 2016 22:29:30 +0000 (22:29 +0000)]
Remove the ARMv4/ARMv5 userland atomic support from struct proc on armv6.
Nothing should use this on armv6 as we use the atomic instructions added in
ARMv6k.

Sponsored by: ABT Systems Ltd

8 years agobhnd(4): Fix mips/broadcom core matching and bus pass order.
landonf [Wed, 8 Jun 2016 21:38:51 +0000 (21:38 +0000)]
bhnd(4): Fix mips/broadcom core matching and bus pass order.

Changes:

- Fixed incorrect MIPS74k vendor ID in the bhnd core descriptor tables
- Fixed MIPS core driver's matching against MIPS/MIPS33 cores.
- Improved MIPS3302 core description.
- Enabled BUS_PASS_BUS on the bhnd nexus drivers to allow early probing
  of the MIPS core.
- Enabled BUS_PASS_CPU on the MIPS core driver to ensure correct attach
  order.
- Disabled matching of the MIPS core driver on non-SoC devices.

Reviewed by: Michael Zhilin <mizhka@gmail.com>
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D6735

8 years agobhnd(4): Add a vendor parameter to BHND_DEVICE(), replacing vendor-specific
landonf [Wed, 8 Jun 2016 21:31:33 +0000 (21:31 +0000)]
bhnd(4): Add a vendor parameter to BHND_DEVICE(), replacing vendor-specific
BHND_*_DEVICE macros.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D6736

8 years agoDon't let ATF call basename() and dirname() in a non-standard way.
ed [Wed, 8 Jun 2016 20:54:56 +0000 (20:54 +0000)]
Don't let ATF call basename() and dirname() in a non-standard way.

POSIX basename() and dirname() are allowed to overwrite the input
buffer. The advantage of implementing it that way is that the functions
can be thread-safe, as they don't store the result in a global buffer.

It looks like ATF wants to call basename() and dirname() in the
non-standard way where the argument is of type "const char *". This
change disables the calls to basename() and dirname(), which only seems
to affect the formatting of some rare debug/error messages.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D6627

8 years agobsdinstall: add country/regulatory domain configuration dialog.
avos [Wed, 8 Jun 2016 20:42:35 +0000 (20:42 +0000)]
bsdinstall: add country/regulatory domain configuration dialog.

Allow to setup country and/or regulatory domain before scanning
(since channel list is affected by regulatory restrictions this may
impact scan results).

PR: 182600 (originally)
Differential Revision: https://reviews.freebsd.org/D6325

8 years agoMulticast filters on DWC_GMAC_ALT_DESC type implementations use a different
jmcneill [Wed, 8 Jun 2016 20:22:25 +0000 (20:22 +0000)]
Multicast filters on DWC_GMAC_ALT_DESC type implementations use a different
hash register setup. In addition, strip trailing FCS in receive path.

Reviewed by: loos
Differential Revision: https://reviews.freebsd.org/D6653

8 years agobwn, bwn_pci, siba_bwn: add missing opt_*.h dependencies.
avos [Wed, 8 Jun 2016 20:01:10 +0000 (20:01 +0000)]
bwn, bwn_pci, siba_bwn: add missing opt_*.h dependencies.

8 years agoRevert r301689 - one-true-awk: Avoid a NULL dereference.
pfg [Wed, 8 Jun 2016 19:39:44 +0000 (19:39 +0000)]
Revert r301689 - one-true-awk: Avoid a NULL dereference.

I got this wrong and the coverity report doesn't match the NetBSD change,
which was thought for a different version.

The change wouldn't hurt but let's wait until upstream figures this out.

8 years agoone-true-awk: Avoid a NULL dereference.
pfg [Wed, 8 Jun 2016 19:24:48 +0000 (19:24 +0000)]
one-true-awk: Avoid a NULL dereference.

CID: 270862
Obtained from: NetBSD (CVS Rev. 1.8)
MFC after: 2 weeks

8 years agoFix typo with description for $ipv6_cpe_wanif (upstram -> upstream)
ngie [Wed, 8 Jun 2016 18:38:48 +0000 (18:38 +0000)]
Fix typo with description for $ipv6_cpe_wanif (upstram -> upstream)

MFC after: 3 days
PR: 210146
Reported by: Sean M. Collins <sean@coreitpro.com>
Sponsored by: EMC / Isilon Storage Division

8 years agoUpdate to a June 8th snapshot of (un)vis form NetBSD.
brooks [Wed, 8 Jun 2016 18:21:27 +0000 (18:21 +0000)]
Update to a June 8th snapshot of (un)vis form NetBSD.

This adds stravis() and some new encoding flags VIS_SHELL, VIS_META,
and VIS_NOLOCALE.

Assorted cleanups and fixes includeing a manpage typo[0].

PR: 210013 [0]
Submitted by: pi [0]

8 years agoUse a separate MID counter for ordered und unordered messages for each
tuexen [Wed, 8 Jun 2016 17:57:42 +0000 (17:57 +0000)]
Use a separate MID counter for  ordered und unordered messages for each
outgoing stream.

Thanks to Jens Hoelscher for reporting the issue.

MFC after: 1 week

8 years agoMerge bmake-20160606
sjg [Wed, 8 Jun 2016 17:51:21 +0000 (17:51 +0000)]
Merge bmake-20160606

o dir.c: extend mtimes cache to others via cached_stat()

8 years agoifconfig: fix wlan creation when unit number is not provided
avos [Wed, 8 Jun 2016 17:21:15 +0000 (17:21 +0000)]
ifconfig: fix wlan creation when unit number is not provided
(was broken after r300738).

Reported by: Yoshihiro Ota <ota@j.email.ne.jp>, adrian
Tested by: Yoshihiro Ota <ota@j.email.ne.jp>

8 years ago[ath_hal] modify the xmit code to use temporary variables for setting qmisc/dmisc.
adrian [Wed, 8 Jun 2016 16:26:44 +0000 (16:26 +0000)]
[ath_hal] modify the xmit code to use temporary variables for setting qmisc/dmisc.

This is in preparation for some other TDMA fixes which will hopefully
end with having working TDMA.

But, it does avoid lots of read/modify/writes in the txq setup path.

8 years ago[ath_hal] add a _S so FSP (frame scheduling policy) can be set/read via SM/MS macros.
adrian [Wed, 8 Jun 2016 16:21:38 +0000 (16:21 +0000)]
[ath_hal] add a _S so FSP (frame scheduling policy) can be set/read via SM/MS macros.

8 years ago[ath_hal] correctly initialise the CAB queue default value
adrian [Wed, 8 Jun 2016 16:10:34 +0000 (16:10 +0000)]
[ath_hal] correctly initialise the CAB queue default value

* Allow readyTime to just be programmed in directly
* The beacon interval and all of the beacon timing sysctl's are in TU,
  not TSF.  So, we were doing the wrong math on the CAB programming
  in the first place.

8 years ago[ath_hal] initialise ah_beaconInterval when the AP/IBSS/TDMA beacon is setup.
adrian [Wed, 8 Jun 2016 16:08:05 +0000 (16:08 +0000)]
[ath_hal] initialise ah_beaconInterval when the AP/IBSS/TDMA beacon is setup.

8 years agoAdd support for Atmel at25df641 flash
bapt [Wed, 8 Jun 2016 14:22:16 +0000 (14:22 +0000)]
Add support for Atmel at25df641 flash

Submitted by: Grégory Soutadé <soutade@gmail.com> (via github pull request)

8 years agoDocument 300880, Leading spaces are stripped from SCSI disk serial numbers
skreuzer [Wed, 8 Jun 2016 14:21:48 +0000 (14:21 +0000)]
Document 300880, Leading spaces are stripped from SCSI disk serial numbers

Approved by: re (gjb, implicit, relnotes)

8 years agocxgbe(4): Add a sysctl to manage the binding of a txq to a traffic class.
np [Wed, 8 Jun 2016 14:15:29 +0000 (14:15 +0000)]
cxgbe(4): Add a sysctl to manage the binding of a txq to a traffic class.

Sponsored by: Chelsio Communications

8 years agoDon't force filemon for makeman/showconfig
bdrewery [Wed, 8 Jun 2016 14:02:21 +0000 (14:02 +0000)]
Don't force filemon for makeman/showconfig

Reported by: lidl

8 years agoRemove duplicate define.
br [Wed, 8 Jun 2016 13:57:18 +0000 (13:57 +0000)]
Remove duplicate define.

8 years agosfxge(4): host byte order is required for IP ID in TSO descriptors
arybchik [Wed, 8 Jun 2016 13:14:52 +0000 (13:14 +0000)]
sfxge(4): host byte order is required for IP ID in TSO descriptors

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

8 years agoRegenerate
bdrewery [Wed, 8 Jun 2016 12:46:54 +0000 (12:46 +0000)]
Regenerate

8 years agoBounds check rpcbs_rmtcall(..) to ensure rtype is less than RPCBVERS_STAT
ngie [Wed, 8 Jun 2016 12:45:22 +0000 (12:45 +0000)]
Bounds check rpcbs_rmtcall(..) to ensure rtype is less than RPCBVERS_STAT

Not returning if rtype == RPCBVERS_STAT will cause us to overrun the inf array, as
it's defined to be exactly RPCBVERS_STAT elements in rpcb_prot.x:

> include/rpc/rpcb_prot.x:typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];

The proposed change also matches the rest of the rtype upper bound checks in the
file, so the original change was likely a typo.

MFC after: 2 weeks
Reported by: Coverity
CID: 1007567
Reviewed by: truckman
Sponsored by: EMC / Isilon Storage Division

8 years agosfxge(4): cleanup: add missing probes to ef10_nvram_segment_write_tlv
arybchik [Wed, 8 Jun 2016 12:40:21 +0000 (12:40 +0000)]
sfxge(4): cleanup: add missing probes to ef10_nvram_segment_write_tlv

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

8 years agoMove misplaced break statement to right place
garga [Wed, 8 Jun 2016 11:58:03 +0000 (11:58 +0000)]
Move misplaced break statement to right place

Reported by: Coverity
CID: 1304340
Reviewed by: lidl
Differential Revision: https://reviews.freebsd.org/D6749
Sponsored by: Rubicon Communications (Netgate)

8 years agoReplace _pam_verbose_error() with a macro. This was the last difference
des [Wed, 8 Jun 2016 11:47:19 +0000 (11:47 +0000)]
Replace _pam_verbose_error() with a macro.  This was the last difference
between our libpam and stock OpenPAM, meaning that it is now possible to
replace the base libpam with a hypothetical ports version of OpenPAM.

8 years agoFix typos.
trasz [Wed, 8 Jun 2016 10:38:00 +0000 (10:38 +0000)]
Fix typos.

MFC after: 1 month

8 years agoFix some trailing whitespaces.
trasz [Wed, 8 Jun 2016 10:26:17 +0000 (10:26 +0000)]
Fix some trailing whitespaces.

MFC after: 1 month

8 years agoDon't leak olinep if malloc() fails.
truckman [Wed, 8 Jun 2016 10:25:16 +0000 (10:25 +0000)]
Don't leak olinep if malloc() fails.

If malloc() fails to allocate linep, then free olinep (if it exists)
before returning to avoid a memory leak.

Reported by: Coverity
CID: 1016716
Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6755

8 years agoDon't leak addrinfo if ai->ai_addrlen <= minsiz test fails.
truckman [Wed, 8 Jun 2016 09:40:06 +0000 (09:40 +0000)]
Don't leak addrinfo if ai->ai_addrlen <= minsiz test fails.

If the ai->ai_addrlen <= minsiz test fails, then freeaddrinfo()
does not get called to free the memory just allocated by getaddrinfo().
Fix by moving ai->ai_addrlen <= minsiz to a separate nested if
block, and keep freeaddrinfo() in the outer block so that freeaddrinfo()
will be called whenever getaddrinfo() succeeds.

Reported by: Coverity
CID: 1273652
Reviewed by: ume
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6756

8 years agoLast few instances of "sentence not on new line".
trasz [Wed, 8 Jun 2016 09:36:07 +0000 (09:36 +0000)]
Last few instances of "sentence not on new line".

MFC after: 1 month

8 years agoFix a bunch of "sentence not on new line" warnings in section 9.
trasz [Wed, 8 Jun 2016 09:19:47 +0000 (09:19 +0000)]
Fix a bunch of "sentence not on new line" warnings in section 9.

MFC after: 1 month

8 years agoFix a bunch of "sentence not on new line" warnings from igor(1).
trasz [Wed, 8 Jun 2016 08:50:35 +0000 (08:50 +0000)]
Fix a bunch of "sentence not on new line" warnings from igor(1).

MFC after: 1 month

8 years agohyperv/vmbus: Change tx_evtflags type to u_long to match vmbus_evtflags
sephe [Wed, 8 Jun 2016 07:47:21 +0000 (07:47 +0000)]
hyperv/vmbus: Change tx_evtflags type to u_long to match vmbus_evtflags

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6745

8 years agoImprove documentation for usfs(4) and usb_template(4).
trasz [Wed, 8 Jun 2016 07:39:55 +0000 (07:39 +0000)]
Improve documentation for usfs(4) and usb_template(4).

Reviewed by: hselasky (earlier version)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D6740

8 years agoPacify igor(8) and make it easier to find via "man -k iser".
trasz [Wed, 8 Jun 2016 07:36:00 +0000 (07:36 +0000)]
Pacify igor(8) and make it easier to find via "man -k iser".

MFC after: 1 month

8 years agoAdd iser(4) manual page.
trasz [Wed, 8 Jun 2016 07:33:17 +0000 (07:33 +0000)]
Add iser(4) manual page.

Obtained from: Mellanox Technologies
MFC after: 1 month

8 years agoApply mergemaster r255428:
delphij [Wed, 8 Jun 2016 06:33:55 +0000 (06:33 +0000)]
Apply mergemaster r255428:

Pass -n (do not emit comments) when saving mtree information for future
mergemaster(8) runs.

MFC after: 3 days

8 years agohyperv/vmbus: Busdma-fy MNF and event flags.
sephe [Wed, 8 Jun 2016 05:34:22 +0000 (05:34 +0000)]
hyperv/vmbus: Busdma-fy MNF and event flags.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6744

8 years agoExplicitly NUL terminate the buffer filled by fread().
truckman [Wed, 8 Jun 2016 05:32:39 +0000 (05:32 +0000)]
Explicitly NUL terminate the buffer filled by fread().

The fix in r300649 was not sufficient to convince Coverity that the
buffer was NUL terminated, even with the buffer pre-zeroed.  Swap
the size and nmemb arguments to fread() so that a valid lenght is
returned, which we can use to terminate the string in the buffer
at the correct location.  This should also quiet the complaint about
the return value of fread() not being checked.

Reported by: Coverity
CID: 10190541009614
MFC after: 1 week

8 years agoOld process credentials for setuid execve must not be dereferenced
kib [Wed, 8 Jun 2016 04:37:03 +0000 (04:37 +0000)]
Old process credentials for setuid execve must not be dereferenced
when the process credentials were not changed.  This can happen if an
error occured trying to activate the setuid binary.  And on error, if
new credentials were not yet assigned, they must be freed to not
create the leak.

Use oldcred == NULL as the predicate to detect credential
reassignment.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation