]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMFC r274621:
trasz [Sun, 21 Dec 2014 11:00:48 +0000 (11:00 +0000)]
MFC r274621:

The "intr" option is NFS-specific; fix examples in auto_master(5).

Sponsored by: The FreeBSD Foundation

9 years agoMFC r274549:
trasz [Sun, 21 Dec 2014 10:56:06 +0000 (10:56 +0000)]
MFC r274549:

Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session
that matches both -t and -p.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r273929:
ngie [Sun, 21 Dec 2014 08:30:18 +0000 (08:30 +0000)]
MFC r273929:

r273929 (by jmmv):

  MFV: Import atf-0.21.

9 years agoRegen for r275986 (ppoll).
dchagin [Sun, 21 Dec 2014 08:00:38 +0000 (08:00 +0000)]
Regen for r275986 (ppoll).

9 years agoMFC r274462: Add the ppoll() system call.
dchagin [Sun, 21 Dec 2014 07:58:28 +0000 (07:58 +0000)]
MFC r274462: Add the ppoll() system call.

9 years agoMFC r274819:
smh [Sun, 21 Dec 2014 03:06:11 +0000 (03:06 +0000)]
MFC r274819:
Prevent overflow issues in timeout processing

MFC r274852:
Fix build with asr driver

Sponsored by: Multiplay

9 years agoMFC r269615:
smh [Sun, 21 Dec 2014 03:00:44 +0000 (03:00 +0000)]
MFC r269615:
Various fixes to hptrr(4)

Sponsored by: Multiplay

9 years agoMFC r269613:
smh [Sun, 21 Dec 2014 02:57:03 +0000 (02:57 +0000)]
MFC r269613:
Various fixes to hptnr(4)

Sponsored by: Multiplay

9 years agoMFC r267290:
smh [Sun, 21 Dec 2014 02:52:40 +0000 (02:52 +0000)]
MFC r267290:
Make the hpt27xx(4) driver MPSAFE

Sponsored by: Multiplay

9 years agoMFC r266772:
smh [Sun, 21 Dec 2014 02:47:38 +0000 (02:47 +0000)]
MFC r266772:
Various cleanups and fixes including switching from timeout to callout

Sponsored by: Multiplay

9 years agoMFC r272000:
smh [Sun, 21 Dec 2014 02:39:10 +0000 (02:39 +0000)]
MFC r272000:
Switch from timeout(9) to callout(9)

Sponsored by: Multiplay

9 years agoMFC r272735:
smh [Sun, 21 Dec 2014 02:35:22 +0000 (02:35 +0000)]
MFC r272735:
Support upto 256VD.

MFC r272737:
Support 32-bit linux binaries on FreeBSD 64bit.

MFC r272738:
Fix the minor svn add issue.

MFC r272739:
Extended MSI-x vectors support for Invader and Fury(12Gb/s HBA).

MFC r272740:
Add d_poll support.

MFC r272741:
Fix leak of mfi cmd in the passthru and correctly limit oustanding.

MFC r272742:
Import vendor Phase 6.5 driver

MFC r272744:
Style (9) fixes.

MFC r273040:
Fix for build issue on i386.xen and amd64.xen.

Sponsored by: Multiplay

9 years agoMFC: r274487
smh [Sun, 21 Dec 2014 01:39:21 +0000 (01:39 +0000)]
MFC: r274487

Lock iir(4) and mark it MPSAFE.

Sponsored by: Multiplay

9 years agoMFC r275744:
kib [Sat, 20 Dec 2014 15:49:12 +0000 (15:49 +0000)]
MFC r275744:
Only sleep interruptible while waiting for suspension end when
filesystem specified VFCF_SBDRY flag, i.e. for NFS.

9 years agoMFC r275743:
kib [Sat, 20 Dec 2014 15:46:15 +0000 (15:46 +0000)]
MFC r275743:
Put the buffer cleanup code after inactivation.

9 years agoMFC: r274960 (slightly modified)
brueffer [Fri, 19 Dec 2014 23:18:22 +0000 (23:18 +0000)]
MFC: r274960 (slightly modified)

Limit descriptors and enter capability mode.  Since the header was renamed in HEAD, this
commit includes sys/capability.h.

Differential: D1009
Reviewed by: jonathan, pjd
Relnotes: yes

