200493 Commits

Author SHA1 Message Date
ngie
8c5f7fac71 MFC r289913,r289916:
r289913:

Use 't' (bits) not 'i' (bytes) for describing MRIE (aka
"Method of Reporting Informational Exceptions") in the SCSI mode database as
the field described in X3T10/94-190 (revision 4; page 2, table 1) [1.] is
4 bits wide, not 4 bytes wide

1. http://ftp.t10.org/ftp/t10/document.94/94-190r4.pdf

Bug 200619
Reported by: Michael Baptist <mbaptist@isilon.com>
Submitted by: Lars Skodje <lskodje@isilon.com>
Sponsored by: EMC / Isilon Storage Division

r289916:

Limit RESOLUTION_MAX to INT_MAX, not UINT_MAX (all spelled out) so the
mode value isn't always clipped to -1 when (resolution * size) == 32, which
would have been the case with values => {4i,32b,32t}.

This seems to have been broken in r64382.

PR: 200619
Reported by: Michael Baptist
Submitted by: Lars Skodje
Sponsored by: EMC / Isilon Storage Division
2015-11-05 07:48:48 +00:00
ae
375651c350 MFC r290116:
Check the size of data available in mbuf before using it.

  PR:		202667
2015-11-04 10:42:51 +00:00
hrs
3fe8aea7a4 MFC r288600:
- Schedule DAD for IN6_IFF_TENTATIVE addresses in nd6_timer().  This
    catches cases that DAD probes cannot be sent because of
    IFF_UP && !IFF_DRV_RUNNING.

  - nd6_dad_starttimer() now calls nd6_dad_ns_output(), instead of
    calling it before nd6_dad_starttimer().

  - Do not release an entry in dadq when a duplicate entry is being
    added.
2015-11-04 01:00:42 +00:00
hrs
6e15319122 MFC r288575:
Add IFCAP_LINKSTATE support.
2015-11-04 00:21:02 +00:00
hselasky
fe49fc6e1c MFC r285914, r289029 and r289560:
- Move the remainder of host controller capability registers reading from
  xhci_start_controller() to xhci_init(). These values don't change at run-
  time so there's no point of acquiring them on every USB_HW_POWER_RESUME
  instead of only once during initialization. In r276717, reading the first
  couple of registers in question already had been moved as a prerequisite
  for the changes in that revision.
- Identify ASMedia ASM1042A controllers.
- Use NULL instead of 0 for pointers.
- Add quirks for USB 3.0 PCI devices.

PR:		203650
2015-11-03 10:24:54 +00:00
kib
72f26a1781 MFC r289661:
Mark struct thread zone as type-stable, to prevent dereference of the
freed memory in the locks spin loops.
2015-11-03 08:33:24 +00:00
kib
4042a41aef MFC r289660,r289664:
Do not allow to execute ptrace(PT_TRACE_ME) when the process is
already traced or when there is no parent which can trace the process.
2015-11-03 08:31:01 +00:00
kib
5e283417b2 MFC r289658:
No need to dereference struct proc to pids when comparing processes
for equality.
2015-11-03 08:28:47 +00:00
dteske
2f6ac8211d MFC r287413: Minor code cleanups (no functional changes). 2015-11-02 22:56:10 +00:00
dteske
9c72dfc636 MFC r287390: Bump version for altered long-opts processing 2015-11-02 22:55:25 +00:00
dteske
6d490545cd MFC r287389: Simplify long-option processing 2015-11-02 22:54:45 +00:00
dteske
468b412653 MFC r287385: Bump version for prior fix (SVN r287381) 2015-11-02 22:42:07 +00:00
dteske
4a9ba34e5f MFC r287384:
Style: Remove whitespace around brackets from function syntax options
2015-11-02 22:37:56 +00:00
dteske
7ef4dc7baa MFC r287383: Comment for escape() function. 2015-11-02 22:35:48 +00:00
dteske
bbb0bf0718 MFC r287382: Comment 2015-11-02 22:33:34 +00:00
dteske
d82df1ca6e MFC r287381: Properly escape arguments when moving into jail or chroot 2015-11-02 22:32:59 +00:00
dteske
6f21d4f39f MFC r287380: Style: comments 2015-11-02 22:32:13 +00:00
dteske
d17f948c64 MFC r287379: Style consistency: add single space before each `;;' case entry 2015-11-02 22:31:32 +00:00
dteske
69dc80f482 MFC r287378:
Remove `SYSRC_' prefix from $SYSRC_VERBOSE (prefix unnecessary since
 this is a non-inheritable attribute; was previously).
