]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFH: r264781, r267669, r267670
bapt [Sun, 6 Jul 2014 23:24:06 +0000 (23:24 +0000)]
MFH: r264781, r267669, r267670

Simplify reading pw.conf(5) by using getline(3)

Removed compatibility with pre FreeBSD 2.2 pw_mkdb command [1]
Fix some broken indentattion [1]

Fix changing the username [2]

PR: 189172 [1], 189173 [2]
Submitted by: fullermd@over-yonder.net [1][2]

git-svn-id: svn://svn.freebsd.org/base/stable/10@268346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268001:
mjg [Sun, 6 Jul 2014 23:23:01 +0000 (23:23 +0000)]
MFC r268001:
Make fdunshare accept only td parameter.

Proc had to match the thread anyway and 2 parameters were inconsistent
with the rest.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268000:
mjg [Sun, 6 Jul 2014 23:20:48 +0000 (23:20 +0000)]
MFC r268000:

Make sure to always clear p_fd for process getting rid of its filetable.

Filetable can be shared with other processes. Previous code failed to
clear the pointer for all but the last process getting rid of the table.
This is mostly cosmetics.

Get rid of 'This should happen earlier' comment. Clearing the pointer in
this place is fine as consumers can reliably check for files availability
by inspecting fd_refcnt and vnodes availabity by NULL-checking them.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdd mergeinfo missed in r268335-r268341
mjg [Sun, 6 Jul 2014 23:17:21 +0000 (23:17 +0000)]
Add mergeinfo missed in r268335-r268341

Prodded by: gjb

git-svn-id: svn://svn.freebsd.org/base/stable/10@268343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267947:
mjg [Sun, 6 Jul 2014 23:01:29 +0000 (23:01 +0000)]
MFC r267947:

Check lower bound of cmsg_len.

If passed cm->cmsg_len was below cmsghdr size the experssion:
datalen = (caddr_t)cm + cm->cmsg_len - (caddr_t)data;

would give negative result. However, in practice it would not
result in a crash because the kernel would try to obtain garbage fds
for given process and would error out with EBADF.

PR: 124908
Submitted by: campbell mumble.net (modified a little)

git-svn-id: svn://svn.freebsd.org/base/stable/10@268341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267760:
mjg [Sun, 6 Jul 2014 22:58:53 +0000 (22:58 +0000)]
MFC r267760:
Tidy up fd-related functions called by do_execve

o assert in each one that fdp is not shared
o remove unnecessary NULL checks - all userspace processes have fdtables
and kernel processes cannot execve
o remove comments about the danger of fd_ofiles getting reallocated - fdtable
is not shared and fd_ofiles could be only reallocated if new fd was about to be
added, but if that was possible the code would already be buggy as setugidsafety
work could be undone

git-svn-id: svn://svn.freebsd.org/base/stable/10@268340 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267755:
mjg [Sun, 6 Jul 2014 22:56:34 +0000 (22:56 +0000)]
MFC r267755:

Don't take filedesc lock in fdunshare().

We can read refcnt safely and only care if it is equal to 1.

If it could suddenly change from 1 to something bigger the code would be
buggy even in the previous form and transitions from > 1 to 1 are equally racy
and harmless (we copy even though there is no need).

git-svn-id: svn://svn.freebsd.org/base/stable/10@268339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267710:
mjg [Sun, 6 Jul 2014 22:54:17 +0000 (22:54 +0000)]
MFC r267710:

fd: replace fd_nfiles with fd_lastfile where appropriate

fd_lastfile is guaranteed to be the biggest open fd, so when the intent
is to iterate over active fds or lookup one, there is no point in looking
beyond that limit.

Few places are left unpatched for now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268338 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267708:
mjg [Sun, 6 Jul 2014 22:51:53 +0000 (22:51 +0000)]
MFC r267708:

do_dup: plug redundant adjustment of fd_lastfile

By that time it was already set by fdalloc, or was there in the first place
if fd is replaced.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268337 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265247:
mjg [Sun, 6 Jul 2014 22:49:07 +0000 (22:49 +0000)]
MFC r265247:
Request a non-exiting process in sysctl_kern_proc_{o,}filedesc