9 years agoMFC r275729:
ae [Fri, 19 Dec 2014 13:22:02 +0000 (13:22 +0000)]
MFC r275729:
  Increase the buffer size to keep the list of programm names when
  parsing programm specification. It is safe to not check out of bounds
  access, because !isprint(p[i]) check will stop reading, when '\0'
  character will be read from the input string.

Sponsored by: Yandex LLC

9 years agoMFC r275833:
kib [Fri, 19 Dec 2014 09:36:59 +0000 (09:36 +0000)]
MFC r275833:
The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base.  Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.

9 years agoMFC r275727:
kib [Fri, 19 Dec 2014 09:34:14 +0000 (09:34 +0000)]
MFC r275727:
For architectures where time_t is wide enough, in particular, 64bit
platforms, avoid overflow after year 2038 in clock_ct_to_ts().

PR: 195868

9 years agoMFC r275503:
mav [Fri, 19 Dec 2014 01:13:41 +0000 (01:13 +0000)]
MFC r275503:
Avoid unneeded malloc/memcpy/free if there is no metadata on disk.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

9 years agoMFC 273871:
jhb [Thu, 18 Dec 2014 23:00:17 +0000 (23:00 +0000)]
MFC 273871:
Skip the smap sysctl instead of panicing if no kernel metadata can be
found.

9 years agoMFC r275401: zfs_putpages: actually update mtime and ctime
avg [Thu, 18 Dec 2014 13:46:11 +0000 (13:46 +0000)]
MFC r275401: zfs_putpages: actually update mtime and ctime

9 years agoMFC r271315 (by joel):
kib [Thu, 18 Dec 2014 11:36:14 +0000 (11:36 +0000)]
MFC r271315 (by joel):
Minor mdoc nit.

MFC r275806:
Markup fixes for kqueue(2), no content changes.

9 years agoMFC r268843 (by bapt):
kib [Thu, 18 Dec 2014 11:30:51 +0000 (11:30 +0000)]
MFC r268843 (by bapt):
Extend kqueue's EVFILT_TIMER by adding precision unit flags support.

9 years agoMFC r259609 (by se):
kib [Thu, 18 Dec 2014 11:10:15 +0000 (11:10 +0000)]
MFC r259609 (by se):
Fix overflow for timeout values of more than 68 years, which is the maximum
covered by sbintime (LONG_MAX seconds).

MFC r259633 (by se):
Fix compilation on 32 bit architectures and use INT64_MAX instead of
LONG_MAX for the upper bound check.

9 years agoMFC r275482: Document r275481 changes.
mav [Thu, 18 Dec 2014 08:49:50 +0000 (08:49 +0000)]
MFC r275482: Document r275481 changes.

9 years agoMFC r275568:
mav [Thu, 18 Dec 2014 08:46:53 +0000 (08:46 +0000)]
MFC r275568:
Count consecutive read requests as blocking in CTL for files and ZVOLs.

Technically read requests can be executed in any order or simultaneously
since they are not changing any data.  But ZFS prefetcher goes crasy when
it receives consecutive requests from different threads.  Since prefetcher
works on level of separate blocks, instead of two consecutive 128K requests
it may receive 32 8K requests in mixed order.

This patch is more workaround then a real fix, and it does not fix all of
prefetcher problems, but it improves sequential read speed by 3-4x times
in some configurations.  On the other side it may hurt performance if
some backing store has no prefetch, that is why it is disabled by default
for raw devices.

9 years agoMFC r275512:
mav [Thu, 18 Dec 2014 08:45:28 +0000 (08:45 +0000)]
MFC r275512:
In addition to r275481 allow threshold notifications work without UNMAP.

While without UNMAP support there is not much initiator can do about it,
the administrator still better be notified about the storage overflow.

Sponsored by:   iXsystems, Inc.

9 years agoMFC r275481:
mav [Thu, 18 Dec 2014 08:43:36 +0000 (08:43 +0000)]
MFC r275481:
Add to CTL support for threshold notifications for file-backed LUNs.

Previously it was supported only for ZVOL-backed LUNs, but now should work
for file-backed LUNs too.  Used value in this case is a space occupied by
the backing file, while available value is an available space on file
system.  Pool thresholds are still not implemented in this case.

Sponsored by:   iXsystems, Inc.

9 years agoMFC r275474: Add GET LBA STATUS command support to CTL.
mav [Thu, 18 Dec 2014 08:38:07 +0000 (08:38 +0000)]
MFC r275474: Add GET LBA STATUS command support to CTL.

