]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMFC r267520, r267521, r267522, r267523, r267524:
bryanv [Sun, 29 Jun 2014 00:37:59 +0000 (00:37 +0000)]
MFC r267520, r267521, r267522, r267523, r267524:

  - Remove two write-only local variables
  - Remove unused element in the vtnet_rxq structure
  - Remove kernel specific macro out of the VirtIO PCI header file
  - Move the VIRTIO_RING_F_* defines out of virtqueue.h into
    virtio_config.h
  - Make the feature negotiation code easier to follow
  - Force two byte alignment for all control message headers

10 years agoMFC 267647:
jhb [Fri, 27 Jun 2014 20:57:12 +0000 (20:57 +0000)]
MFC 267647:
Trust the state of a power resource that we get from a working _STA method
instead of trying to cache it.

10 years agoMFC 267291:
jhb [Fri, 27 Jun 2014 20:39:45 +0000 (20:39 +0000)]
MFC 267291:
Use strcasecmp() instead of strcmp() when checking user-supplied encoding
names so that encoding names are treated as case-insensitive.  This allows
the use of 'utf-8' instead of 'UTF-8' for example and matches the behavior
of iconv(1).

PR: 167977

10 years agoMFC 266293:
jhb [Fri, 27 Jun 2014 20:34:22 +0000 (20:34 +0000)]
MFC 266293:
- Add support for dumping current resource usage for processes via a new -r
  flag to procstat.
- Add an -H flag to request information about threads rather than processes
  when dumping statistics.  Currently it is only used for -r to display
  resource usage for individual threads instead of the entire process.

10 years agoMFC 266296:
jhb [Fri, 27 Jun 2014 19:50:30 +0000 (19:50 +0000)]
MFC 266296:
Correct some minor nits in the per-thread signal format description such
as missing posessives and misordering of fields.

10 years agoMFC 261781:
jhb [Fri, 27 Jun 2014 17:22:18 +0000 (17:22 +0000)]
MFC 261781:
Don't waste a page of KVA for the boot-time memory test on x86.  For amd64,
reuse the first page of the crashdumpmap as CMAP1/CADDR1.  For i386,
remove CMAP1/CADDR1 entirely and reuse CMAP3/CADDR3 for the memory test.

10 years agoMFC: 267833
jpaetzel [Fri, 27 Jun 2014 17:10:28 +0000 (17:10 +0000)]
MFC: 267833

Fix issues in config parser relating to lun serial numbers.

Without this fix some serial numbers needed to be quoted
to avoid the config parser bailing out.

Submitted by: delphij
Sponsored by: iXsystems

10 years agoMFC r265613, r267649: Handle ELF files with 65280 or more sections
emaste [Fri, 27 Jun 2014 14:42:13 +0000 (14:42 +0000)]
MFC r265613, r267649: Handle ELF files with 65280 or more sections

  If e_shnum or e_shstrndx are at least SHN_LORESERVE (0xff00) then an
  escape value is used to indicate that the actual value is found in one
  of section 0's fields.

  Don't dump core when the ELF file has no section headers. The ELF
  core files created by gcore are among those.

10 years agoMFC r267664:
kib [Fri, 27 Jun 2014 11:42:51 +0000 (11:42 +0000)]
MFC r267664:
Assert that the new entry is inserted into the right location in the
map entries list, and that it does not overlap with the previous and
next entries.

10 years agoMFC r261140:
pluknet [Fri, 27 Jun 2014 09:11:24 +0000 (09:11 +0000)]
MFC r261140:

Add MLINK for fdclosedir.3 to directory.3 and sort fdopendir(3) entry.

10 years agoMFC r266479, r267153:
pluknet [Fri, 27 Jun 2014 05:50:55 +0000 (05:50 +0000)]
MFC r266479, r267153:

- Move Nx definition to a separate block.
- Add Lb string for libcuse.

10 years agoMFC r267690
hiren [Fri, 27 Jun 2014 05:37:00 +0000 (05:37 +0000)]
MFC r267690

Hide a harmless "QUEUE FULL EVENT" message behind bootverbose.

10 years agoMFC 264277:
jhb [Thu, 26 Jun 2014 19:19:06 +0000 (19:19 +0000)]
MFC 264277:
Handle single-byte reads from the bvmcons port (0x220) by returning
0xff.  Some guests may attempt to read from this port to identify
psuedo-PNP ISA devices.  (The ie(4) driver in FreeBSD/i386 is one
example.)

10 years agoMFC r267196:
pluknet [Thu, 26 Jun 2014 08:55:06 +0000 (08:55 +0000)]
MFC r267196:

