summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r298192,299234,299238,299736:delphij2016-05-2885-1028/+4606
| | | | file 5.27.
* MFC r300638:cy2016-05-281-2/+2
| | | | | | | | Use the expiry date to determine whether to replace the DB copy of leapfile instead of using the leapfile serial number (create timestamp). PR: 209577
* MFC: r299514rmacklem2016-05-261-2/+2
| | | | | | | Fix use-after-free in NFS4 lock test service. Trivial use-after-free where stp was freed too soon in the non-error path. To fix, simply move its release to the end of the routine.
* MFC r299666 - r299672kadesai2016-05-265-262/+819
| | | | | | | | | | | | | r299666: Takes care of any firmware command timeout scenarios by initiating OCR. r299667: Similar to RAID map for Logical Drives, now JBOD map has been introduced r299668: This patch implements driver support for 1MB IO size. r299669: Implemented interrupt Config Hook in mrsas(4) to defer some of the tasks, like: registering AEN, creating cdev. r299670: Added support for Avago Intruder controller. r299671: bugs fixed as part of this patch in kdump and some NULL pointer dereference r299672: Version update patch. Sponsored by: AVAGO Technologies/ Broadcom Limited
* MFC r284872 - 284873kadesai2016-05-262-2/+6
| | | | | | | r284872: Kernel panic may be observed by user, if MR controller is under Chip reset (OCR) r284873: Counter part of mfi driver commit in mrsas gracefully fail, if the /dev/megaraid_sas_ioctl_node symlink already exists
* MFC r300327:ken2016-05-252-1/+3
| | | | | | | | | | | | | | | ------------------------------------------------------------------------ r300327 | ken | 2016-05-20 13:30:52 -0600 (Fri, 20 May 2016) | 11 lines Add the density code for LTO-7 to libmt and the mt(1) man page. The density code and bits per mm values were obtained from an actual drive density report. The number of tracks were obtained from an LTO-7 hardware announcement on IBM's web site. ------------------------------------------------------------------------ Sponsored by: Spectra Logic
* MFC r300224:ken2016-05-251-3/+6
| | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r300224 | ken | 2016-05-19 13:13:43 -0600 (Thu, 19 May 2016) | 12 lines Adjust a couple of error cases in camdd(8). usr.sbin/camdd/camdd.c: In camdd_probe_file(), fix an error case after fstat where we were bailing out and leaving two lines of cleanup code unexecuted. Instead, just goto bailout_error. In camdd_probe_pass(), fail if the sector size is 0. ------------------------------------------------------------------------ Sponsored by: Spectra Logic
* MFC r300432:kib2016-05-251-2/+0
| | | | Giant is dropped by mi_startup() before passing the control to swapper.
* Fix build on stable/10.mav2016-05-251-1/+2
|
* Add ioat.4 missed in r300661.mav2016-05-251-0/+334
|
* MFC ioat(4) driver in its present state.mav2016-05-2513-0/+4238
|
* MFC r299505sephe2016-05-252-42/+87
| | | | | | | | | | | | | | | | hyperv/stor: Enable INQUIRY result check only on WIN10 like host systems On WIN8 like host systems, when rescan happens, the already installed disks seem to return random invalid results for INQUIRY. More investigation is under way to figure out why random invalid INQUIRY results are delivered to VM on WIN8 like host systems. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: sephe MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6316
* MFC r300177 and r300179: fix two typos in man page.cy2016-05-251-1/+1
|
* MFC 299310:jhb2016-05-241-2/+2
| | | | | | | | | | Don't store generated firmware object files in the source directory. Trim the leading directory of a firmware source file from the resulting target object file name so the object file is stored in the object directory. Previously, using 'FIRMWS= /path/to/fw.bin:fw.bin' would store the generated 'fw.bin.fwo' file in the /path/to directory. Now it stores it in the object directory of the kernel module being built.
* MFC r300084:kib2016-05-241-2/+4
| | | | | | | Do enable io accounting for read-only mounts and mounts which are remounted to writeable after initial read-only. Assign to dev->si_mountpt earlier to account the accesses done at the mount time.
* MFC r300083:kib2016-05-241-1/+1
| | | | | If IO_SYNC was passed to ffs_truncate(), request synchronous inode update from the final ffs_update().
* MFC r300082:kib2016-05-241-1/+1
| | | | | For async UFS mounts, shrink the directory asynchronously, at least do not pass IO_SYNC to ffs_truncate() unneccessary.
* MFC r300030:kib2016-05-241-2/+2
| | | | Fix comments.
* MFC r300027:kib2016-05-241-1/+1
| | | | Fix typo in the message.
* MFC r299373: Allow sleepable allocations in enclosure daemon threads.mav2016-05-242-33/+15
| | | | | | There were at least two places where M_NOWAIT was used without NULL check. This change should fix NULL-dereference panic there and possibly improve operation in other ways under memory pressure.
* MFC r299347, r299348: Validate XCOPY range offsets and lengths.mav2016-05-241-5/+35
|
* MFC r299346: More XCOPY parameters validation.mav2016-05-241-5/+55
|
* MFC r299329: Improve validation of some POPULATE TOKEN parameters.mav2016-05-241-8/+22
|
* MFC r300072: Fix NULL-dereference panic if VESA reports zero modes.mav2016-05-241-1/+2
|
* MFC r300218: Add proper reporting for early task management errors.mav2016-05-243-6/+21
| | | | | This covers unknown requests and requests to unknown virtual ports. Previously it "worked" only because of timeout handling on initiator.
* MFC r300217: Add IOCB debugging for ISPCTL_RESET_DEV and ISPCTL_ABORT_CMD.mav2016-05-241-0/+8
|
* MFC r300157: Unify Multi ID target code by reusing isp_find_chan_by_did().mav2016-05-241-10/+9
|
* MFC r300058: Make RQCS_PORT_LOGGED_OUT for ZOMBIE ports retriable.mav2016-05-241-4/+18
| | | | | It is normal for ZOMBIE ports to be logged out. This status is not really an error until Gone Device Timeout expires, so make CAM retry after delay.
* MFC r300052: Completely remove broken now autologin port flag.mav2016-05-243-9/+4
| | | | | Firmware automatically logs in only to local loop ports, and those ports can be easily identified without extra flag by zero domain and area IDs.
* MFC r299957: Reduce verbosity of "now sending synthesized status" message.mav2016-05-241-1/+1
|
* MFC r299955: No need to check login status for ZOMBIE ports.mav2016-05-241-0/+3
| | | | ZOMBIE ports are always logged out, and so initiator may try to relogin.
* MFC r299691: Fix FCP_CMD LENGTH mask in ATIO7 IOCB.mav2016-05-241-1/+1
| | | | This caused "long IU length (16384) ignored" errors following by others.
* MFC r299465,r299807,r299808,r299817,r299831,r299832,r300167:ngie2016-05-245-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r299465 (by cem): bsnmp: Don't overrun privkey buffer by copying wrong size The 'priv_key' array is SNMP_PRIV_KEY_SIZ bytes, not SNMP_AUTH_KEY_SIZ. CIDs: 1008326, 1009675 r299807: Replace QUADFMT with %ju and QUADXFMT with %jx and cast values with uintmax_t This will cure some -Wformat warnings r299808: Use sizeof(..)s for the destination buffers instead of hardcoded values corresponding to the destination buffer sizes r299817: Use SNMPD_INPUT_FAILED instead of SNMP_CODE_FAILED SNMPD_INPUT_FAILED is `enum snmpd_input_err` type (which matches the return code from the function). SNMP_CODE_FAILED is `enum snmp_code` type. r299831: Remove NO_WERROR and add WARNS?= 6 This now compiles cleanly on all architectures Tested with: clang 3.8, gcc 4.2.1, gcc 4.5, make tinderbox r299832: Remove trailing whitespace in license tort r300167 (by glebius): Revert r299830, it has couple of fatal errors. The CMSG_ family of macros take care of alignment, so we don't need r299830 at all, even if it was correct. Put NO_WCAST_ALIGN into Makefile. Together with: peter
* MFC ↵ngie2016-05-244-23/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r299764,r299765,r299767,r299769,r299770,r299774,r299802,r299803,r299805,r299814: r299764: Use the size of the destination buffer, not the source buffer. Technically this is a no-op, but mute the clang warning in case the malloc call above for fstring ever changes in the future r299765: Fix theoretical buffer overflow issues in snmp_oid2asn_oid Increase the size of `string` by 1 to account for the '\0' terminator. In the event that `str` doesn't contain any non-alpha chars, i would be set to MAXSTR, and the subsequent strlcpy call would overflow by a character. Remove unnecessary `string[i] = '\0'` -- this is already handled by strlcpy. r299767: Mute sign compare warning by casting rc to u_int to match nbindings' type rc cannot be negative -- that was already tested for earlier on in the function r299769: Use the size of the destination buffer instead of the malloc size, repeated, in order to mute a -Wstrlcpy-strlcat-size warning r299770: Fix up r299764 I meant to use nitems, not sizeof(..) with the destination buffer. Using sizeof(..) on a pointer will always truncate the output in the destination buffer incorrectly Pointyhat to: ngie r299774: Do minimal work necessary to cure a -Wunused-but-set-variable warning from gcc How errno is saved before and restored after strtoul calls needs a rethink r299802: Fix up both r299764 and r299770 nitems was wrong too, as it was being tested against a pointer instead of a buffer on the stack. Since the old code was just doing malloc, then strlcpy'ing the contents of the source buffer into the destination buffer, replace it all with a call to strdup.. Supersized Duncecap to: ngie r299803: Replace malloc + memset(.., 0, ..) with calloc calls r299805: Fix up r299769 Similar to r299802, it was noted that using nitems on scalar pointers is invalid. Use strdup instead of malloc + strlcpy (which is what the old code was doing anyhow). Pointyhat to: ngie r299814: Replace malloc + memset(.., 0, ..) with calloc calls
* sed: rewrite the main loop.pfg2016-05-241-49/+43
| | | | | | | | | | Rewrite the main loop of the "sed s/..." command, shortening it by ten lines and simplifying it by removing the switch statement implementing /g, /1, and /2 separately and repetitively. This will be needed to bring a fix from OpenBSD later. Obtained from: OpenBSD (schwarze CVS Rev. 1.18)
* MFV r299377:pfg2016-05-241-2/+2
| | | | | | | | sed.1: Correction for the case insensitive case. Use the capital I instead of the lowercase. Submitted by: Mikhail T.
* MFC 300307:kp2016-05-241-1/+1
| | | | | | | | | pf: Fix fragment timeout We were inconsistent about the use of time_second vs. time_uptime. Always use time_uptime so the value can be meaningfully compared. Submitted by: "Max" <maximos@als.nnov.ru>
* MFC r298270:loos2016-05-231-0/+2
| | | | | | | | Add PCI ID for family 10h model 30h to amdtemp(4). This adds support to CPU found in PC Engines APU2 series. Sponsored by: Rubicon Communications (Netgate)
* MFC r297985:loos2016-05-231-2/+1
| | | | | | | | | | Do not overwrite the dchg variable. It does not cause any real issues because the variable is overwritten only when the packet is forwarded (and the variable is not used anymore). Obtained from: pfSense Sponsored by: Rubicon Communications (Netgate)
* Add respective tunables to all sysctls.mav2016-05-232-0/+18
| | | | This is direct commit to stable/10, since head does not need it any more.
* MFC r297984:loos2016-05-231-3/+12
| | | | | | | | | | Make pfctl(8) more flexible when parsing bandwidth values. This is the current behaviour in OpenBSD and a similar patch exist in pfSense too. Obtained from: OpenBSD (partly - rev. 1.625) Sponsored by: Rubicon Communications (Netgate)
* MFC 299559:n_hibma2016-05-231-4/+14
| | | | | Allow silencing of 'promiscuous mode enabled/disabled' messages.
* MFC r299916: vfs_read_dirent: increment ncookies after adding a cookieavg2016-05-231-0/+1
|
* MFC r300024: zfs_ioc_rename: fix a reversed conditionavg2016-05-231-1/+1
| | | | PR: 209093
* MFC r299710,r299711,r299763,r299783,r299811:ngie2016-05-231-27/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r299710: Staticize global variables only used in bsnmpimport.c to fix -Wmissing-variable-declarations warnings r299711: Fold two malloc + memset(.., 0, ..) calls into equivalent calloc calls r299763: Mute -Wstrlcpy-strlcat-size warning by using nitems with the size of the buffer This is a no-op as the malloc above set the size of the buffer to the size used below, but this keeps things consistent in case the malloc call changes somehow. r299783: Convert tok from enum tok to int32_t in function calls get_token(..) returns int32_t, not enum tok, and in many cases tests for items not in enum tok (e.g. '('). Make the typing consistent with get_token, which includes a domino effect of changing enum tok to int32_t. r299811: Use strdup instead of malloc + strlcpy Fix error messages on failure for calloc/strdup
* MFC r300005truckman2016-05-231-3/+3
| | | | | | | | | swprintf() and apparently wcsftime() want the their output buffer size specified in terms of the the number of wide characters and not sizeof(buffer). Reported by: Coverity CID: 1007605, 1007606
* MFC r300002truckman2016-05-231-1/+1
| | | | | | | | When clearing rtmsg, pass &rtmsg to bzero() instead of the address of just the header Reported by: Coverity CID: 1007568, 1194256
* MFC r299712,r299759,r299760,r299761,r299762:ngie2016-05-232-21/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r299712: Fix some trivial clang/gcc warnings in bsnmptc.c - By definition, `enum snmp_tc` can't be false (the implied starting sequence index for the enum is 0). Don't test for it being < 0. - Staticize `struct snmp_text_conv` to mute a -Wmissing-variable-declarations warning from clang. - Remove set but unused variable, ptr, in parse_bridge_id(..) and parse_bport_id(..) to mute warning from gcc 4.9+. - Mark value and string unused in snmp_inetaddr2oct(..) and parse_inetaddr(..) as they're just stub functions. r299759: Use calloc instead of memset(.., 0, ..) + malloc r299760: Sort variables in parse_ascii(..) per style(9) r299761: parse_ascii: make count size_t to mute a -Wsign-compare issue count is always unsigned. r299762: Mark snmptoolctx unused in parse_authentication(..), parse_privacy(..), parse_context(..), and parse_user_security(..).
* MFC r299991truckman2016-05-231-7/+7
| | | | | | | | Don't walk off the end of the array when proto isn't explicitly listed above. Instead update the catch-all "Others" bucket. Reported by: Coverity CID: 1007571, 1007572
* MFC r299988truckman2016-05-231-5/+7
| | | | | | | | | | | | | | | | | | | | | | | Set ai2 to NULL in in find_host() before the loop and after calling freeaddrinfo() on it to indicate that it doesn't point to a valid addrinfo list. This fixes this Coverity issues: 1006368 Uninitialized pointer read 1018506 Double free 1305590 Resource leak that can be triggered in the hp->hostname[0] != '\0' case. Don't treat a character as a boolean. Fix these Coverity issues: 1009293 Unchecked return value from library 1194246 Wrong size argument by tweaking the status file extend code. Reported by: Coverity CID: 1006368, 1018506, 1305590, 1009293, 1194246 Reviewed by: rmacklem Feedback from: hrs Differential Revision: https://reviews.freebsd.org/D6398
OpenPOWER on IntegriCloud