]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoUse the correct offset when converting a logical address (segment:offset)
neel [Fri, 11 Jul 2014 01:23:38 +0000 (01:23 +0000)]
Use the correct offset when converting a logical address (segment:offset)
to a linear address.

10 years agoEliminate plim and vtmp local vars in exit1.
mjg [Thu, 10 Jul 2014 22:54:38 +0000 (22:54 +0000)]
Eliminate plim and vtmp local vars in exit1.

No functional changes.

MFC after: 1 week

10 years agoDon't make a temporary copy of fixed sysctl strings.
mjg [Thu, 10 Jul 2014 21:46:57 +0000 (21:46 +0000)]
Don't make a temporary copy of fixed sysctl strings.

10 years agoMake MK_GNUCXX mean "build the libstdc++ and libsupc++ libraries" and
imp [Thu, 10 Jul 2014 21:11:48 +0000 (21:11 +0000)]
Make MK_GNUCXX mean "build the libstdc++ and libsupc++ libraries" and
nothing more. Force it to be "no" when MK_CXX is "no" to simplify
usage.  It no longer also means "build g++" since we no longer have a
platform where that's interesting now that pc98 no longer needs clang
and gcc, but not g++. pc98 now just uses clang after boot2 changes.

10 years agoDon't zero fd_nfiles during fdp destruction.
mjg [Thu, 10 Jul 2014 21:05:45 +0000 (21:05 +0000)]
Don't zero fd_nfiles during fdp destruction.

Code trying to take a look has to check fd_refcnt and it is 0 by that time.

This is a follow up to r268505, without this the code would leak memory for
tables bigger than the default.

MFC after: 1 week

10 years agoAvoid relocking filedesc lock when closing fds during fdp destruction.
mjg [Thu, 10 Jul 2014 20:59:54 +0000 (20:59 +0000)]
Avoid relocking filedesc lock when closing fds during fdp destruction.

Don't call bzero nor fdunused from fdfree for such cases. It would do
unnecessary work and complain that the lock is not taken.

MFC after: 1 week

10 years agoCorrect the accounting code for wired mappings. The wrong field of the PVO
alc [Thu, 10 Jul 2014 20:55:38 +0000 (20:55 +0000)]
Correct the accounting code for wired mappings.  The wrong field of the PVO
entry was being tested.  We were incrementing and decrementing the pmap's
wired mapping count based on whether the physical page being mapped or
unmapped was cache coherent, not whether it was a wired mapping.

Reviewed by: nwhitehorn

10 years agoSeparate out the links creation from the other targets. This was
imp [Thu, 10 Jul 2014 18:28:12 +0000 (18:28 +0000)]
Separate out the links creation from the other targets. This was
supposed to have been done for the original commit, but somebody
forgot.

Pointy-hat-to: imp@
10 years agoSync some (mostly cosmetical) changes from NetBSD
pfg [Thu, 10 Jul 2014 17:52:17 +0000 (17:52 +0000)]
Sync some (mostly cosmetical) changes from NetBSD

Makefile,v 1.37
tc1.c v 1.3
Rename TEST/test.c tc1.c

common.c,v 1.23
pass lint on _LP64.

emacs.c,v 1.22
pass lint on _LP64.

filecomplete.h,v 1.8
mv NetBSD ID back from 1.9 as we don't
have the widecharacter support.

prompt.c,v 1.14
prompt.h,v 1.9
term.h,v 1.20
read.h,v 1.6
Update NetBSD version strings

sys.h,v 1.12
Misc sun stuff.

tty.c 1.31
handle EINTR in the termios operations
Allow a single process to control multiple ttys (for pthreads using _REENTRANT)
using multiple EditLine objects.
pass lint on _LP64.
Don't depend on side effects inside an assert

MFC after: 1 week
Obtained from: NetBSD