Add support for inspecting process flags set in p_flag2.

10 years agoMFC r261901:
pluknet [Thu, 26 Jun 2014 08:41:54 +0000 (08:41 +0000)]
MFC r261901:

Preserve one character space for a trailing '\0'.

10 years agoMFC r267630:
kib [Thu, 26 Jun 2014 08:30:08 +0000 (08:30 +0000)]
MFC r267630:
Add MAP_EXCL flag for mmap(2).

10 years agoMFC r267629:
kib [Thu, 26 Jun 2014 08:27:01 +0000 (08:27 +0000)]
MFC r267629:
Tidy up code of the wrapper.

10 years agoMFC r267766:
kib [Thu, 26 Jun 2014 08:24:18 +0000 (08:24 +0000)]
MFC r267766:
Use correct names for the flags.

10 years agoMFC r267693:
gjb [Wed, 25 Jun 2014 18:59:43 +0000 (18:59 +0000)]
MFC r267693:
  Fix a bug in bsdgrep(1) where patterns are not correctly
  detected.

  Certain criteria must be met for this bug to show up:

   * the -w flag is specified, and
   * neither -o or --color are specified, and
   * the pattern is part of another word in the line, and
   * the other word that contains the pattern occurs first

PR: 181973
Sponsored by: The FreeBSD Foundation

10 years agoMFC r267616, 267640:
ume [Wed, 25 Jun 2014 17:10:26 +0000 (17:10 +0000)]
MFC r267616, 267640:

Retooling addrconfig() to exclude addresses on loopback interfaces
when looking for configured addresses.
This change is based upon the code from the submitter, and made
following changes:
- Exclude addresses assigned on interfaces which are down, like NetBSD
  does.
- Exclude addresses assigned on interfaces which are ifdisabled.

Use SOCK_CLOEXEC.

PR: 190824
Submitted by: Justin McOmie

10 years agoMFC r267634: Fix case where fastroute or "to interface" is used with
cy [Wed, 25 Jun 2014 13:33:31 +0000 (13:33 +0000)]
MFC r267634: Fix case where fastroute or "to interface" is used with
incorrect FIB.

PR: 183065
Submitted by: p-freebsd-bugs@ziemba.us
Approved by: glebius (mentor)

10 years agoMFC: r267145
marius [Wed, 25 Jun 2014 10:17:00 +0000 (10:17 +0000)]
MFC: r267145

Fix the keyfile being cleared prematurely after r259428 (MFCed to stable/10
in r266749).

PR: 185084
Submitted by: fk@fabiankeil.de
Reviewed by: pjd

10 years agoMFC r267757:
np [Wed, 25 Jun 2014 02:14:55 +0000 (02:14 +0000)]
MFC r267757:

cxgbe(4): Update the bundled T4 and T5 firmwares to versions 1.11.27.0

Obtained from: Chelsio

10 years agoDocument FreeBSD-SA-14:15.iconv and FreeBSD-SA-14:16.file
gjb [Wed, 25 Jun 2014 00:10:41 +0000 (00:10 +0000)]
Document FreeBSD-SA-14:15.iconv and FreeBSD-SA-14:16.file

Sponsored by: The FreeBSD Foundation

10 years agoFix multiple vulnerabilities in file(1) and libmagic(3).
delphij [Tue, 24 Jun 2014 19:04:55 +0000 (19:04 +0000)]
Fix multiple vulnerabilities in file(1) and libmagic(3).

Security: FreeBSD-SA-14:16.file
Approved by: so

10 years agoMFC r267599:
bdrewery [Tue, 24 Jun 2014 15:57:48 +0000 (15:57 +0000)]
MFC r267599:

  - Add a LOCAL_ITOOLS to allow adding additional tools required for the
    installworld and distributeworld targets

PR: 179562

10 years agoMFC r267564:
kib [Tue, 24 Jun 2014 08:21:43 +0000 (08:21 +0000)]
MFC r267564:
In msdosfs_setattr(), add a check for result of the utimes(2) permissions test.
Refactor the permission checks for utimes(2).

10 years agoMFC r267704:
dim [Tue, 24 Jun 2014 06:12:11 +0000 (06:12 +0000)]
MFC r267704:

Pull in r211435 from upstream llvm trunk (by Benjamin Kramer):

  Legalizer: Add support for splitting insert_subvectors.

  We handle this by spilling the whole thing to the stack and doing the
  insertion as a store.

  PR19492. This happens in real code because the vectorizer creates
  v2i128 when AVX is enabled.