It is implemented for LUNs backed by ZVOLs in "dev" mode and files.
GEOM has no such API, so for LUNs backed by raw devices all LBAs will
be reported as mapped/unknown.

Sponsored by:   iXsystems, Inc.

9 years agoMFC r275461:
mav [Thu, 18 Dec 2014 08:37:09 +0000 (08:37 +0000)]
MFC r275461:
Increase CTL ports limit from 128 to 256 and LUNs limit from 256 to 1024.

After recent optimizations this change is no longer blocked by CTL memory
consumption.  Those limits are still not free, but much cheaper now.

Relnotes: yes
Sponsored by: iXsystems, Inc.

9 years agoMFC r275459: Unify function names after r275458.
mav [Thu, 18 Dec 2014 08:32:56 +0000 (08:32 +0000)]
MFC r275459: Unify function names after r275458.

9 years agoMFC r275458:
mav [Thu, 18 Dec 2014 08:32:06 +0000 (08:32 +0000)]
MFC r275458:
Do not pre-allocate UNIT ATTENTIONs storage for every possible initiator.

Abusing ability of major UAs cover minor ones we may not account UAs for
inactive ports.  Allocate UAs storage for port and start accounting only
after some initiator from that port fetched its first POWER ON OCCURRED.

This reduces per-LUN CTL memory usage from >1MB to less then 100K.

9 years agoMFC r275455: Remove some unused code.
mav [Thu, 18 Dec 2014 08:31:13 +0000 (08:31 +0000)]
MFC r275455: Remove some unused code.

9 years agoMFC r275447:
mav [Thu, 18 Dec 2014 08:30:28 +0000 (08:30 +0000)]
MFC r275447:
Do not pre-allocate reservation keys memory for every possible initiator.

In configurations with many ports, like iSCSI, each LUN is typically
accessed only by limited subset of ports.  Allocating that memory on
demand allows to reduce CTL memory usage from 5.3MB/LUN to 1.3MB/LUN.

9 years agoMFC r275405: Convert persis_offset from global variable to softc field.
mav [Thu, 18 Dec 2014 08:28:44 +0000 (08:28 +0000)]
MFC r275405: Convert persis_offset from global variable to softc field.

9 years agoMFC r275404: Reduce code duplication by creating ctl_set_res_ua() helper.
mav [Thu, 18 Dec 2014 08:27:46 +0000 (08:27 +0000)]
MFC r275404: Reduce code duplication by creating ctl_set_res_ua() helper.

9 years agoMFC r275403: Removed unused variable and unify some names.
mav [Thu, 18 Dec 2014 08:27:00 +0000 (08:27 +0000)]
MFC r275403: Removed unused variable and unify some names.

9 years agoMFC r275365: Move ctlfe_onoffline() out of lock to let it sleep when needed.
mav [Thu, 18 Dec 2014 08:26:11 +0000 (08:26 +0000)]
MFC r275365: Move ctlfe_onoffline() out of lock to let it sleep when needed.

Do some more other polishing while there.

9 years agoMFC r275058: Coalesce last data move and command status for read commands.
mav [Thu, 18 Dec 2014 08:25:00 +0000 (08:25 +0000)]
MFC r275058: Coalesce last data move and command status for read commands.

Make CTL core and block backend set success status before initiating last
data move for read commands.  Make CAM target and iSCSI frontends detect
such condition and send command status together with data.  New I/O flag
allows to skip duplicate status sending on later fe_done() call.

For Fibre Channel this change saves one of three interrupts per read command,
increasing performance from 126K to 160K IOPS.  For iSCSI this change saves
one of three PDUs per read command, increasing performance from 1M to 1.2M
IOPS.

Sponsored by:   iXsystems, Inc.

9 years agoMFC r275032: Decouple datamove/done logic from CTL status set.
mav [Thu, 18 Dec 2014 08:23:59 +0000 (08:23 +0000)]
MFC r275032: Decouple datamove/done logic from CTL status set.

9 years agoMFC r275009: Use ctl_set_success() instead of direct inlining.
mav [Thu, 18 Dec 2014 08:23:04 +0000 (08:23 +0000)]
MFC r275009: Use ctl_set_success() instead of direct inlining.

9 years agoMFC r274962: Replace home-grown CTL IO allocator with UMA.
mav [Thu, 18 Dec 2014 08:22:16 +0000 (08:22 +0000)]
MFC r274962:  Replace home-grown CTL IO allocator with UMA.