10 years agoCorrect the setting of the VID in transmit descriptors when hardware VLAN
markj [Thu, 10 Jul 2014 16:46:46 +0000 (16:46 +0000)]
Correct the setting of the VID in transmit descriptors when hardware VLAN
tagging is enabled. This was broken in r266978.

Reported by: gjb
Tested by: gjb

10 years agoFix a couple of style nits.
ed [Thu, 10 Jul 2014 16:10:39 +0000 (16:10 +0000)]
Fix a couple of style nits.

- Use set instead of std::set, to be consistent with the rest of the file.
- Remove return (0); it's not required.
- Add a dash at the beginning of the copyright, per style(9).

10 years agoDon't use auto, as we also need to support GCC 4.2.
ed [Thu, 10 Jul 2014 15:58:28 +0000 (15:58 +0000)]
Don't use auto, as we also need to support GCC 4.2.

10 years agoLet users(1) use an std::set, instead of std::{vector,sort,unique}.
ed [Thu, 10 Jul 2014 15:56:15 +0000 (15:56 +0000)]
Let users(1) use an std::set, instead of std::{vector,sort,unique}.

Reviewed by: gahr

10 years agoRegenerate src.conf(5) after texinfo option change
bapt [Thu, 10 Jul 2014 15:14:37 +0000 (15:14 +0000)]
Regenerate src.conf(5) after texinfo option change

10 years agoThe GNU texinfo and GNU info pages are not built and installed
bapt [Thu, 10 Jul 2014 15:05:41 +0000 (15:05 +0000)]
The GNU texinfo and GNU info pages are not built and installed
anymore, WITH_INFO knob has been added to allow to built and install
them again.

Reviewed by: imp

10 years agoPending interrupt status is cleared by writing to the ISR, not the data reg.
ian [Thu, 10 Jul 2014 14:06:18 +0000 (14:06 +0000)]
Pending interrupt status is cleared by writing to the ISR, not the data reg.

MFC after: 1 week

10 years agoImplement Short/Small String Optimization in SBUF(9) and change lengths and
gahr [Thu, 10 Jul 2014 13:08:51 +0000 (13:08 +0000)]
Implement Short/Small String Optimization in SBUF(9) and change lengths and
positions in the API from ssize_t and int to size_t.

CR: D388
Approved by: des, bapt

10 years agoSupport EAGAIN in fetch_writev
bapt [Thu, 10 Jul 2014 13:04:52 +0000 (13:04 +0000)]
Support EAGAIN in fetch_writev

Reviewed by: des
Approved by: des

10 years agoOn machines with strict alignment copy pfsync_state_key from packet
glebius [Thu, 10 Jul 2014 12:41:58 +0000 (12:41 +0000)]
On machines with strict alignment copy pfsync_state_key from packet
on stack to avoid unaligned access.

PR: 187381
Submitted by: Lytochkin Boris <lytboris gmail.com>

10 years agoReimplements users(1) in C++.
gahr [Thu, 10 Jul 2014 12:15:02 +0000 (12:15 +0000)]
Reimplements users(1) in C++.

This reduces the lines of code by roughly 50% (not counting the COPYRIGHT
header) and makes it more readable by using standard algorithms.

Approved by: bapt

10 years agoUnconditionally initialize addr to handle the case of changed map
kib [Thu, 10 Jul 2014 11:20:24 +0000 (11:20 +0000)]
Unconditionally initialize addr to handle the case of changed map
timestamp while the map is unlocked.

Reported by: bz
Sponsored by: The FreeBSD Foundation
MFC after: 6 days

10 years agoReword an awkward option description
gavin [Thu, 10 Jul 2014 10:00:10 +0000 (10:00 +0000)]
Reword an awkward option description

PR: 191726
Reported by: yaneurabeya gmail.com
MFC after: 3 days

10 years agoEnable 8051 before downloading firmware.
kevlo [Thu, 10 Jul 2014 09:42:34 +0000 (09:42 +0000)]
Enable 8051 before downloading firmware.