This fixes a "fatal error: error in backend: Do not know how to split
the result of this operator!" message encountered during compilation of
the net-p2p/libtorrent-rasterbar port.

Reported by: Evgeniy <iron@mail.ua>

MFC r267705:

Add the llvm patch for r267704.

10 years agoMFC r263795:
rodrigc [Mon, 23 Jun 2014 22:37:49 +0000 (22:37 +0000)]
MFC r263795:

Strict value checking will cause problem.
Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD.
This behaviour is bug-compatible with Linux-3.13.5.

References:
http://d.hatena.ne.jp/syuu1228/20140326
http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094

Submitted by: syuu
PR: 187966

10 years agoUndo bad merge.
rodrigc [Mon, 23 Jun 2014 22:35:41 +0000 (22:35 +0000)]
Undo bad merge.

10 years agoMFC r263795:
rodrigc [Mon, 23 Jun 2014 22:31:28 +0000 (22:31 +0000)]
MFC r263795:

Strict value checking will cause problem.
Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD.
This behaviour is bug-compatible with Linux-3.13.5.

References:
http://d.hatena.ne.jp/syuu1228/20140326
http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094

Submitted by: syuu
PR: 187966

10 years agoMFC r267601:
pfg [Mon, 23 Jun 2014 15:03:51 +0000 (15:03 +0000)]
MFC r267601:

stdtime: style(9) fixes.

Obtained from: illumos

10 years agoMFC r267124, r267582:
emaste [Mon, 23 Jun 2014 13:50:02 +0000 (13:50 +0000)]
MFC r267124, r267582:

  Install VT support files

  They can be disabled by setting WITHOUT_VT_SUPPORT=yes in src.conf.

10 years agoMFC: r267638
marius [Mon, 23 Jun 2014 08:32:36 +0000 (08:32 +0000)]
MFC: r267638

Don't denounce peripherals on system shutdown. Together with r267321
(MFCed to stable/10 in r267775), we're now back to the pre-r228483
level of default verbosity. This in turn again typically allows for
reading information that userland might have printed on the screen
before initiating a halt, but still permits to debug potential device
shutdown problems on system shutdown via CAM_DEBUG etc.

Reviewed by: mav
Sponsored by: Bally Wulff Games & Entertainment GmbH

10 years agoMFC: r267321
marius [Mon, 23 Jun 2014 08:27:15 +0000 (08:27 +0000)]
MFC: r267321

Avoid the USB device disconnected and controller shutdown clutter on system
shutdown by putting the former under !rebooting and turning the latter into
debug messages.

Reviewed by: hps
Sponsored by: Bally Wulff Games & Entertainment GmbH

10 years agoMFC r267254:
kib [Mon, 23 Jun 2014 08:08:22 +0000 (08:08 +0000)]
MFC r267254:
Make mmap(MAP_STACK) search for the available address space.

MFC r267497 (by alc):
Use local variable instead of sgrowsiz.

10 years agoMFC r267688:
tuexen [Mon, 23 Jun 2014 07:58:41 +0000 (07:58 +0000)]
MFC r267688:

Fix a bug which incorrectly allowed two listening SCTP sockets on
the same port bound to the wildcard address.

10 years agoMFC r267682:
tuexen [Mon, 23 Jun 2014 07:56:39 +0000 (07:56 +0000)]
MFC r267682:

Fix a bug in the setsockopt()-handling of the SCTP
specific option SCTP_PEER_ADDR_THLDS: Use the
provided address as intended.

10 years agoMFC r267674:
tuexen [Mon, 23 Jun 2014 07:54:12 +0000 (07:54 +0000)]
MFC r267674:

Honor jails for unbound SCTP sockets when selecting source addresses,
reporting IP-addresses to the peer during the handshake, adding
addresses to the host, reporting the addresses via the sysctl
interface (used by netstat, for example) and reporting the
addresses to the application via socket options.
This issue was reported by Bernd Walter.

10 years agoMFC r267689:
np [Mon, 23 Jun 2014 05:39:10 +0000 (05:39 +0000)]
MFC r267689:

Consider the total number of descriptors available (and not just those
that are ready to be reclaimed) when deciding whether to resume tx after
a stall.

10 years agoMFC r267429:
mav [Sun, 22 Jun 2014 21:28:05 +0000 (21:28 +0000)]
MFC r267429:
Fix some leaks on LUN creation error.

10 years agoMFC r267479:
mav [Sun, 22 Jun 2014 21:26:46 +0000 (21:26 +0000)]
MFC r267479:
Fix/improve fhe_stats sysctl output.

