]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMFV r268455:
delphij [Wed, 9 Jul 2014 23:14:59 +0000 (23:14 +0000)]
MFV r268455:

Use reserved space for ZFS administrative commands.

We reserve 1/2^spa_slop_shift = 1/32 or 3.125% of pool space (or 32MB at
least) for system use.  Most ZPL operations, e.g. write(2), creat(2), will
fail with ENOSPC if we fall below this.

Certain operations, e.g. file removal and most administrative actions,
still permitted until half of the slop space is used.  This would allow
users to use these operations to free up space in the pool when pool is
close to full but half of slop space is still free.

A very restricted set of operations that frees up space or change quota
are always permitted, regardless of the amount of free space.

MFC after:  2 weeks

10 years agoShould check fb_read method presence instead of double check for fb_write.
ray [Wed, 9 Jul 2014 21:55:34 +0000 (21:55 +0000)]
Should check fb_read method presence instead of double check for fb_write.

Pointed by:     emaste

Sponsored by: The FreeBSD Foundation

10 years agoFor safety, ensure that any consumer of the set_regs() and
kib [Wed, 9 Jul 2014 21:39:40 +0000 (21:39 +0000)]
For safety, ensure that any consumer of the set_regs() and
ptrace_set_pc() use the correct return to userspace using iret.

The signal return, PT_CONTINUE (which in fact uses signal return path)
set the pcb flag already.  The setcontext(2) enforces iret return when
%rip is incorrect.  Due to this, the change is redundand, but is made
to ensure that no path which modifies context, forgets to set
PCB_FULL_IRET.

Inspired by: CVE-2014-4699
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoMFV r268454:
delphij [Wed, 9 Jul 2014 21:07:20 +0000 (21:07 +0000)]
MFV r268454:

Refresh zpool list for each interval in order to produce fresh
output.

Illumos issue: 4966 zpool list iterator does not update output

MFC after:  2 weeks

10 years agoMFV r268453:
delphij [Wed, 9 Jul 2014 20:57:42 +0000 (20:57 +0000)]
MFV r268453:

Diff reduction against Illumos.

MFC after:  2 weeks

10 years agoImplement sysconf(_SC_GETGR_R_SIZE_MAX) and sysconf(_SC_GETPW_R_SIZE_MAX).
kib [Wed, 9 Jul 2014 19:12:18 +0000 (19:12 +0000)]
Implement sysconf(_SC_GETGR_R_SIZE_MAX) and sysconf(_SC_GETPW_R_SIZE_MAX).

Reported by: Dmitry Sivachenko <trtrmitya@gmail.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoCurrent code in sysctl proc.vmmap, which intent is to calculate the
kib [Wed, 9 Jul 2014 19:11:57 +0000 (19:11 +0000)]
Current code in sysctl proc.vmmap, which intent is to calculate the
amount of resident pages, in fact calculates the amount of installed
pte entries in the region.  Resident pages which were not soft-faulted
yet are not counted.

Calculate the amount of resident pages by looking in the objects chain
backing the region.

Add a knob to disable the residency calculation at all.  For large
sparce regions, either previous or updated algorithm runs for too long
time, while several introspection tools do not need the (advisory) RSS
value at all.

PR: kern/188911
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoMFV r268452:
delphij [Wed, 9 Jul 2014 18:32:40 +0000 (18:32 +0000)]
MFV r268452:

Explicitly mark file removal transactions as "presumed to result
in a net free of space" so they will not fail with ENOSPC.

Illumos issue: 4950 files sometimes can't be removed from a full
filesystem
MFC after: 2 weeks

10 years agoIn libproc, avoid calling __cxa_demangle(), and thus depending on either
dim [Wed, 9 Jul 2014 17:31:57 +0000 (17:31 +0000)]
In libproc, avoid calling __cxa_demangle(), and thus depending on either
libcxxrt or libsupc++, if WITHOUT_CXX is defined.

Noticed by: sbruno
MFC after: 1 week

10 years agoDocument r268461, readline(3) shlib no longer installed, and
gjb [Wed, 9 Jul 2014 16:07:36 +0000 (16:07 +0000)]
Document r268461, readline(3) shlib no longer installed, and
statically linked into consumers in the base system.

Sponsored by: The FreeBSD Foundation