Tested by: Carlos Jacobo Puga Medina <cpm at fbsd dot es>

10 years agoRework when the Tx queue completion interrupt is enabled
bryanv [Thu, 10 Jul 2014 05:36:04 +0000 (05:36 +0000)]
Rework when the Tx queue completion interrupt is enabled

The Tx interrupt is now kept disabled in the common case, only
enabled when the number of free descriptors in the queue falls
below a threshold. Transmitted frames are cleared from the VQ
before subsequent transmit, or in the watchdog timer.

This was a very big performance improvement for an experimental
Netmap bhyve backend.

MFC after: 1 month

10 years agoAdd accessor to get the number of free descriptors in the virtqueue
bryanv [Thu, 10 Jul 2014 05:26:01 +0000 (05:26 +0000)]
Add accessor to get the number of free descriptors in the virtqueue

MFC after: 1 month

10 years agoImplement the first stage of multi-bind listen sockets and RSS socket
adrian [Thu, 10 Jul 2014 03:10:56 +0000 (03:10 +0000)]
Implement the first stage of multi-bind listen sockets and RSS socket
awareness.

* Introduce IP_BINDMULTI - indicating that it's okay to bind multiple
  sockets on the same bind details.

  Although the PCB code has been taught about this (see below) this patch
  doesn't introduce the rest of the PCB changes necessary to distribute
  lookups among multiple PCB entries in the global wildcard table.

* Introduce IP_RSS_LISTEN_BUCKET - placing an listen socket into the
  given RSS bucket (and thus a single PCBGROUP hash.)

* Modify the PCB add path to be aware of IP_BINDMULTI:
  + Only allow further PCB entries to be added if the owner credentials
    and IP_BINDMULTI has been specified.  Ie, only allow further
    IP_BINDMULTI sockets to appear if the first bind() was IP_BINDMULTI.

* Teach the PCBGROUP code about IP_RSS_LISTE_BUCKET marked PCB entries.
  Instead of using the wildcard logic and hashing, these sockets are
  simply placed into the PCBGROUP and _not_ in the wildcard hash.

* When doing a PCBGROUP lookup, also do a wildcard match as well.
  This allows for an RSS bucket PCB entry to appear in a PCBGROUP
  rather than having to exist in the wildcard list.

Tested:

* TCP IPv4 server testing with igb(4)
* TCP IPv4 server testing with ix(4)

TODO:

* The pcbgroup lookup code duplicated the wildcard and wildcard-PCB
  logic.  This could be refactored into a single function.

* This doesn't yet work for IPv6 (The PCBGROUP code in netinet6/ doesn't
  yet know about this); nor does it yet fully work for UDP.

10 years agoNow that pc98 no longer needs gcc to compile boot2, remove the special
imp [Thu, 10 Jul 2014 00:15:55 +0000 (00:15 +0000)]
Now that pc98 no longer needs gcc to compile boot2, remove the special
case and treat it just like i386.

10 years agoCompile boot2 with clang on pc98.
imp [Thu, 10 Jul 2014 00:15:50 +0000 (00:15 +0000)]
Compile boot2 with clang on pc98.

10 years agoMake SERIAL support optional again. Enable it for i386 because a huge
imp [Thu, 10 Jul 2014 00:15:42 +0000 (00:15 +0000)]
Make SERIAL support optional again. Enable it for i386 because a huge
percentage of machines has a 16550. Disable it for pc98 since only a
tiny fraction of them have one. These changes save 293 bytes when
building with clang, but preserves the ability to build with serial if
you really want.  We now have 92 bytes free (412 with the in-tree gcc).

10 years agoMerge the clang support from i386. Don't move to clang yet.
imp [Thu, 10 Jul 2014 00:15:38 +0000 (00:15 +0000)]
Merge the clang support from i386. Don't move to clang yet.

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