This fixes a race with exit1 freeing p_textvp.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268336 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265206:
mjg [Sun, 6 Jul 2014 22:47:18 +0000 (22:47 +0000)]
MFC r265206:

Ignore the error from pipespace_new when creating a pipe.

It can fail if pipe map is exhausted (as a result of too many pipes created),
but it is not fatal and could be provoked by unprivileged users. The only
consequence is worse performance with given pipe.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268335 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268193, r268203:
pfg [Sun, 6 Jul 2014 17:29:19 +0000 (17:29 +0000)]
MFC r268193, r268203:

Fix sed(1) usage: the -i extension is not an optional.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268325 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268125:
pfg [Sun, 6 Jul 2014 17:18:48 +0000 (17:18 +0000)]
MFC r268125:

Small merges from OpenSolaris:

These have no effect on FreeBSD, in fact they are ifdef'ed,
but make easier future merges:

6699767 panic in spec_open()

6718877 crgetzoneid() use can cause problems when forking processes with
USDT providers in a non global zone

git-svn-id: svn://svn.freebsd.org/base/stable/10@268323 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268232:
gjb [Sun, 6 Jul 2014 03:31:01 +0000 (03:31 +0000)]
MFC r268232:
  The u-boot tarball needed for some boards, BEAGLEBONE for
  example, explicitly hard-code gcc(1) as the compiler.

  Partially revert r264703, which did a post-chroot install
  of gcc(1).  This was initially removed because gcc(1) fails
  to build usr.bin/dtc/ causing the xdev target to fail.  So
  this time, move the gcc(1) installation after xdev is built.

  This change is likely applicable to stable/10 arm build
  failures, as well.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@268305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268012, r268196:
bryanv [Sat, 5 Jul 2014 03:48:22 +0000 (03:48 +0000)]
MFC r268012, r268196:

  - Remove some write only variables
  - Give each interrupt a descriptive name when using MSIX

git-svn-id: svn://svn.freebsd.org/base/stable/10@268281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268178:
mav [Sat, 5 Jul 2014 01:14:14 +0000 (01:14 +0000)]
MFC r268178:
Fix bug in sync control in new "dev" mode of ZVOL (r265678).

Don't check ZVOL_WCE flag, used in Solaris to control device "write cache".
It is not applicable on FreeBSD and by default set to "disable".

git-svn-id: svn://svn.freebsd.org/base/stable/10@268274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267648:
mav [Fri, 4 Jul 2014 16:17:15 +0000 (16:17 +0000)]
MFC r267648:
serial_num and device_id fields are not necessarily null-terminated.

Before this it was impossible to use all 16 bytes of serial number, and
client always got serial number NULL-terminated, that is not required.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268262 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267641:
mav [Fri, 4 Jul 2014 16:11:30 +0000 (16:11 +0000)]
MFC r267641:
Add some more CTL_FLAG_ABORT check points.

This should allow to abort commands doing mostly disk I/O, such as VERIFY
or WRITE SAME.  Before this change CTL_FLAG_ABORT was only checked around
data moves, which for these commands may not happen for a very long time.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268261 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267637:
mav [Fri, 4 Jul 2014 16:10:14 +0000 (16:10 +0000)]
MFC r267637:
Add iSCSI Target Name ID descriptor to VPD 83h.

