199810 Commits

Author SHA1 Message Date
ae
2cbf021408 MFC r285710:
Invoke LLE event handler when entry is deleted.
2015-08-05 11:24:40 +00:00
ae
2fed44a505 MFC r285888:
Build debug version of rmlock's methods only when LOCK_DEBUG > 0.

  Currently LOCK_DEBUG is always defined in sys/lock.h (0 or 1).
  This means that debugging code always built. In addition the kernel
  modules have always defined LOCK_DEBUG as 1. So, debugging rmlock code
  is always used by kernel modules.
2015-08-05 10:59:59 +00:00
kib
83f30eda37 Implement x86 ptrace(2) requests PT_{GET,SET}{FS,GS}BASE.
MFC r284918:
Add helper fill_based_sd(9).

MFC r284919:
Add x86 PT_GETFSBASE, PT_GETGSBASE machine-depended ptrace requests to
obtain the thread %fs and %gs bases.  Add x86 PT_SETFSBASE and
PT_SETGSBASE requests to set the bases from debuggers.  The set
requests, similarly to the sysarch({I386,AMD64}_SET_FSBASE), override
the corresponding segment registers.

MFC r284965:
Document x86 machine-specific ptrace(2) requests.

MFC r285011:
Disallow a debugger on 64bit system to set fs/gs bases of the 32bit
process beyond the end of the process address space.

MFC r285104:
Grammar and language fixes.
2015-08-05 08:17:10 +00:00
kib
13079235af MFC r284921:
pcb_gs32sd is unused for long time, remove it.  Keep the padding in pcb.
2015-08-05 07:35:34 +00:00
kib
6034a6b38a MFC r285046:
Account for the main process stack being one page below the highest
user address when ABI uses shared page.
2015-08-05 07:29:59 +00:00
kib
9428730d60 MFC r285041:
Use single instance of the identical INKERNEL() and PMC_IN_KERNEL()
macros on amd64 and i386.  On i386, correct the lowest kernel address.
2015-08-05 07:21:44 +00:00
davidcs
861d78f2a3 MFC r285973
- Avoid lock contention in the if_transmit callback by using trylock and
   enqueueing the frames when it fails. This way there is some latency
   removed from the transmitting path.
  - If IFF_DRV_OACTIVE is set (and also if IFF_DRV_RUNNING is not) just
   enqueue the desired frames and return successful transmit. This way we
   avoid to return errors on transmit side and resulting in
   possible out-of-order frames. Please note that IFF_DRV_OACTIVE is set
   everytime we get the threshold ring hit, so this can be happening quite
   often.

Submitted by:	Attilio.Rao@isilon.com
2015-08-05 00:00:06 +00:00
emaste
e6c899bb95 MFC r281581: vidcontrol: make size argument optional again for syscons
r273544 (MFC in r273921) changed the -f option allow no arguments in vt
mode (used to reset the font back to the default), but broke the
optionality of the size argument for syscons. Drop the required argument
from syscons' optstring for -f so the optional argument handler works
the same way for both syscons and vt.

Sponsored by:	The FreeBSD Foundation
2015-08-04 15:15:06 +00:00
gjb
1a0e1b3909 MFC r286285:
Ensure the local MANIFEST is always used when verifying remote
 distribution sets.

Approved by:	re (glebius, insta-MFC)
Sponsored by:	The FreeBSD Foundation
2015-08-04 13:41:37 +00:00
kib
c182d42ed4 MFC r285932:
Add bit names for the IA32_MISC_ENABLE msr.
2015-08-04 04:30:54 +00:00
np
84fadb8369 MFC r284988, r285220, and r285221.
r284988:
cxgbe(4): request an automatic tx update when a netmap tx queue idles.
The NIC tx queues already do this.

r285220:
cxgbe(4): Do not override the the global defaults for congestion drops.
The hw.cxgbe.cong_drop knob is not affected by this change because the
driver sets up congestion drop on a per-queue basis.

r285221:
cxgbe(4): Add a new knob that controls the congestion response of netmap
rx queues.  The default is to drop rather than backpressure.

This decouples the congestion settings of NIC and netmap rx queues.
2015-08-04 04:00:36 +00:00
np
79c68b3bae MFC r284718:
cxgbe: get_fl_payload returns a header mbuf when successful.
2015-08-04 03:43:09 +00:00
np
b95618ed49 MFC r284984:
cxgbetool: fix code that decodes T5 SGE contexts.  Some of the fields
that changed between T4 and T5 were not displayed correctly.
2015-08-04 03:40:19 +00:00
np
403920898b MFC r284445 and r286107.
r284445:
cxgbe(4): Add the ability to dump mailbox commands and replies.  It is
enabled/disabled via bit 0 of adapter->debug_flags (which is available
at dev.t5nex.<n>.debug_flags).

