summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r290179:ngie2015-11-091-2/+1
| | | | | | Remove a set but unused variable in __getgroupmembership to fix a gcc 4.9+ warning Sponsored by: EMC / Isilon Storage Division
* MFC r290190,r290251:ngie2015-11-092-18/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | r290190: Fix compiler warnings with open_to_operation.c Other sidenotes: - Remove unused variables with main(..) - Convert errx/exit with -1 to errx/exit with 1 - Fix a bogus test in try_directory_open (expected_errno == expected_errno -> errno == expected_errno) [*] - Fix some warnings related to discarded qualifiers - Remove a bogus else-statement at the end of check_mmap_exec(..) in the successful case. mmap(2), POSIX, Linux, etc all don't state what the behavior is when mixing O_WRONLY + PROT_EXEC, so assume success for now to get the test program to pass again. PR: 201286 [*] Submitted by: David Binderman <dcb314@hotmail.com> Sponsored by: EMC / Isilon Storage Division r290251: Use nitems(x) instead of sizeof(x)/sizeof(x[0]) Sponsored by: EMC / Isilon Storage Division
* MFC r289903:ngie2015-11-091-0/+4
| | | | | | Add libvmmapi to OptionalObsoleteFiles.inc when MK_BHYVE == no Sponsored by: EMC / Isilon Storage Division
* MFC r290184:ngie2015-11-091-2/+1
| | | | | | | Fix a set but not used variable warning flagged by gcc 4.9 with lib/libc/ssp/h_readlink Sponsored by: EMC / Isilon Storage Division
* MFC r290182:ngie2015-11-091-5/+5
| | | | | | | | | | | | | Fix rtsold's usage message - Remove -a from the usage message example dealing with specific interfaces. -a only makes sense when not specifying an interface, such that it's to be run on all interfaces - Fix the pidfile option (it's -p, not -P) - Change `interfaces` to `interface` to match the manpage PR: 173744 Sponsored by: EMC / Isilon Storage Division
* MFC r290178:ngie2015-11-091-1/+2
| | | | | | | | | Fix GOST engine cipher linkage by adding e_gost_err.c to SRCS so it picks up undefined symbols, like "ERR_load_GOST_strings" PR: 184805 Submitted by: Ivan IvanZhdanov <ivan.zhdanov@gmail.com> Sponsored by: EMC / Isilon Storage Division
* MFC r289487:ngie2015-11-094-0/+26
| | | | | | | | | | Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as bin/dd/tests Ensure fdescfs is mounted on /dev/fd/ for the length testcase as it's used in validating the characters read from /dev/zero Sponsored by: EMC / Isilon Storage Division
* MFC r290024,290073:delphij2015-11-092-5/+12
| | | | | | | | | | | In gunzip(1), treat trailing garbage as a warning and not an error. This allows scripts to distinguish it between real fatal errors, for instance a CRC mismatch. Update manual page for the behavior change. PR: bin/203873 Submitted by: Eugene Grosbein <eugen grosbein net>
* MFC: r290329,r290336ache2015-11-081-4/+24
| | | | | | | | | | | | | PR: 204230 r290329: Use meaningful errno for ssize_t overflow in read(). Catch size_t overflow in malloc(). r290336: Check for (old|new)size + 1 overflows off_t.
* MFC: r289863,r289931,r290110,r290230,r290231,r290232ache2015-11-088-23/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r290232: Microoptimize. r290231: Addition to prev. commit. In some edge cases fp->_p can be changed in _sseek(), recalculate. r290230: Don't seek to the end if write buffer is empty (in append modes). PR: 204156 r290110: Add _flags2 per jhb@ suggestion since no room left in _flags. Rewrite O_APPEND flag checking using new __S2OAP flag. r289931: According to POSIX, a write operation shall start at the current size of the stream (if mode had 'a' as the first character). r289863: Since no room left in the _flags, reuse __SALC for O_APPEND. It helps to remove _fcntl() call from _ftello() and optimize seek position calculation in _swrite().
* MFC 289636:jhb2015-11-063-4/+4
| | | | Switch pl_child_pid from int to pid_t.
* MFC 288902:jhb2015-11-061-18/+23
| | | | | | | Include additional info in ptrace(2) KTR traces: - The new PC value and signal passed to PT_CONTINUE, PT_DETACH, PT_SYSCALL, and PT_TO_SC[EX]. - The system call code returned via PT_LWPINFO.
* MFC 288452,289719:jhb2015-11-061-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 288452: Most error cases in i915_gem_do_execbuffer() jump to one of two labels to release resources (such as unholding pages) when errors occur. Some recently added error checks return immediately instead of jumping to a label resulting in leaks. Fix these to jump to a label to do cleanup instead. Note that stable/9 does not have the "recently added" error checks, but it does have some older error checks (that were are no longer present in stable/10 and head) that have the same bug and this fixes those instead. 289719: i915_gem_do_execbuffer() holds the pages backing each relocation region for various reasons while executing user commands. After these commands are completed, the pages backing the relocation regions are unheld. Since relocation regions do not have to be page aligned, the code in validate_exec_list() allocates 2 extra page pointers in the array of held pages populated by vm_fault_quick_hold_pages(). However, the cleanup code that unheld the pages always assumed that only the buffer size / PAGE_SIZE pages were used. This meant that non-page aligned buffers would not unheld the last 1 or 2 pages in the list. Fix this by saving the number of held pages returned by vm_fault_quick_hold_pages() for each relocation region and using this count during cleanup.
* MFC r290195:hselasky2015-11-061-6/+11
| | | | | | | Reduce the DWC OTG interrupt load by not reading all the host channel status registers for every interrupt. Check a common host channel status interrupt register first, then conditionally read the individual host channel status registers.
* MFC 288371:jhb2015-11-051-1/+0
| | | | | | | | | | | | | | | | When XSAVE support was added on amd64, the FPU save area was moved out of 'struct pcb' and into a variable-sized region after the structure. The kgdb code currently only reads the pcb. It does not read in the FPU save area but instead passes stack garbage as the FPU's saved context. Fixing this would mean determining the proper size of the area and fetching it. However, this state is not saved for running CPUs in stoppcbs[], so the callback would also have to know to ignore those pcbs. Instead, just remove the call since it is of limited usefulness. It results in kgdb reporting the state of the FPU/SIMD registers in userland, not their current values in the kernel. In particular, it does not report the correct state for any code in the kernel which does use the FPU and would report incorrect values in that case.
* MFC 288372:jhb2015-11-051-3/+3
| | | | Use EFI page size constants instead of hardcoding 4096.
* MFC 287934:jhb2015-11-051-1/+1
| | | | | | | | | | | | | The EFI boot loader allocates a single chunk of contiguous memory to hold the kernel, modules, and any other loaded data. This memory block is relocated to the kernel's expected location during the transfer of control from the loader to the kernel. The GENERIC kernel on amd64 has recently grown such that a kernel + zfs.ko no longer fits in the default staging size. Bump the default size from 32MB to 48MB to provide more breathing room. PR: 201679
* MFC r276450smh2015-11-051-1/+2
| | | | | | Correct zpool list displaying invalid EXPANDSZ for unavailable pool vdevs Sponsored by: Multiplay
* MFC r273118 (by mjg)smh2015-11-051-3/+6
| | | | | | Don't take devmtx unnecessarily in vn_isdisk. Sponsored by: Multiplay
* MFC r289637emax2015-11-051-9/+43
| | | | | | | check boundaries while parsing SDP responses Reported by: hps Reviewed by: hps
* MFC r289746:ngie2015-11-051-1/+2
| | | | | | | | | Exit with a user-friendly message instead of tripping an assert if vm_activate_cpu(..) fails when called from fbsdrun_addcpu(..) PR: 203884 Reviewed by: grehan Submitted by: William Orr <will@worrbase.com>
* MFC r289913,r289916:ngie2015-11-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* MFC r290116:ae2015-11-041-0/+8
| | | | | | Check the size of data available in mbuf before using it. PR: 202667
* MFC r288600:hrs2015-11-042-19/+47
| | | | | | | | | | | | - 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.
* MFC r288575:hrs2015-11-043-4/+20
| | | | Add IFCAP_LINKSTATE support.
* MFC r285914, r289029 and r289560:hselasky2015-11-032-82/+81
| | | | | | | | | | | | | | - 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
* MFC r289661:kib2015-11-031-1/+1
| | | | | Mark struct thread zone as type-stable, to prevent dereference of the freed memory in the locks spin loops.
* MFC r289660,r289664:kib2015-11-031-2/+13
| | | | | 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.
* MFC r289658:kib2015-11-031-1/+1
| | | | | No need to dereference struct proc to pids when comparing processes for equality.
* MFC r287413: Minor code cleanups (no functional changes).dteske2015-11-021-14/+12
|
* MFC r287390: Bump version for altered long-opts processingdteske2015-11-021-1/+1
|
* MFC r287389: Simplify long-option processingdteske2015-11-021-14/+10
|
* MFC r287385: Bump version for prior fix (SVN r287381)dteske2015-11-021-1/+1
|
* MFC r287384:dteske2015-11-021-1/+1
| | | | Style: Remove whitespace around brackets from function syntax options
* MFC r287383: Comment for escape() function.dteske2015-11-021-0/+8
|
* MFC r287382: Commentdteske2015-11-021-1/+1
|
* MFC r287381: Properly escape arguments when moving into jail or chrootdteske2015-11-021-1/+22
|
* MFC r287380: Style: commentsdteske2015-11-021-4/+4
|
* MFC r287379: Style consistency: add single space before each `;;' case entrydteske2015-11-021-19/+19
|
* MFC r287378:dteske2015-11-021-12/+12
| | | | | Remove `SYSRC_' prefix from $SYSRC_VERBOSE (prefix unnecessary since this is a non-inheritable attribute; was previously).
* MFC r287421: Fix mandoc(1) "WARNING: end of line whitespace"dteske2015-11-021-15/+15
|
* Snap to breuffer's r286660 (incorrectly merged)dteske2015-11-021-2/+0
|
* MFC r287420: Remove non-functional examples.dteske2015-11-021-22/+1
|
* MFC r287683: Ignore error results from newaliases(1)dteske2015-11-021-0/+2
|
* MFC r287685: Remove use of return outside of functiondteske2015-11-021-1/+1
|
* MFC r287686: Produce meaningful exit codedteske2015-11-021-1/+4
|
* MFC r287687: Update copyrightsdteske2015-11-023-2/+3
|
* MFC r287688: Explicitly exit with successdteske2015-11-021-1/+2
|
* MFC r287689: Explicitly exit with successdteske2015-11-021-1/+2
|
* MFC r287690: Produce meaningful exit codedteske2015-11-022-6/+14
|
OpenPOWER on IntegriCloud