It shall/should be there according to SPC-4, and istgt also provides it.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268260 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267610 (by trasz):
mav [Fri, 4 Jul 2014 16:09:09 +0000 (16:09 +0000)]
MFC r267610 (by trasz):
Rework session termination in iSCSI target to actually wait
for any outstanding commands to be properly aborted by CTL.
Without it, in some cases (such as files backing the LUNs
stored on failing disk drives), terminating a busy session
would result in panic.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268259 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267574 (by trasz):
mav [Fri, 4 Jul 2014 16:07:57 +0000 (16:07 +0000)]
MFC r267574 (by trasz):
Make cs_terminating a bool; no functional changes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268258 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267547, r267551 (by trasz):
mav [Fri, 4 Jul 2014 16:06:56 +0000 (16:06 +0000)]
MFC r267547, r267551 (by trasz):
Add LUN-associated name to VPD, to make Hyper-V Failover Cluster happy.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268257 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267051:
mav [Fri, 4 Jul 2014 15:09:56 +0000 (15:09 +0000)]
MFC r267051:
- Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support
scatter/gather lists.
- Return error for still unsupported SG 3.x API read/write calls.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268255 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r268095
marius [Fri, 4 Jul 2014 13:57:58 +0000 (13:57 +0000)]
MFC: r268095

Actually pro AMD chipsets, making r244146 work.

Sponsored by: Bally Wulff Games & Entertainment GmbH

git-svn-id: svn://svn.freebsd.org/base/stable/10@268250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267960:
hselasky [Fri, 4 Jul 2014 06:03:54 +0000 (06:03 +0000)]
MFC r267960:
Don't hide zero-length strings when doing sysctl listings.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267909: Document EINVAL.
pluknet [Thu, 3 Jul 2014 17:35:01 +0000 (17:35 +0000)]
MFC r267909: Document EINVAL.

PR: 191382

git-svn-id: svn://svn.freebsd.org/base/stable/10@268223 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267955 and r268209:
hselasky [Thu, 3 Jul 2014 16:13:44 +0000 (16:13 +0000)]
MFC r267955 and r268209:
- Add proper rangechecks in "axge_rx_frame()" function and
fix receive loop header parsing.
- Disable hardware checksumming until it is properly tested.

PR: 191432

git-svn-id: svn://svn.freebsd.org/base/stable/10@268219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267912, r267915:
ume [Thu, 3 Jul 2014 15:56:30 +0000 (15:56 +0000)]
MFC r267912, r267915:
- Exclude loopback address rather than loopback interface.
- style(9)

Spotted by: melifaro

git-svn-id: svn://svn.freebsd.org/base/stable/10@268216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r267852
daichi [Thu, 3 Jul 2014 10:59:42 +0000 (10:59 +0000)]
MFC: r267852

Fixed an IIC timing issue between the glxiic master and a slave of
peripheral devices.  When transmitting (rx) from slave to master,
sometimes nAKC delays. As a result, some slaves fails their
transmission.

Submitted by: Masanori OZAWA <ozawa@ongs.co.jp>
Reviewed by: brix

git-svn-id: svn://svn.freebsd.org/base/stable/10@268210 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268078 and r268080:
hselasky [Thu, 3 Jul 2014 06:44:55 +0000 (06:44 +0000)]
MFC r268078 and r268080:
Fix for memory use after free() and mtx_destroy().

git-svn-id: svn://svn.freebsd.org/base/stable/10@268206 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263380 & r268185: Add KTR events for the PMAP interface functions.
marcel [Wed, 2 Jul 2014 23:57:55 +0000 (23:57 +0000)]
MFC r263380 & r268185: Add KTR events for the PMAP interface functions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263323: Fix and improve exception tracing.
marcel [Wed, 2 Jul 2014 23:47:43 +0000 (23:47 +0000)]
MFC r263323: Fix and improve exception tracing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268200 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263254: Move the implementation of kdb_cpu_trap() from <machine/kdb.h>
marcel [Wed, 2 Jul 2014 23:37:14 +0000 (23:37 +0000)]
MFC r263254: Move the implementation of kdb_cpu_trap() from <machine/kdb.h>
to machdep.c.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268199 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263253: Don't use the ITC as the faulting address for external
marcel [Wed, 2 Jul 2014 23:33:07 +0000 (23:33 +0000)]
MFC r263253: Don't use the ITC as the faulting address for external
interrupts.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268071, 268072, 268088
scottl [Wed, 2 Jul 2014 23:32:05 +0000 (23:32 +0000)]
Merge r268071, 268072, 268088

 Refactor some code in mps.c to reduce header pollution.
 Add accessor functions for manipulating the CAM CCB status field.
 Don't overload the CCB status field within the driver.