r286107:
cxgbe(4): initialize debug_flags from the kernel environment.
2015-08-04 03:33:59 +00:00
pfg
d396e4d373 MFC r286102:
Buffer overflow in wall(1).

This affected syslogd, wall and talkd.
Detected by FORTIFY_SOURCE GSoC (with clang).

Submitted by:		Oliver Pinter
Differential Revision:	https://reviews.freebsd.org/D3254
Reviewed by:		delphij, jmg
2015-08-04 03:06:23 +00:00
imp
0d33ce41f5 MFC r286208:
Only match devices that belong to this driver.
2015-08-03 23:12:29 +00:00
delphij
c23e13ae13 MFC r284611:
Fix markups and change e.g./eg. to e.g.,.
2015-08-03 23:08:40 +00:00
delphij
6642d333b3 MFC r284607:
Document kern.cam.ada.legacy_aliases, while I'm there also fix some typos.
2015-08-03 23:04:32 +00:00
gjb
f430b4904c Add a 'First rev' marker, indicating the releng/ branch point
of the most recent release.

Sponsored by:	The FreeBSD Foundation
2015-08-03 19:15:19 +00:00
dru
d7898664fe MFC r285869.
Fix transposed words in man page.

PR: 201752
Reviewed by: gjb
2015-08-03 16:56:40 +00:00
gjb
3b38a8c36e MFC r286092:
Fix a rendering issue in the zfs(8) manual.

Sponsored by:	The FreeBSD Foundation
2015-08-03 16:30:03 +00:00
trasz
a0b545acc6 MFC r282086:
Make setproctitle(3) work in Capsicum capability mode.  This makes
ctld(8) child processes to indicate initiator address and name in
their titles, similar to what iscsid(8) child processes do.

PR:		181352
Sponsored by:	The FreeBSD Foundation
2015-08-03 08:04:31 +00:00
trasz
8c8a81ecdf MFC r284542:
Allow '@' in unquoted strings, such as with the "path" statement.  Note
that one can use any character they like by using double quotes.

PR:		200895
Sponsored by:	The FreeBDS Foundation
2015-08-03 07:28:23 +00:00
trasz
5e028ab6e6 MFC r285086:
Remove OpenSSL dependency from iscsid(8) and ctld(8).

Sponsored by:	The FreeBSD Foundation
2015-08-03 07:20:33 +00:00
kib
fb8c9f39f4 Fix ia64 to not override the call stack bottom address with the
register stack bottom address, after the merge of r284956 in r285967.

Note: this is a direct commit to stable/10.

Reported and tested by:	clusteradm (peter)
Sponsored by:	The FreeBSD Foundation
2015-08-03 03:08:48 +00:00
ae
b77ef6b082 MFC r285889:
Report the scheme and provider names in warning message about unaligned
  partition.

  PR:		201873
2015-08-02 16:25:21 +00:00
trasz
75c063e8b8 MFC r284582:
Fix off-by-one error in fstyp(8) and geom_label(4) that made them use
a single space (" ") as a CD9660 label name when no label was present.
Similar problem was also present in msdosfs label recognition.

Sponsored by:	The FreeBSD Foundation
2015-08-02 10:08:57 +00:00
trasz
529945ff14 MFC r285675:
Remove a comment in the wrong place.

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:39:41 +00:00
trasz
e0160cb48c MFC r285674:
Document suspend/resume notification in devd.conf(5).

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:37:47 +00:00
trasz
01cb83f877 MFC r285673:
Add CARP events description to devd.conf(5).

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:35:53 +00:00
trasz
e063ea3299 MFC r285873:
Update Capsicum and Mandatory Access Control manual pages
to no longer claim they are experimental.

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:34:03 +00:00
trasz
d141e091d1 MFC r285672:
fstyp(8) ships with 10.2.

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:30:43 +00:00
trasz
3d4ca78d92 MFC r285671:
uefisign(8) ships with 10.2.

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:28:51 +00:00
trasz
86038bfb06 MFC r285676:
Expand sysctl descriptions in iscsi(4) and ctl(4).

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:27:07 +00:00
trasz
d221c70b1c MFC r285251:
Fix markup.

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:25:05 +00:00
trasz
ac03bb573c MFC r285100:
Make ctl(4) appear in "man -k iscsi" results.

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:23:24 +00:00
trasz
43258d527f MFC r284682:
Expand sysctls descriptions for iscsi(4) and ctl(4).