Old allocator created significant lock congestion protecting its lists
of preallocated I/Os, while UMA provides much better SMP scalability.
The downside of UMA is lack of reliable preallocation, that could guarantee
successful allocation in non-sleepable environments.  But careful code
review shown, that only CAM target frontend really has that requirement.
Fix that making that frontend preallocate and statically bind CTL I/O for
every ATIO/INOT it preallocates any way.  That allows to avoid allocations
in hot I/O path.  Other frontends either may sleep in allocation context
or can properly handle allocation errors.

On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections
this change increases peak performance from ~700K to >1M IOPS!  Yay! :)

Sponsored by: iXsystems, Inc.

9 years agoMFC r275475:
mav [Thu, 18 Dec 2014 07:37:21 +0000 (07:37 +0000)]
MFC r275475:
Decode some binary fields of Intel metadata.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

9 years agoMFC r275759:
dim [Wed, 17 Dec 2014 21:36:45 +0000 (21:36 +0000)]
MFC r275759:

Pull in r221170 from upstream clang trunk (by Roman Divacky):

  Implement vaarg lowering for ppc32. Lowering of scalars and
  aggregates is supported. Complex numbers are not.

This adds va_args support for PowerPC (32 bit) to clang.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D1308

9 years agoMFC r275852: MFV r275844:
delphij [Wed, 17 Dec 2014 06:58:00 +0000 (06:58 +0000)]
MFC r275852: MFV r275844:

Fix unbound remote denial of service vulnerability.

Security: FreeBSD-SA-14:30.unbound
Security: CVE-2014-8602
Approved by: so

9 years agoMFC 273053:
jhb [Tue, 16 Dec 2014 21:57:55 +0000 (21:57 +0000)]
MFC 273053:
Decode the arguments passed to _umtx_op().  In particular, decode the
opcode.

9 years agoMFC r275553, r275612;
pfg [Tue, 16 Dec 2014 21:13:55 +0000 (21:13 +0000)]
MFC r275553, r275612;

patch(1): Bring fixes from OpenBSD

Check fstat return value.  Use off_t for file size and offsets.
Avoid iterating over end of string.

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR: 195436
Obtained from: OpenBSD

9 years agoMFC r275531, r275581, r275582;
pfg [Tue, 16 Dec 2014 21:05:28 +0000 (21:05 +0000)]
MFC r275531, r275581, r275582;

patch(1): Small changes to sync with OpenBSD

Update OpenBSD CVS revision tag for our r255232.
Prefer setvbuf() to setlinebuf().
Small space changes, mostly to keep in sync with OpenBSD

Obtained from: OpenBSD

9 years agoMFC 271635,271722:
jhb [Tue, 16 Dec 2014 20:05:10 +0000 (20:05 +0000)]
MFC 271635,271722:
- Only the manpage updates from 271635 are merged to give additional
  heads up for the stricter checks in 11, but the kernel in 10 remains
  permissive.
  - Fail with EINVAL if an invalid protection mask is passed to mmap().
  - Fail with EINVAL if an unknown flag is passed to mmap().
  - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to
    mmap().
  - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
    mappings.
- Remove mention of MAP_INHERIT.  It hasn't been implemented for thirteen
  years.
- Remove mention of unimplemented MAP_SWAP.  There are no future plans to
  implement it.

9 years agoMFC 272897:
jhb [Tue, 16 Dec 2014 19:45:56 +0000 (19:45 +0000)]
MFC 272897:
Various fixes to stats:
- Read the counts of received, dropped, and transmitted management
  packets and add sysctl nodes for them.
- Fix the total octets received/transmitted to read all 64 bits of
  the counters.
- Add missing sysctl nodes for rlec, tncrs, fcruc, tor, and tot.
- Remove spurious spaces.

9 years agoMFC r275645;
pfg [Tue, 16 Dec 2014 18:45:31 +0000 (18:45 +0000)]
MFC r275645;

ext2fs: Fix old out-of-bounds access.

Overrunning buffer pointed to by (caddr_t)&oip->i_db[0] of 48 bytes by
passing it to a function which accesses it at byte offset 59 using
argument 60UL.

The issue was inherited from an older FFS implementation and
fixed there with by merging UFS2 in r98542. We follow the
FFS fix.