10 years agoThe GNU readline library is now an INTERNALLIB - that is, it is
bapt [Wed, 9 Jul 2014 15:52:30 +0000 (15:52 +0000)]
The GNU readline library is now an INTERNALLIB - that is, it is
statically linked into consumers (GDB and variants) in the base
system, and the shared library is no longer installed.

That also allows ports to be able to use a modern version of readline

PR: 162948
Reviewed by: emaste

10 years agoFix inconsistent token parameters for kbd_allocate() and kbd_release() in vt(4).
ray [Wed, 9 Jul 2014 14:36:03 +0000 (14:36 +0000)]
Fix inconsistent token parameters for kbd_allocate() and kbd_release() in vt(4).

PR: 191306
Submitted by: jau789@gmail.com
Sponsored by: The FreeBSD Foundation

10 years ago- Update core-secretary
pgj [Wed, 9 Jul 2014 13:37:24 +0000 (13:37 +0000)]
- Update core-secretary

10 years ago- Update core members
pgj [Wed, 9 Jul 2014 11:41:32 +0000 (11:41 +0000)]
- Update core members

10 years agoFix typos.
pluknet [Wed, 9 Jul 2014 09:51:14 +0000 (09:51 +0000)]
Fix typos.

10 years agoUpdate organization.dot to reflect current portmgr@
culot [Wed, 9 Jul 2014 09:15:08 +0000 (09:15 +0000)]
Update organization.dot to reflect current portmgr@

10 years agovm_phys: remove limitation on number of fictitious regions
royger [Wed, 9 Jul 2014 08:12:58 +0000 (08:12 +0000)]
vm_phys: remove limitation on number of fictitious regions

The number of vm fictitious regions was limited to 8 by default, but
Xen will make heavy usage of those kind of regions in order to map
memory from foreign domains, so instead of increasing the default
number, change the implementation to use a red-black tree to track vm
fictitious ranges.

The public interface remains the same.

Sponsored by: Citrix Systems R&D
Reviewed by: kib, alc
Approved by: gibbs

vm/vm_phys.c:
 - Replace the vm fictitious static array with a red-black tree.
 - Use a rwlock instead of a mutex, since now we also need to take the
   lock in vm_phys_fictitious_to_vm_page, and it can be shared.

10 years agoIn several cases in ip_output() we obtain reference on ifa. Do not
glebius [Wed, 9 Jul 2014 07:48:05 +0000 (07:48 +0000)]
In several cases in ip_output() we obtain reference on ifa. Do not
leak it.

Together with: asomers, np
Sponsored by: Nginx, Inc.

10 years agoAdd LUN options to specify 64-bit EUI and NAA identifiers.
mav [Wed, 9 Jul 2014 04:37:50 +0000 (04:37 +0000)]
Add LUN options to specify 64-bit EUI and NAA identifiers.

10 years agoFix a typo.
markj [Wed, 9 Jul 2014 01:33:35 +0000 (01:33 +0000)]
Fix a typo.

MFC after: 3 days

10 years agoFix atf-sh's integration_test
jmmv [Wed, 9 Jul 2014 00:55:50 +0000 (00:55 +0000)]
Fix atf-sh's integration_test

With the move of atf-sh into /usr/libexec in r267181, some of the
tests in the integration_test program broke because they could not
execute atf-sh from the path any longer.

This slipped through because I do have a local atf installation in
my home directory that appears in my path, hence the tests could
still execute my own version.

Fix this by forcing /usr/libexec to appear at the beginning of the
path when attempting to execute atf-sh.

To make upgrading easy (and to avoid an unnecessary entry in UPDATING),
make integration_test depend on the Makefile so that a rebuild of the
shell script is triggered.  This requires a hack in the *.test.mk files
to ensure the Makefile is not treated as a source to the generated
program.  Ugly, I know, but I don't have a better way of doing this at
the moment.  Will think of one once I address the TODO in the *.test.mk
files that suggests generalizing the file generation functionality.

PR: 191052
Reviewed by: Garrett Cooper

10 years agoBump __FreeBSD_version after last SA-14:17.kmem so we have something
peter [Wed, 9 Jul 2014 00:12:05 +0000 (00:12 +0000)]
Bump __FreeBSD_version after last SA-14:17.kmem so we have something
to test against in the freebsd.org cluster.