10 years agoMFC r267351:
mav [Sun, 22 Jun 2014 21:21:27 +0000 (21:21 +0000)]
MFC r267351:
Move root_mount_hold() functionality to separate mutex.

It has nothing to share with mutex protecting list of mounted file systems.

10 years agoMFC r267391:
mav [Sun, 22 Jun 2014 21:19:19 +0000 (21:19 +0000)]
MFC r267391:
Introduce new "256 Bucket" zone to split requests and reduce congestion
on "128 Bucket" zone lock.

10 years agoMFC r267387:
mav [Sun, 22 Jun 2014 21:18:24 +0000 (21:18 +0000)]
MFC r267387:
Allocating new bucket for bucket zone, never take it from the zone itself,
since it will almost certanly fail.  Take next bigger zone instead.

This situation should not happen with original bucket zones configuration:
"32 Bucket" zone uses "64 Bucket" and vice versa.  But if "64 Bucket" zone
lock is congested, zone may grow its bucket size and start biting itself.

10 years agoMFC r267392:
mav [Sun, 22 Jun 2014 21:16:18 +0000 (21:16 +0000)]
MFC r267392:
Implement simple direct-mapped cache for popular filesystem identifiers to
avoid congestion on global mountlist_mtx mutex in vfs_busyfs(), while
traversing through the list of mount points.

This change significantly improves NFS server scalability, since it had
to do this translation for every request, and the global lock becomes quite
congested.

This code is more optimized for relatively small number of mount points.
On systems with hundreds of active mount points this simple cache may have
many collisions.  But the original traversal code in that case should also
behave much worse, so we are not loosing much.

10 years agoMFC r267362:
mav [Sun, 22 Jun 2014 21:14:34 +0000 (21:14 +0000)]
MFC r267362:
Remove unneeded mountlist_mtx acquisition from sync_fsync().

All struct mount fields accessed by sync_fsync() are protected by MNT_MTX.

10 years agoMFC r267512:
pfg [Sun, 22 Jun 2014 20:29:51 +0000 (20:29 +0000)]
MFC r267512:

patch: add dry-run alias for compatibility with other implementations.

Other implementations of patch(1), including GNU patch and "svn patch"
have a --dry-run option which does the same as our -C or --check
option.

Add a new alias to make our implementation more compatible.

10 years agoMFC r267490:
pfg [Sun, 22 Jun 2014 20:24:17 +0000 (20:24 +0000)]
MFC r267490:
patch: unsign the line length to avoid overflows.

Patch(1) uses a short int for the line length, which is usually
sufficient for regular diffs, but makes no effort to signal
when there is an overflow.

Change the line length to an unsigned short int to better use
the fact that a length is never negative.  The change is loosely
inspired on a related change in DragonFly, but we avoid spending
more memory than necessary.

While here adjust the messages to be clearer on what is happening.

10 years agoMFC r267232, r267239:
mav [Sun, 22 Jun 2014 18:06:11 +0000 (18:06 +0000)]
MFC r267232, r267239:
Use atomics to modify numvnodes variable.

This allows to mostly avoid lock usage in getnewvnode_[drop_]reserve(),
that reduces number of global vnode_free_list_mtx mutex acquisitions
from 4 to 2 per NFS request on ZFS, improving SMP scalability.

10 years agoMFC r267228:
mav [Sun, 22 Jun 2014 18:03:53 +0000 (18:03 +0000)]
MFC r267228:
Split RPC pool threads into number of smaller semi-isolated groups.

Old design with unified thread pool was good from the point of thread
utilization.  But single pool-wide mutex became huge congestion point
for systems with many CPUs.  To reduce the congestion create several
thread groups within a pool (one group for every 6 CPUs and 12 threads),
each group with own mutex.  Each connection during its registration is
assigned to one of the groups in round-robin fashion.  File affinify
code may still move requests between the groups, but otherwise groups
are self-contained.

10 years agoMFC r267223:
mav [Sun, 22 Jun 2014 18:02:39 +0000 (18:02 +0000)]
MFC r267223:
Remove st_idle variable, duplicating st_xprt.

10 years agoMFC r267221, r267278:
mav [Sun, 22 Jun 2014 18:01:40 +0000 (18:01 +0000)]
MFC r267221, r267278:
Introduce new per-thread lock to protect the list of requests.

This allows to slightly simplify svc_run_internal() code: if we processed
all the requests in a queue, then we know that new one will not appear.