CID: 1007665
Discussed with: bde

9 years agoMFC r275394:
ae [Tue, 16 Dec 2014 11:53:45 +0000 (11:53 +0000)]
MFC r275394:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by: Yandex LLC

9 years agoMFC r275393:
ae [Tue, 16 Dec 2014 11:45:33 +0000 (11:45 +0000)]
MFC r275393:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC r275473:
  Fix style(9) and remove m_freem(NULL).
  Add XXX comment, it looks incorrect, because m_pkthdr.len is already
  incremented by M_PREPEND().

Sponsored by: Yandex LLC

9 years agoMFC r275575:
ae [Tue, 16 Dec 2014 11:24:07 +0000 (11:24 +0000)]
MFC r275575:
  key_getspacq() returns holding the spacq_lock. Unlock it in all cases.

Sponsored by: Yandex LLC

9 years agoCorrect to the stable/10 commit in UPDATING and specify the correct ports/UPDATING
sbruno [Mon, 15 Dec 2014 21:22:42 +0000 (21:22 +0000)]
Correct to the stable/10 commit in UPDATING and specify the correct ports/UPDATING
note.

9 years agoRevert r275778, gcc 4.2.1 doesn't handle -march=armv7.
andrew [Mon, 15 Dec 2014 18:13:03 +0000 (18:13 +0000)]
Revert r275778, gcc 4.2.1 doesn't handle -march=armv7.

9 years agoMFC r271982 and r271990 to support CentOS 6 ports.
sbruno [Mon, 15 Dec 2014 16:14:49 +0000 (16:14 +0000)]
MFC r271982 and r271990 to support CentOS 6 ports.

9 years agoMFC r275620:
kib [Mon, 15 Dec 2014 11:05:53 +0000 (11:05 +0000)]
MFC r275620:
Add functions syncer_suspend() and syncer_resume().

MFC r275637:
Remove local variable for real.

9 years agoMFC r275619:
kib [Mon, 15 Dec 2014 11:00:56 +0000 (11:00 +0000)]
MFC r275619:
Check for bo_bufobj->bo_object for NULL and cache the value in local
variable to avoid NULL dereference in getnewbuf_reuse_bp(). The vnode
owning the buffer is not locked there.

9 years agoMFC r275618:
kib [Mon, 15 Dec 2014 10:58:02 +0000 (10:58 +0000)]
MFC r275618:
Check for stop condition in nfsd threads.

9 years agoMFC r275617:
kib [Mon, 15 Dec 2014 10:50:26 +0000 (10:50 +0000)]
MFC r275617:
Do some refactoring and minor cleanups of the thread_single() code.

9 years agoMFC r275616:
kib [Mon, 15 Dec 2014 10:46:07 +0000 (10:46 +0000)]
MFC r275616:
Thread waiting for the vfork(2)-ed child to exec or exit, must allow
for the suspension.

MFC r275683 (by andreast):
Fix build for powerpc(32|64) kernels.

MFC r275686 (by andreast):
Fix kernel build for booke.

r275639 (by andrew) is not merged, since arm/arm/syscall.c is not
present on the stable/10 branch, and arm/arm/trap.c already includes
sys/kernel.h.

9 years agoMFC r275615:
kib [Mon, 15 Dec 2014 10:29:02 +0000 (10:29 +0000)]
MFC r275615:
When process is exiting, check for suspension regardless of
multithreaded status of the process.

9 years agoMFC r275606:
hselasky [Mon, 15 Dec 2014 08:35:07 +0000 (08:35 +0000)]
MFC r275606:
Add more U3G USB IDs.

9 years agoMFC r275624:
hselasky [Mon, 15 Dec 2014 08:26:36 +0000 (08:26 +0000)]
MFC r275624:
Add port routing support for Wildcat Point.

PR: 195793

9 years agoMFC 275379:
andrew [Sun, 14 Dec 2014 18:51:13 +0000 (18:51 +0000)]
MFC 275379:
Set the correct architecture when targeting ARMv7

Sponsored by: ABT Systems Ltd

9 years agoMFC r268576: sh: Correctly handle positional parameters beyond INT_MAX on
jilles [Sun, 14 Dec 2014 18:30:30 +0000 (18:30 +0000)]
MFC r268576: sh: Correctly handle positional parameters beyond INT_MAX on
64-bit systems.