10 years agoUpdate to bmake-20140620
sjg [Tue, 8 Jul 2014 22:27:50 +0000 (22:27 +0000)]
Update to bmake-20140620
Main change is detection of malformed variable references.

Reviewed by: obrien

10 years agosh: Add test for ${01} and ${010} that already works.
jilles [Tue, 8 Jul 2014 22:04:44 +0000 (22:04 +0000)]
sh: Add test for ${01} and ${010} that already works.

Although it is probably unwise to use this, POSIX is clear that leading
zeroes are permitted in positional parameters (and do not indicate octal).

Such positional parameters are checked for being unset and/or null
correctly, but their value is incorrectly expanded.

10 years agoInitialize SCTP cmsg's and notification's buffer before copying out
delphij [Tue, 8 Jul 2014 21:54:27 +0000 (21:54 +0000)]
Initialize SCTP cmsg's and notification's buffer before copying out
to userland.

Submitted by: tuexen
Security: CVE-2014-3953
Security: FreeBSD-SA-14:17.kmem

10 years agoDon't leave the padding between the msg header and the cmsg data,
delphij [Tue, 8 Jul 2014 21:54:23 +0000 (21:54 +0000)]
Don't leave the padding between the msg header and the cmsg data,
and the padding after the cmsg data un-initialized.

Submitted by: tuexen
Security: CVE-2014-3952
Security: FreeBSD-SA-14:17.kmem

10 years agoDon't install locale1.0 if MK_NLS == no.
jilles [Tue, 8 Jul 2014 21:50:13 +0000 (21:50 +0000)]
Don't install locale1.0 if MK_NLS == no.

The test locale1.0 depends on locale support; it is meaningless without a
working LC_MESSAGES.

I added an OptionalObsoleteFiles.inc entry.

PR: 181151
Submitted by: Garrett Cooper (original version)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

10 years agoAccurately identify the vcpu's operating mode as 64-bit, compatibility,
neel [Tue, 8 Jul 2014 21:48:57 +0000 (21:48 +0000)]
Accurately identify the vcpu's operating mode as 64-bit, compatibility,
protected or real.

10 years agoInvalidate guest TLB mappings as a side-effect of its CR3 being updated.
neel [Tue, 8 Jul 2014 20:51:03 +0000 (20:51 +0000)]
Invalidate guest TLB mappings as a side-effect of its CR3 being updated.

This is a pre-requisite for task switch emulation since the CR3 is loaded
from the new TSS.

10 years agoRemove status setting from datamove() path. Leave that to other places.
mav [Tue, 8 Jul 2014 18:51:03 +0000 (18:51 +0000)]
Remove status setting from datamove() path.  Leave that to other places.

10 years agoRemove IO_SYNC flag when writing extended file attributes on ZFS.
mav [Tue, 8 Jul 2014 17:26:08 +0000 (17:26 +0000)]
Remove IO_SYNC flag when writing extended file attributes on ZFS.

While it is possible to create and write file, modify its permissions, etc.
without ever doing sync, it looks odd that it is required for setting
extended file attributes on ZFS.  UFS does not do sync there too.

Samba uses those extended attributes to store some its data, and doing it
synchronously by many times reduces file creation performance for systems
without SLOG device.

Reviewed by: delphij, jpaetzel, silence on fs@
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

10 years agoFix use-after-free on XPT_RESET_BUS.
mav [Tue, 8 Jul 2014 16:56:21 +0000 (16:56 +0000)]
Fix use-after-free on XPT_RESET_BUS.

That command is not queued, so does not use later status update.

10 years agoEnable TAS feature: notify initiator if its command was aborted by other.
mav [Tue, 8 Jul 2014 16:38:05 +0000 (16:38 +0000)]
Enable TAS feature: notify initiator if its command was aborted by other.

That should make operation more kind to multi-initiator environment.
Without this, other initiators may find out that something bad happened
to their commands only via command timeout.

