Commit Graph

198095 Commits

Author SHA1 Message Date
smh
9de77a522d MFC r276027:
Switch zfsboot installer force 4K option to use vfs.zfs.min_auto_ashift=12

MFC r277333:
Fix bsdinstall when working with geli boot disks

Sponsored by:	Multiplay
2015-02-01 12:33:40 +00:00
dim
2ccbfd1b8e Revert r278017 (MFC of r273381 and r276417) and r278018 (MFC of r273434)
until I can figure out why it leads to link failures in some scenarios.
2015-02-01 02:29:58 +00:00
dim
111a0cf771 MFC r273434 (by bapt):
Do not define bad_array_new_length::bad_array_new_length in libc++ anymore
when used in combinaison with libcxxrt since it is now defined there already.
This fixes building world
2015-02-01 01:42:38 +00:00
dim
d55f158aa0 MFC r273381 (by bapt):
Add support for __cxa_throw_bad_array_new_length in libcxxrt

It is required for use with newer g++49

Differential Revision:	https://reviews.freebsd.org/D982
Reviewed by:	theraven
Approved by:	theraven

MFC r276417:

Import libcxxrt master 00bc29eb6513624824a6d7db2ebc768a4216a604.

Interesting fixes:
76584a0  Reorganize code to use only 32bit atomic ops for 32bit platforms
30d2ae5  Implement __cxa_throw_bad_array_new_length

Reviewed by:	bapt
Differential Revision: https://reviews.freebsd.org/D1390
2015-01-31 23:48:59 +00:00
jamie
c6bc15d7ab MFC r277855:
Add allow.mount.fdescfs jail flag.

PR:		192951
Submitted by:	ruben@verweg.com
2015-01-31 17:35:53 +00:00
kib
b397ed48ff MFC r277827:
tmpfs does not use UVM on FreeBSD.
2015-01-31 11:04:41 +00:00
kib
8cc5d657dc MFC r277646:
Avoid calling vmspace_free() while owning the process lock.
2015-01-31 11:02:20 +00:00
jhb
11512d9430 MFC 274398,274537:
Move NFS and TFTP filesystems before the synthetic filesystems (bzip,
gzip, and split).
2015-01-30 18:55:05 +00:00
pfg
5cc53d04db MFC r277802, r277811:
sed: Fix resource leak and dereference after NULL.

process.c:
Protect access against NULL.

main.c:
Prevent outfile overwrite resource leak.

CID:	271181
CID:	1006930

Obtained from:	NetBSD
2015-01-30 14:36:02 +00:00
emaste
2f8208fe77 Merge libedit fixes from NetBSD
Add trailing NULL's to the varargs functions as required.
(John Spencer)

    readline.c r1.106

Bounds search for reallocated index, from OpenBSD via Andreas Fett

    map.c 1.34
    map.h 1.10
    parse.c 1.27
    read.c 1.71

This is a direct commit to stable/10 as these changes are included in a
broader sync with NetBSD committed by bapt@ in r276881.

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D1728
2015-01-30 14:22:15 +00:00
mav
0a6db6b09e MFC r277247: Don't count status as sent until CTIO completes successfully.
If we aggregated status sending with data move and got error, allow status
to be updated and resent again separately.  Without this command may stuck
without status sent at all.
2015-01-30 09:05:43 +00:00
mav
aba44db36e MFC r277529: Don't count requests with status sent as overlapping.
While those requests are still in target OOA queue, for initiator they are
already completed, so tags can be reused.
2015-01-30 09:04:20 +00:00
smh
e788b18c4e MFC r277239:
Eliminate illumos whole disk special case when searching for a ZFS vdev

Sponsored by:	Multiplay
2015-01-30 01:05:50 +00:00
smh
d9e79da5d7 MFC r276446:
Use the correct state name for unavailable pools in zpool list

Sponsored by:	Multiplay
2015-01-30 01:04:17 +00:00
des
8ea51a793a MFH (r277237): pass PAM_RHOST to RADIUS server as Calling-Station-ID 2015-01-29 09:03:57 +00:00
rstone
cd9291a5a7 MFC r277352:
When mountd is creating sockets, it iterates over all addresses specified
  in the "hosts" array and eventually looks up the network address with
  getaddrinfo(). At one point it checks for a numeric address and if it
  sees one, it sets a hint parameter to force getaddrinfo to interpret the
  host as a numeric address. However that hint is not cleared for subsequent
  iterations of the loop and if any hosts seen after this point are host names,
  getaddrinfo will fail on the name.  The result of this bug is that you cannot
  pass a host name to the -h flag.

  Unfortunately, the first iteration will either process ::1 or 127.0.0.1,
  so the flag is set on the first iteration and all host names will fail
  to be processed.

  The same bug applies to rpc.lockd and rpc.statd, so fix them too.

  Differential Revision:        https://reviews.freebsd.org/D1507
  Reported by:  Dylan Martin
  MFC after:    1 week
  Sponsored by: Sandvine Inc.