Reviewed by:    gibbs, slm
Obtained from:  Netflix, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268197 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263248 & r263257: In intr_event_handle() we already save and set
marcel [Wed, 2 Jul 2014 23:23:18 +0000 (23:23 +0000)]
MFC r263248 & r263257: In intr_event_handle() we already save and set
td_intr_frame, so don't do it also in ia64_handle_intr().

git-svn-id: svn://svn.freebsd.org/base/stable/10@268195 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r262726: When reading physical memory, make sure to access it using
marcel [Wed, 2 Jul 2014 23:12:56 +0000 (23:12 +0000)]
MFC r262726: When reading physical memory, make sure to access it using
the right memory attributes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268194 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r259959 & r260009: Add prototypical support for minidumps.
marcel [Wed, 2 Jul 2014 23:05:57 +0000 (23:05 +0000)]
MFC r259959 & r260009: Add prototypical support for minidumps.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r257484: Change PAL_PTCE_INFO related variables.
marcel [Wed, 2 Jul 2014 22:19:59 +0000 (22:19 +0000)]
MFC r257484: Change PAL_PTCE_INFO related variables.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r257477: Purge the translation cache of APs before we unleash them.
marcel [Wed, 2 Jul 2014 22:06:31 +0000 (22:06 +0000)]
MFC r257477: Purge the translation cache of APs before we unleash them.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268184 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 257475: Respect the kern.smp.disabled tunable.
marcel [Wed, 2 Jul 2014 21:53:34 +0000 (21:53 +0000)]
MFC 257475: Respect the kern.smp.disabled tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268181 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267680:
dteske [Wed, 2 Jul 2014 19:25:25 +0000 (19:25 +0000)]
MFC r267680:
Fix a code typo that prevented mkdir from firing (unnoticed
usually because another part of the code succeeded in making
the same directory).

git-svn-id: svn://svn.freebsd.org/base/stable/10@268170 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266814
truckman [Wed, 2 Jul 2014 17:32:43 +0000 (17:32 +0000)]
MFC r266814

Initialize r_flags the same way in all cases using a sanitized copy of
flags that has several bits cleared. The RF_WANTED and RF_FIRSTSHARE
bits are invalid in this context, and we want to defer setting RF_ACTIVE
in r_flags until later.  This should make rman_get_flags() return
the correct answer in all cases.

Add a KASSERT() to catch callers which incorrectly pass the RF_WANTED
or RF_FIRSTSHARE flags.

Do a strict equality check on the share type bits of flags.  In
particular, do an equality check on RF_PREFETCHABLE.  The previous
code would allow one type of mismatch of RF_PREFETCHABLE but disallow
the other type of mismatch.  Also, ignore the the RF_ALIGNMENT_MASK
bits since alignment validity should be handled by the amask check.
This field contains an integer value, but previous code did a strange
bitwise comparison on it.

Leave the original value of flags unmolested as a minor debug aid.

Change the start+amask overflow check to a KASSERT() since it is just
meant to catch a highly unlikely programming error in the caller.

Reviewed by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/10@268167 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC mkimg(1) -- revisions 268159, 268134, 266556, 266514, 266513,
marcel [Wed, 2 Jul 2014 14:54:41 +0000 (14:54 +0000)]
MFC mkimg(1) -- revisions 268159, 268134, 266556, 266514, 266513,
266512, 266511, 266510, 266509, 266176, 265468, 265467,
265462, 265170, 263926, 263924, 263923, 263919 and 263918.

Revision 267182 changed mkimg.1 alongside other unrelated manpages.
The change to mkimg.1 has been applied without registering a merge
of the revision. This allows a future merge of r267182 to happen.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@268161 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267651 (by attilio):
kib [Wed, 2 Jul 2014 13:09:26 +0000 (13:09 +0000)]
MFC r267651 (by attilio):
Add the possibility to specify ecx when performing cpuid calls.

MFC r267673:
Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID.