Sponsored by:	The FreeBSD Foundation
2015-08-02 09:21:31 +00:00
trasz
dc9d89405e MFC r283286:
Start documenting ctl(4) sysctls.

Differential Revision:	The FreeBSD Foundation
2015-08-02 09:14:52 +00:00
brueffer
d8122e90be MFC: r286090
The kernel option and module are actually called pmspcv.
2015-08-02 07:25:05 +00:00
rmacklem
fee1840f08 MFC: r286046
This patch fixes a problem where, if the NFSv4 server has a previous
unconfirmed clientid structure for the same client on the last hash list,
this old entry would not be removed/deleted. I do not think this bug would have
caused serious problems, since the new entry would have been before the old one
on the list. This old entry would have eventually been scavenged/removed.
2015-08-01 22:56:42 +00:00
kib
28a0dfd5bd MFC r285878:
Revert r173708's modifications to vm_object_page_remove().
This fixes inconsistencies encountered by vm_object_unwire() or
by the buffer cache when the file is truncated.
2015-08-01 03:37:00 +00:00
rmacklem
501e413352 MFC: r285113
If a "principal" argument isn't provided for a Kerberized NFS mount,
the kernel would generate a bogus one with a ":/<path>" suffix.
This would only occur for the case where there was no explicit
"principal" argument and the getaddrinfo() call in mount_nfs.c failed to a
return a cannonical name for the server.
This patch fixes this unusual case.
2015-07-31 21:31:58 +00:00
gjb
ad05cf684a MFC r286131:
Pull pmspcv (pms(4)) from GENERIC.  It has PCI ID conflicts
 with ahd(4), mvs(4), and likely other drivers.

With hat:	re
Sponsored by:	The FreeBSD Foundation
2015-07-31 15:25:07 +00:00
garga
b0aaac698f MFC r285945, r285960:
Respect pf rule log option before log dropped packets with IP options or
dangerous v6 headers

Reviewed by:	gnn, eri
Approved by:	gnn, glebius
Obtained from:	pfSense
Sponsored by:	Netgate
Differential Revision:	https://reviews.freebsd.org/D3222
2015-07-31 12:02:44 +00:00
smh
3b7e178dff MFC: r285946 and r285947
Add warning about low KSTACK_PAGES for ZFS use.

Sponsored by:	Multiplay
2015-07-31 09:43:07 +00:00
kevlo
aeb145cca6 MFC r285669:
Since the IETF has redefined the meaning of the tos field to accommodate
a set of differentiated services, set IPTOS_PREC_* macros using
IPTOS_DSCP_* macro definitions.

While here, add IPTOS_DSCP_VA macro according to RFC 5865.

Differential Revision:	https://reviews.freebsd.org/D3119
Reviewed by:	gnn
2015-07-31 03:40:09 +00:00
kevlo
84e0e9dfe4 MFC r285623:
Fix typo in register definition.

Submitted by:	James Hung
Reviewed by:	sbruno
2015-07-31 03:35:27 +00:00
markj
25eb055781 MFC r285782:
Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *).

PR:	201700
2015-07-31 00:21:40 +00:00
bdrewery
21bbf44105 MFC r285972:
MFV r285970:

    Apply upstream changeset bf4f6ec64e:

    Fix issue 356: properly skip a sparse file entry in a tar file.

PR:		201506
Relnotes:	yes
2015-07-30 17:04:15 +00:00
gjb
d83a2c49a3 MFC r285999 (kp):
pf: Always initialise pf_fragment.fr_flags

  When we allocate the struct pf_fragment in pf_fillup_fragment() we
  forgot to initialise the fr_flags field. As a result we sometimes
  mistakenly thought the fragment to not be a buffered fragment.
  This resulted in panics because we'd end up freeing the pf_fragment
  but not removing it from V_pf_fragqueue (believing it to be part of
  V_pf_cachequeue).  The next time we iterated V_pf_fragqueue we'd use
  a freed object and panic.

  While here also fix a pf_fragment use after free in pf_normalize_ip().
  pf_reassemble() frees the pf_fragment, so we can't use it any more.

X-MFS-To:	releng/10.2
Sponsored by:	The FreeBSD Foundation
2015-07-30 16:06:13 +00:00