summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r275199.cy2014-12-102-2/+2
| | | | Correctly define constants.
* MFC r275452: Do not corrupt the listen string when parsing it.mav2014-12-101-5/+7
| | | | | This fixes problem with ctld reload when it is configured to listen on two portals with same IP, but different ports.
* MFC r275446: Plug memory leaks on UNMAP and XCOPY with invalid parameters.mav2014-12-102-6/+24
|
* MFC r275666:delphij2014-12-105-26/+114
| | | | | | | Fix multiple vulnerabilities in file(1) and libmagic(3). Security: FreeBSD-SA-14:28.file Security: CVE-2014-3710, CVE-2014-8116, CVE-2014-8117
* MFC r275665:delphij2014-12-101-4/+6
| | | | | | | Fix buffer overflow in stdio. Security: FreeBSD-SA-14:27.stdio Security: CVE-2014-8611
* MFC r275376:rpaulo2014-12-091-25/+6
| | | | | Allow multiple devices to mmap. It's impossible to prevent this with checks on the open/close functions.
* MFC r274310:trasz2014-12-091-1/+6
| | | | | | Add HISTORY section to ctld(8). Sponsored by: The FreeBSD Foundation
* MFC r274308:trasz2014-12-096-7/+183
| | | | | | | | | | | Add support for sending redirections to iSCSI target. MFC r274309: Fix several nits in redirection handling - don't use wrong CSG, and avoid use-after-free. Sponsored by: The FreeBSD Foundation
* MFC r275386:dim2014-12-092-4/+33
| | | | | | | | | | | | | | Let GNU ld be less obscure about missing symbols and DSOs. If the BFD object looks like a typical shared library, suggest adding '-l<foo>', where <foo> has the 'lib' prefix and '.so<bar>' or '.a' suffix removed. Otherwise, suggest adding '-l:<foo>', where <foo> is the full DT_SONAME. Submitted by: Conrad Meyer <conrad.meyer@isilon.com> Sponsored by: EMC / Isilon storage division Reviewed by: emaste PR: 194296 Differential Revision: https://reviews.freebsd.org/D1152
* MFC r274322:bryanv2014-12-091-8/+24
| | | | Attempt to report a better error if sanitize is not supported
* MFC r275071:delphij2014-12-091-9/+28
| | | | | | | | | | | | | Reinstitate send() after syslogd restarts. In r228193 the test of CONNPRIV have been moved to before the _usleep and send in vsyslog(). When syslogd restarts, this would prevent the message being logged after the disconnect/connect dance for scenario #1. PR: 194751 Submitted by: Peter Creath <pjcreath+freebsd gmail com> Reviewed By: glebius
* MFC r275046: whitespace and cosmetic changes in callout_reset family of macrosavg2014-12-081-3/+4
| | | | Not applicable to earlier releases.
* MFC r275045: callout(9): add sbt flavors of callout_scheduleavg2014-12-083-4/+30
| | | | Not applicable to earlier releases.
* MFC r274628: l2arc: restore correct rounding up of asize of compressed dataavg2014-12-081-7/+9
|
* MFC r274277:trasz2014-12-081-2/+2
| | | | | | ctld(8) doesn't require -lcam or -lssl; remove those from DPADD and LDADD. Sponsored by: The FreeBSD Foundation
* MFC r275368:mav2014-12-081-2/+9
| | | | | | | | | | When passing LUN IDs through treat ASCII values as fixed-length, not interpreating NULLs as EOLs, but converting them to spaces. SPC-4 does not tell that T10-based IDs should be NULL-terminated/padded. And while it tells that it should include only ASCII chars (0x20-0x7F), there are some USB sticks (SanDisk Ultra Fit), that have NULLs inside the value. Treating NULLs as EOLs there made those LUN IDs non-unique.
* MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests.jilles2014-12-075-5/+423
| | | | | | | | | | | | | The change to expand_number (r204654) broke detection of too large sizes and relative sizes ('+'/'-'). Also add some tests. The usr.bin/truncate/Makefile is slightly different in the MFC because src.opts.mk does not exist in stable/10. PR: 190735 Submitted by: Kirk Russell
* MFC r263928:brooks2014-12-061-1/+1
| | | | | | Use the correct variable name in the example code. PR: 195749
* MFC r274843, r274845:mav2014-12-061-52/+69
| | | | | | | | Move icl_pdu_get_data() and xpt_done() out of initiator's session lock. During heavy reads data copying in icl_pdu_get_data() may consume large percent of CPU time. Moving it out of the lock significantly reduces lock hold time and respectively lock congestion on read operations.
* MFC r271695:markj2014-12-052-3/+3
| | | | Fix some incorrect endianness checks.
* MFC r275170:ngie2014-12-056-613/+288
| | | | | | | | | | | | | | | Convert sbin/mdconfig/tests from prove format tests to ATF format tests As a side effect... 1. The tests now checks for the root user before continuing with kyua, which is more visible than the test being skipped with the TAP protocol 2. The tests work with devices that aren't /dev/md0 by caching the device attached during the test to a file, and later use the cached information to detach the device in the cleanup routine 3. The tests no longer require perl to run PR: 191191 Sponsored by: EMC / Isilon Storage Division
* MFC r274365:ngie2014-12-051-10/+2
| | | | Revert WiP to contrib/tzcode accidentally committed with r274364
* MFC r274364:ngie2014-12-0512-136/+210
| | | | | | | | | | | | | | Add baud rate support to telnet(1) This implements part of RFC-2217 It's based off a patch originally written by Sujal Patel at Isilon, and contributions from other Isilon employees. PR: 173728 Phabric: D995 Reviewed by: markj, markm Sponsored by: EMC / Isilon Storage Division
* MFC r272057,r272083,r272084,r272087,r274016:ngie2014-12-05255-4/+11319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r272057: Import pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91 - Remove tools/regression/pjdfstest - Add upgrade directions for contrib/pjdfstest - Add a note to UPDATING for the move (the reachover Makefiles are coming soon) Functional differences: - ftruncate testcases are added from upstream (github) Non-functional differences: - The copyright for the project has been updated to 2012 - pjd's contact information has been updated Discussed with: -testing, jmmv, pjd Sponsored by: EMC / Isilon Storage Division r272083: Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris, etc) Sponsored by: EMC / Isilon Storage Division r272084: Fix the executed testplan count Sponsored by: EMC / Isilon Storage Division r272087: Increase the memory disk size in the following testcases to avoid mount failures, which would cause cascade failures in the rest of the test run: link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t Fail quickly in all of the testcases if mdconfig, mount, umount, etc fails to avoid issues similar to this in the future Submitted by: Casey Peel <cpeel@isilon.com> Sponsored by: EMC / Isilon Storage Division r274016: Integrate pjdfstest test suite execution into kyua pjdfstest execution is opt-in and must be done as root due to some of the assumptions made by the test suite and lack of error checking in the non-root case A description of how to execute pjdfstest with kyua is provided in share/pjdfstest/README Phabric: D824 (an earlier prototype patch) Relnotes: yes Sponsored by: EMC / Isilon Storage Division
* MFC r275206:kib2014-12-051-2/+8
| | | | | Assert the state of the process lock and sigact mutex in kern_sigprocmask() and reschedule_signals().
* MFC r271796 (by will):ngie2014-12-051-1/+1
| | | | | | | Use 'cc' for the C compiler instead of 'gcc'. Sponsored by: Spectra Logic MFSpectraBSD: 1079507 on 2014/07/24
* MFC r275420:rpaulo2014-12-051-3/+0
| | | | | | | gpioctl: don't print the command line arguments. PR: 195330 Submitted by: Scott Ellis jumpnowtek at gmail.com
* MFC r272937: Fix r272936 build with old GCC.mav2014-12-051-1/+2
|
* MFC r268395:mav2014-12-051-1/+1
| | | | | | | 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 r274248: Remove unused assignments, noticed by Clang analyzer.mav2014-12-051-7/+7
|
* MFC r274805:mav2014-12-052-0/+11
| | | | | Make cfiscsi_offline() synchronous, waiting for connections termination before return. This should make ctld restart more clean and predictable.
* MFC r274795:mav2014-12-051-15/+17
| | | | | | Close race between cfiscsi_offline() and new connection arrival. Incoming connection should be either rejected or accepted and terminated.
* MFC r274785: Partially reconstruct Active/Standby clusting.mav2014-12-0511-58/+99
| | | | | | | | | In this mode one head is in Active state, supporting all commands, while another is in Standby state, supporting only minimal LUN discovery subset. It is still incomplete since Standby state requires reservation support, which is impossible to do right without having interlink between heads. But it allows to run some basic experiments.
* MFC r274172 (avg)delphij2014-12-051-10/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix l2arc compression buffers leak We have observed that arc_release() can be called concurrently with a l2arc in-flight write. Also, we have observed that arc_hdr_destroy() can be called from arc_write_done() for a zio with ZIO_FLAG_IO_REWRITE flag in similar circumstances. Previously the l2arc headers would be freed while leaking their associated compression buffers. Now the buffers are placed on l2arc_free_on_write list for delayed freeing. This is similar to what was already done to arc buffers that were supposed to be freed concurrently with in-flight writes of those buffers. In addition to fixing the discovered leaks this change also adds some protective code to assert that a compression buffer associated with a l2arc header is never leaked. A new kstat l2_cdata_free_on_write is added. It keeps a count of delayed compression buffer frees which previously would have been leaks. Tested by: Vitalij Satanivskij <satan@ukr.net> et al Requested by: many Sponsored by: HybridCluster / ClusterHQ This is a 10.1-RELEASE errata candidate.
* MFC r274370:delphij2014-12-041-5/+5
| | | | | | Rename variable name from 'index' to 'idx' to avoid shadowing index(3). Noticed by: dim
* MFC r274674:delphij2014-12-041-0/+3
| | | | | | | Add a tunable for spa_slop_shift which controls how much space we would reserve by default. Tuning is not recommended. Relnotes: yes
* MFC r274636:delphij2014-12-041-5/+3
| | | | Sync with userland variant.
* MFC r274276: MFV r274271:delphij2014-12-042-21/+47
| | | | | | | | | | | | Improve zdb -b performance: - Reduce gethrtime() call to 1/100th of blkptr's; - Skip manipulating the size-ordered tree; - Issue more (10, previously 3) async reads; - Use lighter weight testing in traverse_visitbp(); Illumos issue: 5243 zdb -b could be much faster
* MFC r274458,274523:delphij2014-12-041-1/+1
| | | | Derive copyright year from src/COPYRIGHT.
* MFC r274303:delphij2014-12-041-0/+2
| | | | | | | | | | | | Apply upstream 13597:3eac1e8e0f4c (git: illumos-gate@aa846ad9): Initialize tqent_flags in the userland taskq implementation. Without this the assertion of tq->tq_freelist != NULL may fail in taskq_destroy. The problem is that tqent_flags is never initialized in the userland implementation while the kernel one does initialize it. Without proper initialization, the flag may have its lowest bit set, making it treated as TQENT_FLAG_PREALLOC and never removing taskq_ent_t from tq_freelist.
* MFC r272044:delphij2014-12-041-2/+2
| | | | Constify a parameter of name2oid. No functional change.
* MFC r275366:dim2014-12-041-7/+59
| | | | | | | | | | | | | | Pull in r209785 from upstream libc++ trunk (by Marshall Clow): Fix a problem exposed by r208825, which caused bind (and other bits of libc++) to stop working. And tests This fix is needed to support clang 3.5.0 and higher, which are more strict about forming pointer-to-function types with cv-qualifiers or ref-qualifiers. See also the upstream PR <http://llvm.org/PR19742> and <http://llvm.org/viewvc/llvm-project?rev=208825&view=rev> Reported by: amdmi3
* MFC r274922:dim2014-12-041-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warning from clang 3.5.0, while building the ath kernel module: sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) { ^ sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs' #define abs(_a) __builtin_abs(_a) ^ sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' since unsigned values cannot be negative sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs' #define abs(_a) __builtin_abs(_a) ^ 1 error generated. This warning occurs because both lp[0] and target are unsigned, so the subtraction expression is also unsigned, and calling abs() is a no-op. However, the intention was to look at the absolute difference between the two unsigned quantities. Introduce a small static function to clarify what we're doing, and call that instead. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D1212
* MFC r273488:markj2014-12-031-3/+3
| | | | | | Fix some bugs in the error handling of getdevice(). PR: 194506
* MFC r275120:kib2014-12-031-19/+27
| | | | | Fix SA_SIGINFO | SA_RESETHAND handling, reset disposition after sv_sendsig() is called.
* MFC r275110:hselasky2014-12-032-0/+2
| | | | | | Add new USB quirk. PR: 195372
* MFC r275328 and r275330:hselasky2014-12-0311-11/+20
| | | | | | | | Add missing libraries when linking and fix building of some infiniband utilities by updating some header file locations and compiler include directives. Sponsored by: Mellanox Technologies
* MFC r274703:trasz2014-12-031-1/+1
| | | | | | Fix typo. Sponsored by: The FreeBSD Foundation
* MFC r275124: Fix WWNN/WWPN generation for virtual channels.mav2014-12-031-6/+3
|
* MFC r275123: Fix incorrect check, blocking MULTIID functionality.mav2014-12-031-1/+1
|
OpenPOWER on IntegriCloud