MFC r267814:
Make cpuctl_do_cpuid() and cpuctl_do_cpuid_count() return void.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268157 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267871: Introduce $RA_SERVER to set default whois server.
ume [Wed, 2 Jul 2014 11:49:15 +0000 (11:49 +0000)]
MFC r267871: Introduce $RA_SERVER to set default whois server.

Requested by: nork
Reviewed by: nork

git-svn-id: svn://svn.freebsd.org/base/stable/10@268154 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267516i (by joel):
mav [Wed, 2 Jul 2014 10:49:06 +0000 (10:49 +0000)]
MFC r267516i (by joel):
mdoc: add missing width to Bl -tag.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267506:
mav [Wed, 2 Jul 2014 10:48:06 +0000 (10:48 +0000)]
MFC r267506:
Document additional LUN/backend options.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267537:
mav [Wed, 2 Jul 2014 10:45:31 +0000 (10:45 +0000)]
MFC r267537:
Add support for VERIFY(10/12/16) and COMPARE AND WRITE SCSI commands.

Make data_submit backends method support not only read and write requests,
but also two new ones: verify and compare.  Verify just checks readability
of the data in specified location without transferring them outside.
Compare reads the specified data and compares them to received data,
returning error if they are different.

VERIFY(10/12/16) commands request either verify or compare from backend,
depending on BYTCHK CDB field.  COMPARE AND WRITE command executed in two
stages: first it requests compare, and then, if succeesed, requests write.
Atomicity of operation is guarantied by CTL request ordering code.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268151 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267519:
mav [Wed, 2 Jul 2014 10:43:53 +0000 (10:43 +0000)]
MFC r267519:
Make backends track completion by processed number of sectors instead of
total transfer size.

Commands such as VERIFY or COMPARE AND WRITE may have transfer size not
matching directly to number of sectors.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267515:
mav [Wed, 2 Jul 2014 10:42:43 +0000 (10:42 +0000)]
MFC r267515:
Remove memcpy() from ctl_private[] accesses.

That union is aligned enough to access data directly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267514:
mav [Wed, 2 Jul 2014 10:41:11 +0000 (10:41 +0000)]
MFC r267514:
Move kern_total_len setting from backend to core code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268148 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267500:
mav [Wed, 2 Jul 2014 10:39:45 +0000 (10:39 +0000)]
MFC r267500:
Format Portal Group Tag same as istgt does -- %4.4x instead of %x.

SPC-4 spec tells it should be "two or more hexadecimal digits".
RFC3720 tells it is 16-bit value.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268147 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267499:
mav [Wed, 2 Jul 2014 10:38:22 +0000 (10:38 +0000)]
MFC r267499:
Remove custom processing for "file" option.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268146 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267496, r267498:
mav [Wed, 2 Jul 2014 10:37:22 +0000 (10:37 +0000)]
MFC r267496, r267498:
Add "vendor", "product" and "revision" options to control inquiry data.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267485:
mav [Wed, 2 Jul 2014 10:36:04 +0000 (10:36 +0000)]
MFC r267485:
Remove non-functional remnants of control LUN -- 18MB of RAM for nothing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267481, r267952:
mav [Wed, 2 Jul 2014 10:35:06 +0000 (10:35 +0000)]
MFC r267481, r267952:
Implement small KPI to access LUN options instead doing it by hands.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268143 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265323 (by trasz):
mav [Wed, 2 Jul 2014 10:32:44 +0000 (10:32 +0000)]
MFC r265323 (by trasz):
Provide better descriptions for 'struct ctl_scsiio' fields; based mostly
on emails from ken@.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268142 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267872:
mav [Wed, 2 Jul 2014 10:20:08 +0000 (10:20 +0000)]
MFC r267872:
Allow to use iSCSI immediate data by several ctl_datamove() calls.

While for FreeBSD client that is only a minor optimization, VMWare client
doesn't support additional data requests after all data being sent once as
immediate.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267606:
mav [Wed, 2 Jul 2014 10:18:42 +0000 (10:18 +0000)]
MFC r267606:
On discovery stage add set of TargetAddress keys to reply, reporting to
the client all the portal groups addresses and ports.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268140 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266981:
mav [Wed, 2 Jul 2014 10:16:12 +0000 (10:16 +0000)]
MFC r266981:
Overhaul CAM SG driver IOCTL interfaces.