2015-11-02 22:30:55 +00:00
dteske
2c0c536f59 MFC r287421: Fix mandoc(1) "WARNING: end of line whitespace" 2015-11-02 22:24:57 +00:00
dteske
8c0c186c65 Snap to breuffer's r286660 (incorrectly merged) 2015-11-02 22:22:48 +00:00
dteske
1bffadb22b MFC r287420: Remove non-functional examples. 2015-11-02 22:12:51 +00:00
dteske
8fd4a44c75 MFC r287683: Ignore error results from newaliases(1) 2015-11-02 22:11:19 +00:00
dteske
b61918fd35 MFC r287685: Remove use of return outside of function 2015-11-02 22:10:39 +00:00
dteske
f8362e9d6c MFC r287686: Produce meaningful exit code 2015-11-02 22:09:43 +00:00
dteske
ee854dc81d MFC r287687: Update copyrights 2015-11-02 22:08:59 +00:00
dteske
334ccc01af MFC r287688: Explicitly exit with success 2015-11-02 22:08:11 +00:00
dteske
14185b9813 MFC r287689: Explicitly exit with success 2015-11-02 22:07:25 +00:00
dteske
f8f428460f MFC r287690: Produce meaningful exit code 2015-11-02 22:06:44 +00:00
dteske
9d735decd6 MFC r287691: Remove trailing newline at EOF 2015-11-02 22:05:41 +00:00
dteske
50d3f9bbb4 MFC r287694: Use a variable for readability 2015-11-02 22:05:04 +00:00
dteske
8701ebe105 MFC r287695: Replace `return' outside of function with exit
Pointy hat to:	me
2015-11-02 22:04:22 +00:00
dteske
2123c18eab MFC r287692: Better to reset trap and explicitly exit success 2015-11-02 22:03:24 +00:00
dteske
3efa968e2a MFC r287693: Update copyright 2015-11-02 22:02:35 +00:00
dteske
78241e5396 MFC r287803: Fix code typo (no functional change) 2015-11-02 22:01:19 +00:00
dteske
faa618ac7f MFC r287635: Fix argument quoting and remove unnecessary braces 2015-11-02 21:58:19 +00:00
dteske
1e61126a76 MFC r287696:
The <arch>/mkisoimages.sh script in release knows how to add
 extra bits from an "xtra-bits-dir". This feature is unusable
 from release/Makefile. Add an XTRADIR setting to use it.
MFC r287697: Whitespace alignment

Differential Revision:	https://reviews.freebsd.org/D3633
Reviewed by:	kmacy
Relnotes:	yes
2015-11-02 21:46:58 +00:00
dteske
c9f6dc2e04 MFC r289790: dpv(3) merged to stable/10 before release/10.2.0 2015-11-02 21:39:46 +00:00
dteske
8ef3886654 MFC r289793: Bump date/copyright after correcting HISTORY 2015-11-02 21:34:39 +00:00
dteske
e3fc7aed5e MFC r289794: figpar(3) merged to stable/10 before release/10.2.0 2015-11-02 21:33:36 +00:00
dteske
c9f63adc18 MFC r290163: Ignore per-mdN settings in mdconfig[2] startup
PR:		base/189696
Submitted by:	ganael.laplanche@martymac.org
2015-11-02 21:26:10 +00:00
jkim
99e14b36bd MFC: r290121
Define endianness for non-x86 platforms.
2015-11-02 17:41:15 +00:00
kib
1cfef4015e MFC r289496:
Modify the 'unchanged' calculation bu dereferencing the marker tailq
pointers, which is known to belong to the queue.
2015-11-02 13:14:27 +00:00
ngie
53802741e6 MFC r289229:
Replace references to /dev/acd0 with /dev/cd0

atapicd(4) was replaced by cd(4) with the atacam work done by
mav@ and then removed in r249083

X-MFC to: stable/10
2015-11-01 22:27:40 +00:00
bapt
7c18e94a5c MFC: 289879
newsyslog.conf: allow to configure the signal using the signal name.

Submitted by:	Alexandre Perrin <alex@kaworu.ch>
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D3961
2015-10-31 09:32:39 +00:00
wollman
17773fe32f Long-overdue MFC of r280930:
Fix overflow bugs in and remove obsolete limit from kernel RPC
  implementation.

  The kernel RPC code, which is responsible for the low-level scheduling
  of incoming NFS requests, contains a throttling mechanism that
  prevents too much kernel memory from being tied up by NFS requests
  that are being serviced.  When the throttle is engaged, the RPC layer
  stops servicing incoming NFS sockets, resulting ultimately in
  backpressure on the clients (if they're using TCP).  However, this is
  a very heavy-handed mechanism as it prevents all clients from making
  any requests, regardless of how heavy or light they are.  (Thus, when
  engaged, the throttle often prevents clients from even mounting the
  filesystem.)  The throttle mechanism applies specifically to requests
  that have been received by the RPC layer (from a TCP or UDP socket)
  and are queued waiting to be serviced by one of the nfsd threads; it
  does not limit the amount of backlog in the socket buffers.

  The original implementation limited the total bytes of queued requests
  to the minimum of a quarter of (nmbclusters * MCLBYTES) and 45 MiB.
  The former limit seems reasonable, since requests queued in the socket
  buffers and replies being constructed to the requests in progress will
  all require some amount of network memory, but the 45 MiB limit is
  plainly ridiculous for modern memory sizes: when running 256 service
  threads on a busy server, 45 MiB would result in just a single
  maximum-sized NFS3PROC_WRITE queued per thread before throttling.

  Removing this limit exposed integer-overflow bugs in the original
  computation, and related bugs in the routines that actually account
  for the amount of traffic enqueued for service threads.  The old
  implementation also attempted to reduce accounting overhead by
  batching updates until each queue is fully drained, but this is prone
  to livelock, resulting in repeated accumulate-throttle-drain cycles on
  a busy server.  Various data types are changed to long or unsigned
  long; explicit 64-bit types are not used due to the unavailability of
  64-bit atomics on many 32-bit platforms, but those platforms also
  cannot support nmbclusters large enough to cause overflow.

  This code (in a 10.1 kernel) is presently running on production NFS
  servers at CSAIL.

  Summary of this revision:
  * Removes 45 MiB limit on requests queued for nfsd service threads
  * Fixes integer-overflow and signedness bugs
  * Avoids unnecessary throttling by not deferring accounting for
    completed requests

Differential Revision:	https://reviews.freebsd.org/D2165
Reviewed by:	rmacklem, mav
Relnotes:	yes
Sponsored by:	MIT Computer Science & Artificial Intelligence Laboratory
2015-10-30 19:26:55 +00:00
kib
70c328a1bb MFC r289824:
Add CLFLUSHOPT instruction wrappers.

MFC r290188:
Fix prefix on i386.
2015-10-30 10:02:57 +00:00
kib
1d3471fc07 MFC r289823:
Decode new values for CPUID leaf 2 cache and TLB descriptors, from the
Intel SDM revision 56.
2015-10-30 09:24:16 +00:00
mav
cc36be8f3e MFC r289819: Fix LUN disable in CAM broken at r285155. 2015-10-30 00:30:00 +00:00
delphij
e6f47aa696 MFC r287453,287454,288143:
file 5.25.

Relnotes:	yes
2015-10-29 17:51:48 +00:00