10 years agoSort by commit revision number.
gjb [Tue, 8 Jul 2014 15:14:21 +0000 (15:14 +0000)]
Sort by commit revision number.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r266531, IMAGACT_BINMISC enabled by default.
gjb [Tue, 8 Jul 2014 15:04:35 +0000 (15:04 +0000)]
Document r266531, IMAGACT_BINMISC enabled by default.
While here, fix a spacing nit from previous commit.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r266757, netmap(4) support for cxgbe(4).
gjb [Tue, 8 Jul 2014 14:59:03 +0000 (14:59 +0000)]
Document r266757, netmap(4) support for cxgbe(4).

Sponsored by: The FreeBSD Foundation

10 years agoDocument r266770, Intel Centrino Wireless-N 105 support.
gjb [Tue, 8 Jul 2014 14:55:31 +0000 (14:55 +0000)]
Document r266770, Intel Centrino Wireless-N 105 support.

Sponsored by: The FreeBSD Foundation

10 years agoFix non-version text after .Fx macro usage.
gjb [Tue, 8 Jul 2014 14:53:51 +0000 (14:53 +0000)]
Fix non-version text after .Fx macro usage.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r267359, disklabel64 partitioning scheme.
gjb [Tue, 8 Jul 2014 14:52:09 +0000 (14:52 +0000)]
Document r267359, disklabel64 partitioning scheme.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r268303, MacMini 3,1 support in asmc(4).
gjb [Tue, 8 Jul 2014 14:46:40 +0000 (14:46 +0000)]
Document r268303, MacMini 3,1 support in asmc(4).

Sponsored by: The FreeBSD Foundation

10 years agoDrop leading 'r' in revision number from previous commit.
gjb [Tue, 8 Jul 2014 14:45:11 +0000 (14:45 +0000)]
Drop leading 'r' in revision number from previous commit.

Sponsored by: The FreeBSD Foundation

10 years agoDocument r268351, end of ia64 support.
gjb [Tue, 8 Jul 2014 14:42:44 +0000 (14:42 +0000)]
Document r268351, end of ia64 support.

Sponsored by: The FreeBSD Foundation

10 years agoSupport CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS. This allows different
ian [Tue, 8 Jul 2014 14:37:01 +0000 (14:37 +0000)]
Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS.  This allows different
C++ options for toolchain versus target when cross-building.

10 years agoUse named constant rather than '0' to access the reset controller register.
ian [Tue, 8 Jul 2014 14:35:09 +0000 (14:35 +0000)]
Use named constant rather than '0' to access the reset controller register.

10 years agoFix typo in r267873.
mav [Tue, 8 Jul 2014 13:28:37 +0000 (13:28 +0000)]
Fix typo in r267873.

10 years agoPass correct command that should be aborted to ISPCTL_ABORT_CMD.
mav [Tue, 8 Jul 2014 13:01:36 +0000 (13:01 +0000)]
Pass correct command that should be aborted to ISPCTL_ABORT_CMD.

This makes XPT_ABORT to work for me on initiator side of isp(4).
Previous code was trying to abort the XPT_ABORT itself and failed.

MFC after: 1 week

10 years ago[mdoc] Fix previous change.
pluknet [Tue, 8 Jul 2014 12:19:34 +0000 (12:19 +0000)]
[mdoc] Fix previous change.

10 years agoDo not return statuses for aborted iSCSI commands.
mav [Tue, 8 Jul 2014 12:16:28 +0000 (12:16 +0000)]
Do not return statuses for aborted iSCSI commands.

10 years agoReturn task management requests to queued execution, but differently.
mav [Tue, 8 Jul 2014 12:15:15 +0000 (12:15 +0000)]
Return task management requests to queued execution, but differently.

Testing shown that both original queued design with separate task queue,
and recent direct execution design had significant flaw: If abort request
arrives just after the victim, the last one may not be in the ooa_queue
yet, and so invisible for the task management function.

Unlike original queued implementation, use same queue for all SCSI and
TASK requests from the same initiator. That avoids races between them:
task functions are always executed in proper time, relatively to other
requests.

10 years agoAdd XPT_ABORT support to iSCSI initiator.
mav [Tue, 8 Jul 2014 09:37:41 +0000 (09:37 +0000)]
Add XPT_ABORT support to iSCSI initiator.

While CAM does not use it normally, it is useful for targets testing.

MFC after: 2 weeks

10 years agoFix task management functions status: task not found is not an error,
mav [Tue, 8 Jul 2014 08:34:34 +0000 (08:34 +0000)]
Fix task management functions status: task not found is not an error,
while not implemented function is.