Currently, there can be no more than INT_MAX positional parameters. Make
sure to treat all higher ones as unset to avoid incorrect results and
crashes.

On 64-bit systems, our atoi() takes the low 32 bits of the strtol() and
sign-extends them.

On 32-bit systems, the call to atoi() returned INT_MAX for too high values
and there is not enough address space for so many positional parameters, so
there was no issue.

PR: 195918

9 years agoMFC 275564:
andrew [Sun, 14 Dec 2014 18:28:01 +0000 (18:28 +0000)]
MFC 275564:

Use the unified syntax when generating assembly for clang. The clang 3.5
integrated assembler only accepts it.

Sponsored by: ABT Systems Ltd

9 years agoMFC 275378:
andrew [Sun, 14 Dec 2014 18:23:30 +0000 (18:23 +0000)]
MFC 275378:

Pull in the NetBSD global offset table handling code. Clang 3.5 creates
relocations the linker complains about.

Obtained from: NetBSD

9 years agoMFC 275337:
andrew [Sun, 14 Dec 2014 18:01:09 +0000 (18:01 +0000)]
MFC 275337:

There is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they
are aliases.

Sponsored by: ABT Systems Ltd

MFC 275380:

Use the floating-point instruction on ARMv7 as the clang 3.5 integrated
assembler doesn't allow these two instructions to use co-processor 11.

Sponsored by: ABT Systems Ltd

9 years agoMFC 275415:
andrew [Sun, 14 Dec 2014 17:38:43 +0000 (17:38 +0000)]
MFC 275415:

Allow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang
integrated assembler only allows these forms so binutils will need to
support them.

Sponsored by: ABT Systems Ltd

MFC 275584:

Fix mrc and mrc2 with APSR_nzcv. Binutils encodes it internally as 0 where
we need it to be set to 15 for it to be equivalent to r15.

Sponsored by: ABT Systems Ltd

9 years agoMFC 275336:
andrew [Sun, 14 Dec 2014 17:28:02 +0000 (17:28 +0000)]
MFC 275336:

Use llabs when getting the absolute value of a long long.

Sponsored by: ABT Ststems Ltd

9 years agoClean up our ARM assembly:
andrew [Sun, 14 Dec 2014 16:28:53 +0000 (16:28 +0000)]
Clean up our ARM assembly:

MFC 275256:

Switch to the ARM unified assembly language as the clang integrated as only
supports it. Binutils supports it when the ".syntax unified" directive
is set.

Sponsored by:   ABT Systems Ltd

MFC 275264:

Update _ENTRY to use _EENTRY to reduce the common code.

MFC 275321:

Remove extra labels, ENTRY_NP already provides them.

Sponsored by:   ABT Systems Ltd

MFC 275322:

Correctly a few incorrect uses of ENTRY/EENTRY and END/EEND

Sponsored by:   ABT Systems Ltd

MFC 275416:

Fix the name of the coprocessor to include the "p" prefix, the clang
integrated assembler expects this.

Sponsored by:   ABT Systems Ltd

MFC 275418:

Switch to unified syntax so these can be built with clang 3.5.

Sponsored by:   ABT Systems Ltd

MFC 275519:

Add missing END macros to some of the xscale functions.

Sponsored by:   ABT Systems Ltd

MFC 275520:

Use the unified syntax in a few more assembly files

Sponsored by:   ABT Systems Ltd

MFC 275521:

Set the alignment to 4-bytes after a string as clang 3.5 can switch to
thumb mode if this is incorrect.

Sponsored by:   ABT Systems Ltd

MFC 275522:

Place the literal pool after a RET otherwise clang 3.5 tries to put it too
far away from a ldr psuedo instruction. With this clang will place the
literal value here where it's close enough to be loaded.

Sponsored by:   ABT Systems Ltd

MFC 275523:

Switch to an armv6k cpu, without this clang 3.5 complains "bx lr" is
unsupported as it needs a newer cpu.

Sponsored by:   ABT Systems Ltd

MFC 275524:

Switch to a .cpu directive. These will work when clang 3.5 is imported
where the .arch directive is a nop.

Sponsored by:   ABT Systems Ltd

9 years agoMFC 275207:
andrew [Sun, 14 Dec 2014 15:41:56 +0000 (15:41 +0000)]
MFC 275207:

We don't use the hypervisor interrupt, make it optional in the device tree.

Submitted by:   Julien Grall <julien.grall AT linaro.org>