10 years agoMFC r267329:
tuexen [Sun, 22 Jun 2014 16:58:29 +0000 (16:58 +0000)]
MFC r267329:

Add support for the SCTP_LOCAL_TRACE_BUF options.
While there, fix some whitespaces.

10 years agoMFC r267105:
tuexen [Sun, 22 Jun 2014 16:57:07 +0000 (16:57 +0000)]
MFC r267105:

Use ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf().
This was suggested by kevlo@.

10 years agoMFC r265691:
tuexen [Sun, 22 Jun 2014 16:54:59 +0000 (16:54 +0000)]
MFC r265691:

For some UDP packets (for example with 200 byte payload) and IP options,
the IP header and the UDP header are not in the same mbuf.
Add code to in_delayed_cksum() to deal with this case.

MFC r265713:

Use KASSERTs as suggested by glebius@

10 years agoMFC r265455:
tuexen [Sun, 22 Jun 2014 16:50:46 +0000 (16:50 +0000)]
MFC r265455:

Remove unused code. This is triggered by the bugreport of Sylvestre Ledru
which deal with useless code in the user land stack:
https://bugzilla.mozilla.org/show_bug.cgi?id=1003929

10 years agoMerge r267482,r267483,r267486,r267577,r267671,r267672 from head:
gavin [Sun, 22 Jun 2014 16:48:21 +0000 (16:48 +0000)]
Merge r267482,r267483,r267486,r267577,r267671,r267672 from head:

  Remove send-pr and fix up all references to it.  Replace it with a
  stub send-pr directing people towards the web site.

10 years agoMFC r264838:
tuexen [Sun, 22 Jun 2014 16:45:42 +0000 (16:45 +0000)]
MFC r264838:

Don't free an mbuf twice. This only happens in very rare error
cases where the peer sends illegal sequencing information in
DATA chunks for an existing association.

10 years agoMFC r264704:
tuexen [Sun, 22 Jun 2014 16:43:59 +0000 (16:43 +0000)]
MFC r264704:

Add consistency checks to ensure that fragments of a user message
have the same U-bit.

10 years agoMFC r264701:
tuexen [Sun, 22 Jun 2014 16:42:09 +0000 (16:42 +0000)]
MFC r264701:

Send also a packet containing an ABORT chunk in response to an OOTB packet
containing a COOKIE-ECHO chunk.

10 years agoMFC r264682:
tuexen [Sun, 22 Jun 2014 16:40:36 +0000 (16:40 +0000)]
MFC r264682:

Use consistently debug output instead of an unconditional printf.

10 years agoMFC r264679:
tuexen [Sun, 22 Jun 2014 16:38:06 +0000 (16:38 +0000)]
MFC r264679:

Send the correct error cause, when a DATA chunk with no user data
is received. This bug was reported by Irene Ruengeler.

10 years agoMFC r264241:
tuexen [Sun, 22 Jun 2014 16:36:14 +0000 (16:36 +0000)]
MFC r264241:

Call sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(),
since rt_addrmsg() gets also called from other functions.

10 years agoMFC r264017:
tuexen [Sun, 22 Jun 2014 16:34:27 +0000 (16:34 +0000)]
MFC r264017:

Increment the SSN only after processing the last fragment of an
ordered user message.

10 years agoMFC r263922:
tuexen [Sun, 22 Jun 2014 16:32:41 +0000 (16:32 +0000)]
MFC r263922:

Handle an edge case of address management similar to TCP.
This needs to be reconsidered when the address handling
will be reimplemented.
The patch is from rrs@.

10 years agoMFC r263921:
tuexen [Sun, 22 Jun 2014 16:30:52 +0000 (16:30 +0000)]
MFC r263921:

Use SCTP_OVER_UDP_TUNNELING_PORT more consistently.

10 years agoMFC r263237:
tuexen [Sun, 22 Jun 2014 16:28:52 +0000 (16:28 +0000)]
MFC r263237:

* Provide information in error causes in ASCII instead of
  proprietary binary format.
* Add support for a diagnostic information error cause.
  The code is sysctlable and the default is 0, which
  means it is not sent.

This is joint work with rrs@.

10 years agoMFC r263096:
tuexen [Sun, 22 Jun 2014 16:26:16 +0000 (16:26 +0000)]
MFC r263096:

Put the offset of the CRC32C in csum_data instead of 0.
The virtio driver needs the offset to be stored in csum_data,
like in the case for UDP and TCP.

The virtio problem was reported by
Niu Zhixiong <kaiaixi@gmail.com>, who helped in debugging
and testing the patch.