Make it really work for native FreeBSD programs.  Before this it was broken
for years due to different number of pointer dereferences in Linux and
FreeBSD IOCTL paths, permanently returning errors to FreeBSD programs.
This change breaks the driver FreeBSD IOCTL ABI, making it more strict,
but since it was not working any way -- who bother.

Add shims for 32-bit programs on 64-bit host, translating the argument
of the SG_IO IOCTL for both FreeBSD and Linux ABIs.

With this change I was able to run 32-bit Linux sg3_utils tools and simple
32 and 64-bit FreeBSD test tools on both 32 and 64-bit FreeBSD systems.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268139 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMVC r268014:
pfg [Wed, 2 Jul 2014 01:28:38 +0000 (01:28 +0000)]
MVC r268014:
Reduce some warnings in the Solaris unicode support.

Clean some warnings from parenthesis and minor style issues.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268132 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 266322,266323:
jhb [Tue, 1 Jul 2014 18:23:00 +0000 (18:23 +0000)]
MFC 266322,266323:
- Use 'RESOURCE' instead of the more generic 'TYPE' for the resource name
  column header when displaying resource usage.  This more closely matches
  other procstat displays.
- Add descriptions of the display formats for -e, -l, -r, and -x.  Fix a few
  typos in indent settings while here.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268108 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267372-267374: fix various misimplementation of instructions.
delphij [Tue, 1 Jul 2014 15:55:41 +0000 (15:55 +0000)]
MFC r267372-267374: fix various misimplementation of instructions.

Submitted by: Wolf Ramovsky <wolf.ramovsky gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@268100 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267493:
delphij [Tue, 1 Jul 2014 15:50:34 +0000 (15:50 +0000)]
MFC r267493:

Fix two issues:

 - Check for rc.d directory's existence before traversing
   it;
 - Don't output * when rc.d directory is empty.

PR: bin/190665
Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes)

git-svn-id: svn://svn.freebsd.org/base/stable/10@268098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267355:
ae [Tue, 1 Jul 2014 13:29:17 +0000 (13:29 +0000)]
MFC r267355:
  Add UUIDs for DragonFlyBSD's partition types.

MFC r267356:
  Add DragonFlyBSD's Hammer FS types and type names.

MFC r267357:
  Add aliases for DragonFlyBSD's partition types.

MFC r267358:
  Allow dumping to DragonFlyBSD's swap partition.

MFC r267359:
  Add disklabel64 support to GEOM_PART class.

  This partitioning scheme is used in DragonFlyBSD. It is similar to
  BSD disklabel, but has the following improvements:
  * metadata has own dedicated place and isn't accessible through partitions;
  * all offsets are 64-bit;
  * supports 16 partitions by default (has reserved place for more);
  * has reserved place for backup label (but not yet implemented);
  * has UUIDs for partitions and partition types;

MFC r267360:
  Add disklabel64 support

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@268091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r265463:
scottl [Tue, 1 Jul 2014 06:59:23 +0000 (06:59 +0000)]
Merge r265463:

 Due to reasons unknown at this time, the system can be forced to write
 a journal block even when there are no journal entries to be written.
 Until the root cause is found, handle this case by ensuring that a
 valid journal segment is always written.

 Second, the data buffer used for writing journal entries was never
 being scrubbed of old data.  Fix this.

Submitted by: Takehara Mikihito
Obtained from: Netflix, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268077 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r266746, 266775:
scottl [Tue, 1 Jul 2014 06:50:35 +0000 (06:50 +0000)]
Merge r266746, 266775:

 Now that there are separate back-end implementations of busdma, the bounce
 implementation shouldn't steal flags from the common front-end.
 Move those flags to the back-end.

 Eliminate the fake contig_dmamap and replace it with a new flag,
 BUS_DMA_KMEM_ALLOC.  They serve the same purpose, but using the flag
 means that the map can be NULL again, which in turn enables significant
 optimizations for the common case of no bouncing.