10 years agoMake this compilable on latest Linux'es without warnings.
kib [Tue, 8 Jul 2014 08:11:52 +0000 (08:11 +0000)]
Make this compilable on latest Linux'es without warnings.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoCorrect the problem reported by test16 from
kib [Tue, 8 Jul 2014 08:10:15 +0000 (08:10 +0000)]
Correct the problem reported by test16 from
tools/regression/file/flock/flock.c, which completes the fix in
r192685.  When the lock was stolen from us, retry the whole lock
sequence in kernel, instead of returning EINTR to usermode and hoping
that application would handle it correctly by restarting the lock
acquire.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoCorrect si_code for the SIGBUS signal generated by the alignment trap.
kib [Tue, 8 Jul 2014 08:05:42 +0000 (08:05 +0000)]
Correct si_code for the SIGBUS signal generated by the alignment trap.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoMake synopsis version of -3 flag match other uses in the page.
wblock [Tue, 8 Jul 2014 02:43:04 +0000 (02:43 +0000)]
Make synopsis version of -3 flag match other uses in the page.

MFC after: 1 week

10 years agoTypo means that this couldn't have possibly fixed anything, so revert
imp [Tue, 8 Jul 2014 02:11:48 +0000 (02:11 +0000)]
Typo means that this couldn't have possibly fixed anything, so revert
r268377.

10 years agoxdev builds libsupc++ and libstdc++ in a slightly strange way. This
imp [Mon, 7 Jul 2014 23:21:25 +0000 (23:21 +0000)]
xdev builds libsupc++ and libstdc++ in a slightly strange way. This
cause a race to be exposed between the two. Compensate for this race
by serializing the build/install of libstdc++ before libsupc++.

10 years agorm -rf can fail sometimes with an error from fts_read. Make it honor
imp [Mon, 7 Jul 2014 23:21:20 +0000 (23:21 +0000)]
rm -rf can fail sometimes with an error from fts_read. Make it honor
fflag to ignore fts_read errors, but stop deleting from that directory
because no further progress can be made.

When building a kernel with a high -j value on a high core count
machine, during the cleanobj phase we can wind up doing multiple rm
-rf at the same time for modules that have subdirectories. This
exposed this race (sometimes) as fts_read can return an error if the
directory is removed by another rm -rf. Since the intent of the -f
flag was to ignore errors, even if this was a bug in fts_read, we
should ignore the error like we've been instructed to do.

10 years agoFix typo in flag name.
imp [Mon, 7 Jul 2014 23:21:15 +0000 (23:21 +0000)]
Fix typo in flag name.

10 years agoNaughty NANDFS was using hidden unused flag, hiding the fact that the
imp [Mon, 7 Jul 2014 23:21:07 +0000 (23:21 +0000)]
Naughty NANDFS was using hidden unused flag, hiding the fact that the
flag was used and wasn't really available. Change the name without
fixing any laying issues that might be present in NANDFS' use of this
flag.

10 years agoDeclaration whitespace changes for style(9).
truckman [Mon, 7 Jul 2014 22:02:39 +0000 (22:02 +0000)]
Declaration whitespace changes for style(9).

MFC after: 1 week

10 years agoMake XPT_GET_TRAN_SETTINGS to report CAM that command queueing is enabled,
mav [Mon, 7 Jul 2014 17:34:48 +0000 (17:34 +0000)]
Make XPT_GET_TRAN_SETTINGS to report CAM that command queueing is enabled,
but make couple changes to handle non-queued commands too, if happen.

MFC after: 2 weeks

10 years agoDocument C_HARDCLOCK flag.
imp [Mon, 7 Jul 2014 16:55:07 +0000 (16:55 +0000)]
Document C_HARDCLOCK flag.

10 years agoRegenerate src.conf.5, which was completely busted by r268351.
dim [Mon, 7 Jul 2014 16:43:42 +0000 (16:43 +0000)]
Regenerate src.conf.5, which was completely busted by r268351.

10 years agoDon't call crdup nor uifind under vnode lock.
mjg [Mon, 7 Jul 2014 14:03:30 +0000 (14:03 +0000)]
Don't call crdup nor uifind under vnode lock.