10 years agoMFC r263094:
tuexen [Sun, 22 Jun 2014 16:22:44 +0000 (16:22 +0000)]
MFC r263094:

SCTP uses CRC32C and not Adler anymore. While there change the reference
to RFC 4960.
This does not change any code, just comments.

10 years agoMFC r262252:
tuexen [Sun, 22 Jun 2014 16:21:14 +0000 (16:21 +0000)]
MFC r262252:

Remove redundant code and fix a style error.

10 years agoMFC r267492:
kib [Sun, 22 Jun 2014 08:32:31 +0000 (08:32 +0000)]
MFC r267492:
Fix some cosmetic issues with the use of kmem_malloc() in the i386 LDT
sysarch(2) code.

10 years agoMFC r267255:
kib [Sun, 22 Jun 2014 08:30:43 +0000 (08:30 +0000)]
MFC r267255:
Change the nblock mutex to rwlock.

MFC r267264:
Devolatile as needed.

10 years agoMFC r267426, r267464:
pfg [Sat, 21 Jun 2014 01:48:45 +0000 (01:48 +0000)]
MFC r267426, r267464:

Avoid zeroing during allocation.

This change reverts a change from OpenBSD which made use of
calloc, and therefore wasted time initializing arrays that
will later be realloc'ed.

Consistently use FreeBSD's reallocf():
- Drop some bogus casts to size_t.
- The new_p_foo variables are not needed anymore.

Also merge the changes from OpenBSD's manpage
patch.1 Rev 1.27:
"patch was moved from user portability (UP) to base in issue 7
and is no longer optional"

10 years agoMFC r267600:
np [Sat, 21 Jun 2014 00:30:51 +0000 (00:30 +0000)]
MFC r267600:

cxgbe(4):  Fix bug in the fast rx buffer recycle path.  In some cases rx
buffers were getting recycled when they should have been left alone.

10 years agoUpdate list of SAs on the 10.0R errata page.
gjb [Fri, 20 Jun 2014 20:17:03 +0000 (20:17 +0000)]
Update list of SAs on the 10.0R errata page.

Sponsored by: The FreeBSD Foundation

10 years agoMFC r267544:
pfg [Fri, 20 Jun 2014 15:43:58 +0000 (15:43 +0000)]
MFC r267544:

Update license to strptime(3) implementation.

Our strptime(3) implementation was the base for the illumos
implementation and after contacting the author, Kevin Rudy
stated the code is under a 2-Clause BSD License [1]

After reviewing our local changes to the file in question,
the FreeBSD Foundation has agreed that their contributions
to this file are not required to carry clause 3 or 4 so
the file can be relicensed as in Illumos [2].

References:

[1] https://www.illumos.org/issues/357
[2] Illumos Revision: 13222:02526851ba75

Approved: core (jhb)
Approved: FreeBSD Foundation (emaste)

10 years agoMFC r267513:
pfg [Fri, 20 Jun 2014 15:40:13 +0000 (15:40 +0000)]
MFC r267513:

Merge from r258379 missed the tests.

4248 dtrace(1M) should never create DOF with empty probes section
4249 Only probes from the first DTrace object file will be included

Illumos Revision: 54a20ab41aadcb81c53e72fc65886e964e9add59

10 years agoMFC r267441:
tijl [Fri, 20 Jun 2014 07:35:55 +0000 (07:35 +0000)]
MFC r267441:

Don't install GSS-API headers when the GSSAPI option has been disabled.
Some ports assume GSS-API is supported when they find the headers.

PR: 189156
Submitted by: Garrett Cooper <yanegomi@gmail.com>

10 years agoMFC r267436-267439:
tijl [Fri, 20 Jun 2014 07:32:03 +0000 (07:32 +0000)]
MFC r267436-267439:

- Replace malloc+memset with calloc.
- iconv_open(3): initialise ci_ilseq_invalid field of _citrus_iconv_shared
  struct after allocation with malloc.
- iconvlist(3): reduce a memory leak by copying strings only once.
- iconv(1):
  - Make invalids variable local to do_conv such that it prints the number
    of invalid characters of the current file instead of an accumulated
    value.
  - Make do_conv return an error when invalid characters have been found.
    Return EXIT_FAILURE from main if any file contained invalid characters.
    This matches the behaviour of GNU iconv.
  - Mark usage with __dead2 attribute.
  - Make the long_options array const.

Tested by: Pavel Timofeev <timp87@gmail.com>

10 years agoMFC r261270:
n_hibma [Wed, 18 Jun 2014 22:09:33 +0000 (22:09 +0000)]
MFC r261270:

Fix the ordering of the arguments to printf in
uhub_child_location_string(). This produced bogus information in

        dev.<USB driver>.<id>.%location

output from sysctl.

10 years agoMFC r267342:
jimharris [Wed, 18 Jun 2014 19:32:38 +0000 (19:32 +0000)]
MFC r267342:

  Use bitwise OR instead of logical OR when constructing value for
  SET_FEATURES/NUMBER_OF_QUEUES command.

Sponsored by: Intel

10 years agoMFC r267062:
kib [Wed, 18 Jun 2014 05:35:09 +0000 (05:35 +0000)]
MFC r267062:
Disable existing uncore hwpmc code for Nehalem and Westmere EX.

10 years agoMFC r266901
neel [Tue, 17 Jun 2014 21:49:03 +0000 (21:49 +0000)]
MFC r266901
Allocate a zeroed LDT.
Failing to do this might result in the LDT appearing to run out of free
descriptors because of random junk in the descriptor's 'sd_type' field.

10 years agoDrop 'Inc.' for consistency.
gjb [Tue, 17 Jun 2014 21:09:03 +0000 (21:09 +0000)]
Drop 'Inc.' for consistency.

Sponsored by: The FreeBSD Foundation

10 years agoCorrect the spelling of iXsystems.
gjb [Tue, 17 Jun 2014 21:07:34 +0000 (21:07 +0000)]
Correct the spelling of iXsystems.

Submitted by: delphij
Sponsored by: The FreeBSD Foundation

10 years agoAdd sponsorship attributions for stable/10.
gjb [Tue, 17 Jun 2014 20:32:36 +0000 (20:32 +0000)]
Add sponsorship attributions for stable/10.
Add iX and Netflix to the sponsors.ent file.

This is a direct commit to stable/10.

Sponsored by: The FreeBSD Foundation

10 years agoMFC r265590, r265594, r265595, r265599 [1], r265601 [1],
gjb [Tue, 17 Jun 2014 20:08:17 +0000 (20:08 +0000)]
MFC r265590, r265594, r265595, r265599 [1], r265601 [1],
r265602 [1], r265603 [1], r265605 [1], r265607 [1],
r267554 [1]:

r265590:
  Modify release.xsl to allow proper attribution for
  sponsored and/or contributed works.

r265594:
  Add two new entity files in followup to r265590,
  sponsor.ent and vendor.ent, which will be used for
  sponsor/vendor names and URLs.

r265595:
  Add references to sponsor.ent and vendor.ent in
  relnotes/article.xml and share/xml/catalog.xml.

r265599:
  Add DARPA, AFRL to sponsor.ent.

r265601:
  Add LSI and Spectra Logic to sponsor.ent.

r265602:
  Add Netgate to sponsor.ent.

r265603:
  Add a note to keep the entity lists sorted alphabetically.

r265605:
  Add Google to the sponsor.ent file.

r265607:
  Separate &darpa; entity and create &darpa_afrl to
  avoid confusion.

r267554:
  Add &citrix; and &citrix.rd; macros.

[1] - Partial, entity addition only.

Sponsored by: The FreeBSD Foundation

10 years agoMFC r266007:
trasz [Tue, 17 Jun 2014 13:14:31 +0000 (13:14 +0000)]
MFC r266007:

Initialize loginclass mutex using MTX_SYSINIT instead of using SI_SUB_CPU.

10 years agoMFC: r267478
brueffer [Tue, 17 Jun 2014 08:56:16 +0000 (08:56 +0000)]
MFC: r267478

MFp4: change 1191346

In print_header32_tok(), correct printing in the XML case.  This lead to
invalid XML files before.

PR: 176259
Submitted by: zi

10 years agoMFC r267029, r267038:
mav [Tue, 17 Jun 2014 08:09:40 +0000 (08:09 +0000)]
MFC r267029, r267038:
Replace gethrtime() with cpu_ticks(), as source of random for the taskqueue
selection.  gethrtime() in our port updated with HZ rate, so unusable for
this specific purpose, completely draining benefit of multiple taskqueues.

10 years agoMFC r267313:
bryanv [Tue, 17 Jun 2014 05:24:45 +0000 (05:24 +0000)]
MFC r267313:

  Always append new bios to the tail of the queue, instead of sorting them

10 years agoRevert MFC r266925 because it can lead to instant panic at fexecve():
dchagin [Tue, 17 Jun 2014 05:21:48 +0000 (05:21 +0000)]
Revert MFC r266925 because it can lead to instant panic at fexecve():