2015-01-28 21:51:34 +00:00
hselasky
0392db24d4 MFC r277246:
Add more USB device IDs.

PR:		196362
2015-01-28 20:01:21 +00:00
hselasky
d9b0293669 MFC r277245:
Add more USB request definitions. The values are described in section
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"
2015-01-28 19:49:53 +00:00
hselasky
8f49a6a1cb MFC r277417:
Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular
the value returned in the "udp_port_level" field.
2015-01-28 19:41:31 +00:00
pfg
bad15605e4 MFC r277340, r277349:
Remove dead code.
After the ext2 variant of the "orlov allocator" was implemented,
the case for a negative or zero dirsize disappeared.

Drop the dead code and unsign dirsize given that it can't be
negative anyways.

ext2fs: fix for uninitialized pointer read.
path.ep_bp was being used uninitialized in ext4_ext_find_extent().

CID:		1062344
CID:		1008669
2015-01-28 15:36:24 +00:00
mav
4a44a3d569 MFC r277185:
Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.
2015-01-28 02:56:18 +00:00
mav
33230ae6d4 MFC r277169: Reimplement TRIM throttling added in r248577.
Previous throttling implementation approached problem from the wrong side.
It significantly limited useful delaying of TRIM requests and aggregation
potential, while not so much controlled TRIM burstiness under heavy load.

With this change random 4K write benchmarks (probably the worst case for
TRIM) show me IOPS increase by 20%, average latency reduction by 30%, peak
TRIM bursts reduction by 3 times and same peak TRIM map size (memory usage).

Also the new logic does not force map size down so heavily, really allowing
to keep deleted data for 32 TXG or 30 seconds under moderate load.  It was
practically impossible with old throttling logic, which pushed map down to
only 64 segments.
2015-01-28 02:55:20 +00:00
pfg
70c2ff18b9 MFC r277608, r277656, r277659:
Small upstream fixes for GDB.

GDB: Fix memset thinkos.

2005-03-25  Anthony Green  <green@redhat.com>

       * remote.c (remote_store_registers): Fix memset usage.
       * std-regs.c (value_of_builtin_frame_reg): Ditto.
       (value_of_builtin_frame_fp_reg): Ditto.
       (value_of_builtin_frame_reg): Ditto.

Reported by:	Dirk Engling

gdb: Add missing break statements

2004-05-21  Jim Blandy  <jimb@redhat.com>

       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

GDB: Replace use of sprintf.

2005-03-17  Mark Kettenis  <kettenis@gnu.org>

      * corelow.c (get_core_register_section): Replace usage of sprintf
      and strcpy with xstrprintf and xstrdup.

CID:	604160, 604161, 604162, 604163
CID:	1006819 1008254
2015-01-28 02:25:48 +00:00
mav
67407ee0df MFC r277647: Fix wrong LUN reference in XCOPY block-to-block operation.
This could cause data corruption due to accessing wrong LUN in case of
retries on write errors.  Failed writes were retried to read LUN.
2015-01-27 19:41:24 +00:00
delphij
03ae650167 Fix SCTP SCTP_SS_VALUE kernel memory corruption and disclosure vulnerability
and SCTP stream reset vulnerability.

Security:	FreeBSD-SA-15:02.kmem
Security:	CVE-2014-8612
Security:	FreeBSD-SA-15:03.sctp
Security:	CVE-2014-8613
2015-01-27 19:36:08 +00:00
bryanv
ebf97d8f13 Bump __FreeBSD_version after r277789: Changes to the UDP tunneling callback 2015-01-27 06:24:33 +00:00
bryanv
b5fba8dc05 MFC r272886:
Add context pointer and source address to the UDP tunnel callback

  These are needed for the forthcoming vxlan implementation. The context
  pointer means we do not have to use a spare pointer field in the inpcb,
  and the source address is required to populate vxlan's forwarding table.
2015-01-27 06:19:30 +00:00
jkim
8459b965f7 MFC: r277594
Simplify retry loops.
2015-01-26 19:27:30 +00:00
jkim
2c7d513fe4 MFC: r277579
Revert r216942.  This commit was premature and caused too many complaints.
2015-01-26 19:25:35 +00:00
mav
0b8166b5c2 MFC r277385: Remove extra mtx_unlock().
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2015-01-26 16:30:17 +00:00
mav
58f009f0d3 MFC r277096: Skip extra bcopy() when scrubbing vdev without redundancy.
According to profiler, this bcopy() can use about 10% of CPU time.
2015-01-26 16:29:07 +00:00
smh
c46b18f753 MFC r276226:
Enhancements to zpool upgrade processing