A locked vnode can get into the way of satisyfing malloc with M_WATOK.

This is a fixup to r268087.

Suggested by: kib
MFC after: 1 week

10 years agoFix "use after free" on port creation error in r268291.
mav [Mon, 7 Jul 2014 11:52:22 +0000 (11:52 +0000)]
Fix "use after free" on port creation error in r268291.

10 years agoAdd support for READ FULL STATUS action of PERSISTENT RESERVE IN command.
mav [Mon, 7 Jul 2014 11:05:04 +0000 (11:05 +0000)]
Add support for READ FULL STATUS action of PERSISTENT RESERVE IN command.

10 years agoTeach ctl_add_initiator() to dynamically allocate IIDs from pool.
mav [Mon, 7 Jul 2014 09:37:22 +0000 (09:37 +0000)]
Teach ctl_add_initiator() to dynamically allocate IIDs from pool.

If port passed negative IID value, the function will try to allocate IID
from the pool of unused, based on passed wwpn or name arguments.  It does
all its best to make IID unique and persistent across reconnects.

This makes persistent reservation properly work for iSCSI.  Previously,
in case of reconnects, reservation could be unexpectedly lost, or even
migrate between intiators.

10 years agoFix bugs for PERSISTENT RESERVE OUT bits in r268096.
mav [Mon, 7 Jul 2014 08:58:36 +0000 (08:58 +0000)]
Fix bugs for PERSISTENT RESERVE OUT bits in r268096.

10 years agoOptim and Fix for mge driver:
fabient [Mon, 7 Jul 2014 08:22:39 +0000 (08:22 +0000)]
Optim and Fix for mge driver:
- add missing rcvif in mbuf
- add missing ipacket stat
- remove uncessary mbuf copy on output path
- fix deadlock of the TX engine in case of error

Obtained from: NETASQ
MFC after: 2 weeks

10 years agoCorrection to r268356: collide only sessions to the same target.
mav [Mon, 7 Jul 2014 06:17:07 +0000 (06:17 +0000)]
Correction to r268356: collide only sessions to the same target.

10 years agoWhen new connection comes in, check whether we already have session from
mav [Mon, 7 Jul 2014 05:48:11 +0000 (05:48 +0000)]
When new connection comes in, check whether we already have session from
the same intiator (Name+ISID).  If so -- terminate the old session and let
the new one take its place, as required by iSCSI RFC.

10 years agoImprove support for Intel Lynx Point USB 3.0 controllers by masking
hselasky [Mon, 7 Jul 2014 05:17:16 +0000 (05:17 +0000)]
Improve support for Intel Lynx Point USB 3.0 controllers by masking
the port routing bits like done in Linux.

MFC after: 1 week
Tested by: Tur-Wei Chan <twchan@singnet.com.sg>

10 years agoImplement ABORT TASK SET and I_T NEXUS RESET task management functions.
mav [Mon, 7 Jul 2014 03:10:56 +0000 (03:10 +0000)]
Implement ABORT TASK SET and I_T NEXUS RESET task management functions.

Use the last one to terminate active commands on iSCSI session termination.
Previous code was aborting only commands doing some data moves.

10 years agoRemove ia64.
marcel [Mon, 7 Jul 2014 00:27:09 +0000 (00:27 +0000)]
Remove ia64.

This includes:
o   All directories named *ia64*
o   All files named *ia64*
o   All ia64-specific code guarded by __ia64__
o   All ia64-specific makefile logic
o   Mention of ia64 in comments and documentation

This excludes:
o   Everything under contrib/
o   Everything under crypto/
o   sys/xen/interface
o   sys/sys/elf_common.h

Discussed at: BSDcan

10 years agoUse common vt_fb parts in ofwfb as far as we are able without sacrificing
nwhitehorn [Mon, 7 Jul 2014 00:12:18 +0000 (00:12 +0000)]
Use common vt_fb parts in ofwfb as far as we are able without sacrificing
performance.

MFC after: 2 weeks

10 years agoUse the appropriate IPv6 hashtype defines when looking up the PCBGROUP
bryanv [Mon, 7 Jul 2014 00:02:49 +0000 (00:02 +0000)]
Use the appropriate IPv6 hashtype defines when looking up the PCBGROUP

Reviewed by: adrian@