MFC 275208:

Some device tree configurations place the generic timer under the root
of the tree and not under simplebus. Update the driver to handle this.

Submitted by:   Julien Grall <julien.grall AT linaro.org>

9 years agoMFC 273927:
andrew [Sun, 14 Dec 2014 15:33:45 +0000 (15:33 +0000)]
MFC 273927:

Move the definitions of the fdt functions from a uboot header to a new fdt
header. There is nothing in the fdt spec that ties it to U-Boot.

While here sort and fix the signature of fdt_setup_fdtp.

MFC 273934:

Start to allow platforms other than U-Boot to use the FDT code in loader by
moving U-Boot specific code from libfdt.a to a new libuboot_fdt.a. This
needs to be a new library for linking to work correctly.

Differential Revision:  https://reviews.freebsd.org/D1054
Reviewed by:    ian, rpaulo (earlier version)

9 years agoMFC r273913:
andrew [Sun, 14 Dec 2014 15:03:11 +0000 (15:03 +0000)]
MFC r273913:

Clean up the types of a few strings to make them const when they are never
written to.

MFC r273914:

The command name is a constant, use the correct type.

9 years agoMFC r274495:
trasz [Sun, 14 Dec 2014 11:03:22 +0000 (11:03 +0000)]
MFC r274495:

Add missing commas to .Xr.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r275347:
kib [Sun, 14 Dec 2014 09:34:55 +0000 (09:34 +0000)]
MFC r275347:
Provide mutual exclusion between zone allocation/destruction and
uma_reclaim().

9 years agoMFC r275633:
dim [Sat, 13 Dec 2014 12:14:26 +0000 (12:14 +0000)]
MFC r275633:

Pull in r223171 from upstream llvm trunk (by Michael Zolotukhin):

  PR21302. Vectorize only bottom-tested loops.

  rdar://problem/18886083

This fixes a bug in the llvm vectorizer, which could sometimes cause
vectorized loops to perform an additional iteration, leading to possible
buffer overruns.  Symptoms of this, which are usually segfaults, were
first noticed when building gcc ports, here:

https://lists.freebsd.org/pipermail/freebsd-ports/2014-September/095466.html
https://lists.freebsd.org/pipermail/freebsd-toolchain/2014-September/001211.html

Since this fix is very important for ports, bump __FreeBSD_version to
make it easier for port maintainers to test whether the fix has been
applied.

Upstream PR: http://llvm.org/PR21302

9 years agoMFC r275513:
kib [Fri, 12 Dec 2014 09:22:52 +0000 (09:22 +0000)]
MFC r275513:
When the last reference on the vnode' vm object is dropped, read the
vp->v_vflag without taking vnode lock and without bypass.

9 years agoMFC r275636:
hselasky [Fri, 12 Dec 2014 07:59:05 +0000 (07:59 +0000)]
MFC r275636:
Move OFED init a bit earlier so that PXE boot works.

Sponsored by: Mellanox Technologies

9 years agoMFC r274411: Improve CAM's reaction on asymmetric access errors.
mav [Fri, 12 Dec 2014 07:41:08 +0000 (07:41 +0000)]
MFC r274411: Improve CAM's reaction on asymmetric access errors.

9 years agoMFC r275477:
dim [Thu, 11 Dec 2014 08:05:59 +0000 (08:05 +0000)]
MFC r275477:

Pull in r174303 from upstream gcc trunk (by Jason Merrill):

  PR c++/48211
  * name-lookup.h (cp_class_binding): Make base a pointer.
  * name-lookup.c (new_class_binding): Adjust.
  (poplevel_class): Adjust.

This fixes a potential segfault when compiling gold, a part of the
devel/binutils port, with gcc.  See also the upstream bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211

Thanks to Jason Merrill, Tom Callaway and Red Hat legal for approving
the use of this patch under the GNU GPL, version 2 or later.

9 years agoMFC r275478: Swap resource count scopes for used/available space.
mav [Thu, 11 Dec 2014 00:25:26 +0000 (00:25 +0000)]
MFC r275478: Swap resource count scopes for used/available space.

Used count should be reported as per-LUN, while available should not.

9 years agoMFC r275199.
cy [Wed, 10 Dec 2014 20:54:23 +0000 (20:54 +0000)]
MFC r275199.

Correctly define constants.