Obtained from: Netflix, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268076 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268024, 268025:
scottl [Tue, 1 Jul 2014 06:23:48 +0000 (06:23 +0000)]
Merge r268024, 268025:

 Fix a case in ndling ATA_PASSTHROUGH commands that have an unaligned buffer.
 This impacts some home-rolled SMART tools.

 In rare cases, a SATA drive can stop responding to commands and trigger a
 reset device task request from the driver.  If the drive fails to respond
 with a signature FIS, the driver would previously get into an endless retry
 loop, stalling all I/O to the drive and keeping user processes stranded.
 Instead, fail the i/o and invalidate the device if the task management
 command times out.  This is controllable with the sysctl and tunable
 hw.isci.fail_on_task_timeout
 dev.isci.0.fail_on_task_timeout

 The default for these is 1.

Obtained from: Netflix, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268073 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267981:
dim [Mon, 30 Jun 2014 20:26:30 +0000 (20:26 +0000)]
MFC r267981:

Pull in r211627 from upstream llvm trunk (by Bill Schmidt):

  [PPC64] Fix PR20071 (fctiduz generated for targets lacking that
  instruction)

  PR20071 identifies a problem in PowerPC's fast-isel implementation
  for floating-point conversion to integer.  The fctiduz instruction
  was added in Power ISA 2.06 (i.e., Power7 and later).  However, this
  instruction is being generated regardless of which 64-bit PowerPC
  target is selected.

  The intent is for fast-isel to punt to DAG selection when this
  instruction is not available.  This patch implements that change.
  For testing purposes, the existing fast-isel-conversion.ll test adds
  a RUN line for -mcpu=970 and tests for the expected code generation.
  Additionally, the existing test fast-isel-conversion-p5.ll was found
  to be incorrectly expecting the unavailable instruction to be
  generated.  I've removed these test variants since we have adequate
  coverage in fast-isel-conversion.ll.

This is needed to compile clang with debug+asserts on older powerpc64
and ppc970 targets.

Requested by: jhibbits

MFC r267982:

Add the llvm patch for r267981.

MFC r268003:

Fix breakage after r267981.

Pointy hat to: dim

git-svn-id: svn://svn.freebsd.org/base/stable/10@268065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267336:
trociny [Mon, 30 Jun 2014 19:46:17 +0000 (19:46 +0000)]
MFC r267336:

PF_BLUETOOTH protocols: skip initialization of non-virtualized globals
for non-default VNET instances.

This fixes panic on a vnet initialization when ng_btsocket is loaded.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268061 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267801: Make nd6_gctimer tunable.
ume [Mon, 30 Jun 2014 16:56:12 +0000 (16:56 +0000)]
MFC r267801: Make nd6_gctimer tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268052 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267800:
ume [Mon, 30 Jun 2014 16:53:12 +0000 (16:53 +0000)]
MFC r267800:
Exclude IPv4 address from doing longest match.
It prevented DNS based load balancing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268051 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267378:
delphij [Mon, 30 Jun 2014 16:31:28 +0000 (16:31 +0000)]
MFC r267378:

Fix path for zlib examples, this have no runtime effect and was
overlooked when I was doing zlib update.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268047 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267839:
delphij [Mon, 30 Jun 2014 16:23:31 +0000 (16:23 +0000)]
MFC r267839:

Apply vendor fixes for big endian support and 20GBps/25GBps link speeds.

Many thanks to Emulex for their continued support of FreeBSD!

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex.Com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@268046 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267627:
pfg [Mon, 30 Jun 2014 14:52:40 +0000 (14:52 +0000)]
MFC r267627:
strptime: add support for %t and %n

Posix strptime() requires support for %t and %n, which were added
to the illumos port.  Curiously we were skipping white spaces by
default in most other cases making %t meaningless.

We now skip spaces in the case of the %e specifier as strftime(3)
explicitly adds a space for the single digit case.