10 years agoRemove /usr/share/doc/psd/28.cvs/paper.ps.gz if it exists, as it is
gavin [Sun, 6 Jul 2014 23:08:47 +0000 (23:08 +0000)]
Remove /usr/share/doc/psd/28.cvs/paper.ps.gz if it exists, as it is
obsolete since r251794.

PR: 191003
Submitted by: Vick Khera
MFC after: 3 days

10 years agoMake gcc happy, init idlen2.
andreast [Sun, 6 Jul 2014 20:09:23 +0000 (20:09 +0000)]
Make gcc happy, init idlen2.

10 years agoClose race in r268291 between port destruction, delayed by sessions
mav [Sun, 6 Jul 2014 17:57:59 +0000 (17:57 +0000)]
Close race in r268291 between port destruction, delayed by sessions
teardown, and new port creation during `service ctld restart`.

Close it by returning iSCSI port internal state, that allows to identify
dying ports, which should not be counted as existing, from really alive.

10 years agoIntroduce pmap_unwire(). It will replace pmap_change_wiring(). There are
alc [Sun, 6 Jul 2014 17:42:38 +0000 (17:42 +0000)]
Introduce pmap_unwire().  It will replace pmap_change_wiring().  There are
several reasons for this change:

pmap_change_wiring() has never (in my memory) been used to set the wired
attribute on a virtual page.  We have always used pmap_enter() to do that.
Moreover, it is not really safe to use pmap_change_wiring() to set the wired
attribute on a virtual page.  The description of pmap_change_wiring() says
that it assumes the existence of a mapping in the pmap.  However, non-wired
mappings may be reclaimed by the pmap at any time.  (See pmap_collect().)
Many implementations of pmap_change_wiring() will crash if the mapping does
not exist.

pmap_unwire() accepts a range of virtual addresses, whereas
pmap_change_wiring() acts upon a single virtual page.  Since we are
typically unwiring a range of virtual addresses, pmap_unwire() will be more
efficient.  Moreover, pmap_unwire() allows us to unwire superpage mappings.
Previously, we were forced to demote the superpage mapping, because
pmap_change_wiring() only allowed us to express the unwiring of a single
base page mapping at a time.  This added to the overhead of unwiring for
large ranges of addresses, including the implicit unwiring that occurs at
process termination.

Implementations for arm and powerpc will follow.

Discussed with: jeff, marcel
Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division

10 years agoMake iSCSI initiator keep Initiator Session ID (ISID) across reconnects.
mav [Sun, 6 Jul 2014 17:37:49 +0000 (17:37 +0000)]
Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects.

Previously ISID was changed every time, that made impossible correct
persistent reservation, because reconnected session was identified as
completely new one.

Reviewed by: trasz
MFC after: 1 week

10 years agoIn case we ever support little-endian PowerPC (probably userland only),
nwhitehorn [Sun, 6 Jul 2014 16:20:37 +0000 (16:20 +0000)]
In case we ever support little-endian PowerPC (probably userland only),
avoid hardcoding endianness here.

10 years agoAdd a new CPU id for a POWER8 variant.
nwhitehorn [Sun, 6 Jul 2014 16:19:55 +0000 (16:19 +0000)]
Add a new CPU id for a POWER8 variant.

10 years agoFix OFED startup order: All SYSINIT()'s and modules should be loaded
hselasky [Sun, 6 Jul 2014 14:22:13 +0000 (14:22 +0000)]
Fix OFED startup order: All SYSINIT()'s and modules should be loaded
prior to starting "/sbin/init" which will run all the "/etc/rc.d/xxx"
scripts. Else there can be a race configuring the interfaces via
"/etc/rc.conf".

MFC after: 4 weeks
Sponsored by: Mellanox Technologies

10 years agoFix compile warning.
hselasky [Sun, 6 Jul 2014 14:20:47 +0000 (14:20 +0000)]
Fix compile warning.

MFC after: 4 weeks
Sponsored by: Mellanox Technologies

10 years agoFix some compile warnings.
hselasky [Sun, 6 Jul 2014 14:14:07 +0000 (14:14 +0000)]
Fix some compile warnings.

MFC after: 4 weeks
Sponsored by: Mellanox Technologies