Sponsored by:	Multiplay
2015-01-26 13:59:39 +00:00
trasz
641c621b17 MFC r274496:
Fix mdoc warning by removing empty lines.

Sponsored by:	The FreeBSD Foundation
2015-01-26 13:39:35 +00:00
trasz
74035d69dd MFC r272294 by gavin@:
Make clear in the ipheth(4) hardware notes that this driver is for the
tethering functionality only.  Add a "bugs" section to give a pointer
to usbconfig set_config if the device isn't automatically detected.
2015-01-26 13:37:18 +00:00
trasz
eb344fca06 MFC r272171 by pluknet@:
Add smsc(4) to the list of drivers use the miibus interface.
2015-01-26 13:35:45 +00:00
trasz
27f23edd2c MFC r272168 by gavin@:
Add MLINKS for if_ipheth(4) and if_smsc(4).
2015-01-26 13:34:21 +00:00
trasz
a53939aaa2 MFC r272165 by gavin@:
Add very basic outline man page for smsc(4).
2015-01-26 13:32:07 +00:00
trasz
e2a2c7028d MFC r272107 by gavin@:
Cross reference cdce(4), ipheth(4) and urndis(4) from each other.
2015-01-26 13:29:43 +00:00
trasz
17700a1d91 MFC r272106 by gavin@:
Add basic man page for ipheth(4).
2015-01-26 13:28:13 +00:00
trasz
13678d19f2 MFC r274791:
Add missing error checking for kernel_port_{add,remove}().  Both can fail
for reasons yet unknown; don't make it increment cumulated_error as a kind
of temporary workaround.

MFC r275399:

Fix null pointer dereference.

Sponsored by:	The FreeBSD Foundation
2015-01-26 13:21:30 +00:00
trasz
9aa94c3abb MFC r275746:
Fix markup.

Sponsored by:	The FreeBSD Foundation
2015-01-26 13:17:20 +00:00
ngie
15c31aa79c MFC r277358:
r277358 (by ngie):

  Integrate contrib/netbsd-tests/bin/expr into the build/kyua as bin/expr/tests

  Sponsored by: EMC / Isilon Storage Division
2015-01-26 11:49:06 +00:00
kib
b45c95ab3d MFC r277390:
Ignore devfs directory entries for devices being destroyed.
2015-01-26 11:37:16 +00:00
luigi
56e35bcee1 Merge 272659:
Add netmap support to libpcap. Tcpdump and other native pcap clients
can now run directly on netmap ports using netmap:foo or valeXX:YY
as device names.

Modifications to existing code are small and trivial,
the netmap-specific code is all in a new file.

Please be aware that in netmap mode the physical interface is
disconnected from the host stack, so libpcap will steal the traffic
not just make a copy.

For the full version of the code (including linux and autotools support) see
	https://code.google.com/p/netmap-libpcap/
2015-01-26 03:26:37 +00:00
ae
efbb33d3cf MFC r277295:
Fix condition and really sort ports. Also add comment describing
  the intent of this code.
2015-01-25 16:35:03 +00:00
mav
e6f27f6344 MFC r276983: When aggregating TRIM segments, move the new one to the end.
New segment at the list head may block all TRIM requests until txg of that
segment can be processed.  On my random I/O tests this change reduce peak
TRIM list length from 650 to 450 segments.  Hopefully it should reduce TRIM
burstiness when list processing is unblocked.
2015-01-25 14:31:44 +00:00
mav
35b0606440 MFC r276952: Add LBA as secondary sort key for synchronous I/O requests.
On FreeBSD gethrtime() implemented via getnanouptime(), that has 1ms (1/hz)
precision.  It makes primary sort key (timestamp) collision very possible.
In such situations sorting by secondary key of LBA is much more reasonable
then by totally meaningless zio pointer value.

With this change on multi-threaded synchronous ZVOL read I've measured 10%
throughput increase and average latency reduction.
2015-01-25 14:29:40 +00:00
mav
a833c07b8b MFC r276913: Use new optimized dmu_read_uio_dbuf() for ZVOLs in device mode.
This slightly reduces overhead by avoiding dnode_hold()/dnode_rele() calls.
2015-01-25 14:25:44 +00:00
kib
53cbeb6d49 MFC r277322:
Add procctl(2) PROC_TRACE_CTL command to enable or disable debugger
attachment to the process.
2015-01-25 13:15:12 +00:00
kib
9ddc339f8b MFC r277321:
Make SIGSTOP working for sleeps done while waiting for fifo readers or
writers in open(2), when the fifo is located on an NFS mount.
2015-01-25 13:09:53 +00:00