Reference:
http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html

PR: 173421
Obtained from: Illumos (Rev. a11c1571b6942161b0186d0588609448066892c2)

git-svn-id: svn://svn.freebsd.org/base/stable/10@268043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r267978
marius [Mon, 30 Jun 2014 09:59:23 +0000 (09:59 +0000)]
MFC: r267978

In order to get vt(4) a bit closer to the feature set provided by sc(4),
implement options TERMINAL_{KERN,NORM}_ATTR. These are aliased to
SC_{KERNEL_CONS,NORM}_ATTR and like these latter, allow to change the
default colors of normal and kernel text respectively.
Note on the naming: Although affecting the output of vt(4), technically
kern/subr_terminal.c is primarily concerned with changing default colors
so it would be inconsistent to term these options VT_{KERN,NORM}_ATTR.
Actually, if the architecture and abstraction of terminal+teken+vt would
be perfect, dev/vt/* wouldn't be touched by this commit at all.

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@268037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267854:
kib [Mon, 30 Jun 2014 09:55:29 +0000 (09:55 +0000)]
MFC r267854:
Add fpu_kern.9 man page to the install.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268036 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267768:
kib [Mon, 30 Jun 2014 09:54:08 +0000 (09:54 +0000)]
MFC r267768:
Add documentation for the fpu_kern(9) interfaces.

MFC r267785 (by brueffer):
Several small fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267815:
kib [Mon, 30 Jun 2014 09:51:27 +0000 (09:51 +0000)]
MFC r267815:
Put the aesni_cipher_setup() and aesni_cipher_process() functions into
the file which is compiled with SSE disabled.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267767:
kib [Mon, 30 Jun 2014 09:48:44 +0000 (09:48 +0000)]
MFC r267767:
Add FPU_KERN_KTHR flag to fpu_kern_enter(9).
Apply the flag to padlock(4) and aesni(4).
In aesni_cipher_process(), do not leak FPU context state on error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268033 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r267967, r267968
marius [Mon, 30 Jun 2014 09:38:14 +0000 (09:38 +0000)]
MFC: r267967, r267968

- SC_NO_SYSMOUSE isn't currently supported by vt(4), so nuke it from vt.4.
- vt_vga(4) is a driver rather than a function so reference it accordingly.
- Uncomment HISTORY section given that vt(4) will first appear in 9.3.

Reviewed by: emaste (modulo last part)
Sponsored by: Bally Wulff Games & Entertainment GmbH

git-svn-id: svn://svn.freebsd.org/base/stable/10@268032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267692, r267703:
pfg [Sun, 29 Jun 2014 18:54:41 +0000 (18:54 +0000)]
MFC r267692, r267703:
Add -u (unbuffered output) after GNU sed.

Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/10@268019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267491:
kib [Sun, 29 Jun 2014 07:02:47 +0000 (07:02 +0000)]
MFC r267491:
Use vn_io_fault for the writes from core dumping code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268015 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267661, r267662, r267663:
bryanv [Sun, 29 Jun 2014 00:50:56 +0000 (00:50 +0000)]
MFC r267661, r267662, r267663:

  - Remove an unnecessary kick of the host at the end of transmitting
  - Handle multiple calls to rxq_eof for single packet completion
  - Increment the pending packets more aggressively for TSO

git-svn-id: svn://svn.freebsd.org/base/stable/10@268011 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267520, r267521, r267522, r267523, r267524:
bryanv [Sun, 29 Jun 2014 00:37:59 +0000 (00:37 +0000)]
MFC r267520, r267521, r267522, r267523, r267524:

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@268010 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267983 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

PR: 167977

git-svn-id: svn://svn.freebsd.org/base/stable/10@267980 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Fix issues in config parser relating to lun serial numbers.

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

Submitted by: delphij
Sponsored by: iXsystems

git-svn-id: svn://svn.freebsd.org/base/stable/10@267962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267950 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Add support for inspecting process flags set in p_flag2.

git-svn-id: svn://svn.freebsd.org/base/stable/10@267904 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@267902 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f