10 years agoAlign the stack in _rtld_bind_start. Normally this is called with the
andrew [Sun, 6 Jul 2014 10:24:06 +0000 (10:24 +0000)]
Align the stack in _rtld_bind_start. Normally this is called with the
correct stack alignment, however when we have a leaf function that uses
thread local storage it calls __aeabi_read_tp to get the thread pointer.
Neither GCC or clang see this as a function call so will align the stack
to a 4-byte boundary. This may be a problem as _rtld_bind expects to be
on an 8-byte boundary.

The solution is to store a copy of the stack pointer and force the
alignment before calling _rtld_bind.

This fixes a problem with armeb where applications would crash in odd ways.
It should also remove the need for a local patch to clang to force the
stack alignment to an 8-byte boundary, even for leaf functions. Further
testing will be needed before reverting this local change to clang as we
may rely on it in other places.

Reviewed by: jmg@

10 years agoAdd support for SCSI Ports (88h) VPD page.
mav [Sun, 6 Jul 2014 07:34:18 +0000 (07:34 +0000)]
Add support for SCSI Ports (88h) VPD page.

10 years agoMake REPORT TARGET PORT GROUPS command report realistic data instead of
mav [Sun, 6 Jul 2014 07:02:36 +0000 (07:02 +0000)]
Make REPORT TARGET PORT GROUPS command report realistic data instead of
hardcoded garbage.

10 years agoMove lun_map() method from command nexus to port.
mav [Sun, 6 Jul 2014 06:21:34 +0000 (06:21 +0000)]
Move lun_map() method from command nexus to port.

Previous implementation made impossible to do some things, such as calling
it for ports other then one through which command arrived.

10 years agoRelax some bit checks for INQUIRY command.
mav [Sun, 6 Jul 2014 06:12:29 +0000 (06:12 +0000)]
Relax some bit checks for INQUIRY command.

FreeBSD still tries to put LUN number in second byte until it get device
protocol version, even that it was obsoleted about 20 years ago.

10 years agosh: Fix overflow checking on 'ulimit' operand.
jilles [Sat, 5 Jul 2014 21:50:59 +0000 (21:50 +0000)]
sh: Fix overflow checking on 'ulimit' operand.

10 years agoAdd support to asmc(4) for Macmini 3,1.
gavin [Sat, 5 Jul 2014 21:34:37 +0000 (21:34 +0000)]
Add support to asmc(4) for Macmini 3,1.

PR: 190195
Submitted by: fbsdbugs2 sentry.org
MFC after: 1 week
Relnotes: yes

10 years agoPass through iSCSI session ISID from LOGIN request to the CTL frontend.
mav [Sat, 5 Jul 2014 21:18:33 +0000 (21:18 +0000)]
Pass through iSCSI session ISID from LOGIN request to the CTL frontend.

ISID is an important part of initiator transport ID for iSCSI.  It is not
used now, but should be to properly implement persistent reservation.

10 years agoCheck the number of returned entries before doing any access to ifm_ulist.
loos [Sat, 5 Jul 2014 20:16:02 +0000 (20:16 +0000)]
Check the number of returned entries before doing any access to ifm_ulist.

10 years agobsd.dep.mk: add support for generating DTrace header files from .d files.
rpaulo [Sat, 5 Jul 2014 20:08:35 +0000 (20:08 +0000)]
bsd.dep.mk: add support for generating DTrace header files from .d files.

MFC after: 3 weeks

10 years agoUse %zu not %zd for printing size_t.
gavin [Sat, 5 Jul 2014 20:08:25 +0000 (20:08 +0000)]
Use %zu not %zd for printing size_t.

PR: 185007
Submitted by: saper saper.info
MFC after: 3 days

10 years agoCorrect format string to fix build of uhsoctl when DEBUG is defined
gavin [Sat, 5 Jul 2014 19:53:21 +0000 (19:53 +0000)]
Correct format string to fix build of uhsoctl when DEBUG is defined

PR: 185007
Submitted by: saper saper.info
MFC after: 3 days

10 years agoAdd the DTrace probe definitions for plockstat support.
rpaulo [Sat, 5 Jul 2014 19:49:31 +0000 (19:49 +0000)]
Add the DTrace probe definitions for plockstat support.

This will be connected to the system later.

Sponsored by: The FreeBSD Foundation