9 years agoMFC r275452: Do not corrupt the listen string when parsing it.
mav [Wed, 10 Dec 2014 08:53:41 +0000 (08:53 +0000)]
MFC r275452: Do not corrupt the listen string when parsing it.

This fixes problem with ctld reload when it is configured to listen on two
portals with same IP, but different ports.

9 years agoMFC r275446: Plug memory leaks on UNMAP and XCOPY with invalid parameters.
mav [Wed, 10 Dec 2014 08:52:47 +0000 (08:52 +0000)]
MFC r275446: Plug memory leaks on UNMAP and XCOPY with invalid parameters.

9 years agoMFC r275666:
delphij [Wed, 10 Dec 2014 08:26:53 +0000 (08:26 +0000)]
MFC r275666:

Fix multiple vulnerabilities in file(1) and libmagic(3).

Security: FreeBSD-SA-14:28.file
Security: CVE-2014-3710, CVE-2014-8116, CVE-2014-8117

9 years agoMFC r275665:
delphij [Wed, 10 Dec 2014 08:24:02 +0000 (08:24 +0000)]
MFC r275665:

Fix buffer overflow in stdio.

Security: FreeBSD-SA-14:27.stdio
Security: CVE-2014-8611

9 years agoMFC r275376:
rpaulo [Tue, 9 Dec 2014 17:03:14 +0000 (17:03 +0000)]
MFC r275376:

  Allow multiple devices to mmap.  It's impossible to prevent this with
  checks on the open/close functions.

9 years agoMFC r274310:
trasz [Tue, 9 Dec 2014 11:52:36 +0000 (11:52 +0000)]
MFC r274310:

Add HISTORY section to ctld(8).

Sponsored by: The FreeBSD Foundation

9 years agoMFC r274308:
trasz [Tue, 9 Dec 2014 11:50:50 +0000 (11:50 +0000)]
MFC r274308:

Add support for sending redirections to iSCSI target.

MFC r274309:

Fix several nits in redirection handling - don't use wrong CSG,
and avoid use-after-free.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r275386:
dim [Tue, 9 Dec 2014 07:15:53 +0000 (07:15 +0000)]
MFC r275386:

Let GNU ld be less obscure about missing symbols and DSOs.  If the BFD
object looks like a typical shared library, suggest adding '-l<foo>',
where <foo> has the 'lib' prefix and '.so<bar>' or '.a' suffix removed.

Otherwise, suggest adding '-l:<foo>', where <foo> is the full DT_SONAME.

Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by: EMC / Isilon storage division
Reviewed by: emaste
PR: 194296
Differential Revision: https://reviews.freebsd.org/D1152

9 years agoMFC r274322:
bryanv [Tue, 9 Dec 2014 07:03:49 +0000 (07:03 +0000)]
MFC r274322:

  Attempt to report a better error if sanitize is not supported

9 years agoMFC r275071:
delphij [Tue, 9 Dec 2014 00:47:02 +0000 (00:47 +0000)]
MFC r275071:

Reinstitate send() after syslogd restarts.

In r228193 the test of CONNPRIV have been moved to before the _usleep
and send in vsyslog().  When syslogd restarts, this would prevent the
message being logged after the disconnect/connect dance for
scenario #1.

PR: 194751
Submitted by: Peter Creath <pjcreath+freebsd gmail com>
Reviewed By: glebius

9 years agoMFC r275046: whitespace and cosmetic changes in callout_reset family of macros
avg [Mon, 8 Dec 2014 13:19:29 +0000 (13:19 +0000)]
MFC r275046: whitespace and cosmetic changes in callout_reset family of macros

Not applicable to earlier releases.

9 years agoMFC r275045: callout(9): add sbt flavors of callout_schedule
avg [Mon, 8 Dec 2014 13:13:17 +0000 (13:13 +0000)]
MFC r275045: callout(9): add sbt flavors of callout_schedule

Not applicable to earlier releases.

9 years agoMFC r274628: l2arc: restore correct rounding up of asize of compressed data
avg [Mon, 8 Dec 2014 13:06:44 +0000 (13:06 +0000)]
MFC r274628: l2arc: restore correct rounding up of asize of compressed data

9 years agoMFC r274277:
trasz [Mon, 8 Dec 2014 11:28:08 +0000 (11:28 +0000)]
MFC r274277:

ctld(8) doesn't require -lcam or -lssl; remove those from DPADD and LDADD.

Sponsored by: The FreeBSD Foundation