To allow to run interpreter itself add a new ELF branding type.

Pointed out by: kib, mjg

10 years agoMFC: 266838 266841 267194
ray [Mon, 16 Jun 2014 12:37:10 +0000 (12:37 +0000)]
MFC: 266838 266841 267194
  Add gallant vt(4) font as an example of font loading for vt(4).
  Add Ukranian vt(4) keymaps as an example.

Sponsored by: The FreeBSD Foundation

10 years agoMFC: 266836, 266839
ray [Mon, 16 Jun 2014 11:51:00 +0000 (11:51 +0000)]
MFC: 266836, 266839
vt(4) support for vidcontrol(1).
  o Teach vidcontrol(1) how to load vt(4) font.
  o Teach vidcontrol(1) to distinct which virtual terminal system is running now.
  o Load vt(4) fonts from different location.
  o Add $FreeBSD$ tag for path.h.
vt(4) support for kbdcontrol(1).
  Enable kbdcontrol(1) to use maps from vt(4) keymaps dir /usr/share/vt/keymaps
  if vt(4) is present.

Sponsored by: The FreeBSD Foundation

10 years agoMFC 262785 263183 264182 264999 265391 265392 265395 265397 265398 265402 265403
ray [Mon, 16 Jun 2014 11:26:30 +0000 (11:26 +0000)]
MFC 262785 263183 264182 264999 265391 265392 265395 265397 265398 265402 265403
    265442 265546 265680 265681 265719 265862 265864 265867 265927 266010 266495
    266540 266835 266856 266861 266862 267007 267310.

265391
  Define a new method for probing vt(4) driver before attach it at early stage.
265392
  Create dataset for vt(4) drivers.
265395
  Set of updates to vt(4) core part.
  o Declare vt(4) drivers dataset.
  o Create single static structures for all early drivers.
  o Add vt(4) to be by default in the kernel consoles list.
  o Create one more sysinit point, to be able to initialize memory and lock
   requirement of early drivers.
  o Implement early drivers select. (Only best available will be selected).
  o Fix one missed "return (0)" for VTYLOCK.
  o Improve locking for cases when one driver replace another.
  o Make driver replacement notification less debug-look-like.
  o Minor spell fixes.
265397
  Switch fb and efifb drivers to use names and new vt(4) driver probe method.
265398
  Add vt(4) driver name for ofwfb driver.
265402
  Revert r264997 and r265026. It is not required anymore.
265403
  Switch vga drivers to use names and new vt(4) driver probe method.
265442
  Implement KDMKTONE ioctl.
265546
  Fix possible divide by zero.
265680
  No need to assign fields required and checked on probe.
265681
  Fix scrollback.
265719
  Hide debug messages under VT_DEBUG.
265927
  Update terminal sizes in any case when new vt(4) driver arrive.
  (Plus remove one unused newline)
266010
  Remove extra newlines.
  No functional changes.
266495
  Fix tty locking.
  o Correct expected values for VT_LOCKSWITCH ioctl.
  o Check current window for locked state.
266540
  Proper fix of VT_LOCKSWITCH ioctl.
266835
  Remove driver as unused.
267007
  Fix case when vt(4) started w/o driver assigned.
  o Always init locks and cv ASAP.
  o Initialize driver-independent parts even if driver probing fail.
  o Allow to call vt_upgrade anytime, for later loaded drivers.
  o New window flag VWF_READY, to track if window already initialized.
  Other updates:
  o Pass vd as a cookie for kbd_allocate.
  o Do not blank window on driver replacement.

Sponsored by: The FreeBSD Foundation

10 years agoMFC r267395:
hselasky [Sun, 15 Jun 2014 18:32:02 +0000 (18:32 +0000)]
MFC r267395:
- Fix out of range shifting bug in bitops.h.
- Make code a bit easier to read by adding parenthesis.

10 years agoMFC r267227:
kib [Sun, 15 Jun 2014 05:17:40 +0000 (05:17 +0000)]
MFC r267227:
Remove write-only local variable.

10 years agoMFC r267226:
kib [Sun, 15 Jun 2014 05:15:38 +0000 (05:15 +0000)]
MFC r267226:
Initialize the pbuf counter for directio using SYSINIT.
Mark ffs_rawread.c as requiring both ffs and directio options to be
compiled into the kernel.  Add ffs_rawread.c to the list of ufs.ko
module' sources.

10 years agoMFC of 267473,tzdata2014e
edwin [Sat, 14 Jun 2014 11:46:22 +0000 (11:46 +0000)]
MFC of 267473,tzdata2014e

Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.