summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r305597:kib2016-09-221-0/+1
| | | | When extending directory inode in ufs_direnter(), adjust i_endoff.
* MFC r305595:kib2016-09-221-2/+7
| | | | | | In dqsync(), when called from quotactl(), um_quotas entry might appear cleared since nothing prevents completion of the parallel quotaoff. There is nothing to sync in this case, and no reason to panic.
* MFC r305594:kib2016-09-221-3/+6
| | | | | In softdep_prealloc(), return early not only for snapshots, but for the quota files as well.
* MFC r305593:kib2016-09-221-32/+19
| | | | | | There is no need to upgrade the last dvp lock on lookups for modifying operations. Instead of upgrading, assert that the lock is exclusive. Explain the cause in comments.
* MFC r305592:kib2016-09-223-5/+16
| | | | | Partially lift suspension when ffs_reload() finished with cgs and going to re-read inodes.
* MFC r305610: Don't report to devd statuses that CAM doesn't consider errors.mav2016-09-221-1/+1
| | | | | Some statuses, such as "ATA pass through information available", are part part of absolutely normal operation and do not worth reporting.
* MFC r305609: "Extended copy information available" is not an error either.mav2016-09-221-1/+1
|
* MFC r305608: "ATA pass through information available" is not an error.mav2016-09-221-1/+1
|
* MFC r305602: intpm: fix attachment to supported AMD FCHsavg2016-09-211-1/+3
|
* MFC r275240 (bapt): Implement --no-fatal-warningsemaste2016-09-211-0/+10
| | | | | | Implement --no-fatal-warning for compatibility with newer ld what ever order the options are passed to ld(1) the --no-fatal-warning always disable --fatal-warning
* MFC r305606: intpm: make sure to register smbus driver before intpm driveravg2016-09-211-1/+2
|
* MFC r305604: intpm: better clean up resources after a failed attachmentavg2016-09-211-14/+26
|
* MFC r305603: intpm: do not try attaching to unsupported controller revisionsavg2016-09-211-3/+6
|
* MFC r305600: amdsbwd.4: update supported hardware listavg2016-09-211-2/+17
|
* MFC r305596: intpm.4 update supported hardware listavg2016-09-211-1/+5
|
* MFC r303113: Cross-link some SMBus controller drivers man pages.avg2016-09-215-0/+10
|
* MFC r303111: Document list of supported chipsets.avg2016-09-211-9/+23
|
* MFC r305535: amdsbwd: add support for FCH in family 16h models 30h-3Fh ↵avg2016-09-211-12/+75
| | | | processors
* MFC r305939:kib2016-09-211-1/+1
| | | | Remove trailing space.
* MFstable/11 r305914:ngie2016-09-181-23/+29
| | | | | | | | MFC r305357: Skip testcases 9/10 if jail(8) isn't installed These testcases require jail support
* MFstable/11 r305912:ngie2016-09-181-0/+1
| | | | | | | | | MFC r305356: Add a missing "Bail out!" if zpool create fails This will make the exit info more meaningful if/when zpool create fails, and establishes parity with the other 2 zfs acl testcases (01, 03).
* MFstable/11 r305910:ngie2016-09-182-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r305033,r305041,r305170: r305033: Minor Makefile simplifications for lib/atf/... - Replace uses of `${.CURDIR:H:H:H}` with ${SRCTOP} - Use built-in :H operator instead of ".." when enumerating paths. r305041: Filter certain compile-time options into -DATF_BUILD_* Items filtered through are: - Constant defines (-D) - Include flags (-I) - Linker flags (-L) - Optimization level (-O) - Warnings / linker flags (-W) - Preprocessor options (-f) This fixes the scenario hit by the Jenkins job where it's infecting the build with --sysroot, etc options from the Jenkins build in the tests. Prefix all intermediate variables (_CFLAGS, etc) with "ATF_BUILD" [*]. Requested by: jmmv r305170: Don't bake all of CC/CPP/CXX into CFLAGS Capture executable names for CC, CPP, CXX (assumed to be the first non-CCACHE_BIN word). This change strips out all of the cross-compiler arguments, (-target, -B, etc), added to ${CC}, etc via ${CROSSENV} in Makefile.inc1, so it doesn't infect the build and subsequently the test. Add comments noting why this logic is being added, and why the logic in r305041 was necessary/what it was trying to achieve. This is required after recent changes made to the toolchain to always specify --sysroot, -target, -B, etc with clang in buildworld (presumably r304681).
* MFC r301522 (by bz)hiren2016-09-163-0/+59
| | | | | | | | | | | | | Implement a `show panic` command to DDB which will helpfully print the panic string again if set, in case it scrolled out of the active window. This avoids having to remember the symbol name. Also add a show callout <addr> command to DDB in order to inspect some struct callout fields in case of panics in the callout code. This may help to see if there was memory corruption or to further ease debugging problems. No objection by: bz
* MFC r305590:hselasky2016-09-151-2/+2
| | | | | | | | Correctly map the USB mouse tilt delta values into buttons 5 and 6 instead of 3 and 4 which is used for the scroll wheel, according to X.org. PR: 170358
* MFC r305744:kib2016-09-151-1/+1
| | | | Fix typo in comment.
* MFC r305129:kib2016-09-141-9/+22
| | | | Make swapoff reliable.
* MFC r305123: Fix kernel panic when inheriting properties without default.mav2016-09-141-0/+2
| | | | | | There are two writable hidden properties "iscsioptions" and "stmf_sbd_lu", that have no default string value. Attempt to unset them or replicate caused kernel panic. This simple bandaid seems fixes the problem nicely.
* MFC r305536: Fix channel initialization in FBS mode.mav2016-09-141-15/+15
| | | | | | | | | | | | Due to reading initialized variable, FIS receive area was always allocated as 256 bytes, suitable for command-based switching, instead of 4096 bytes, required for FIS-based switching. This caused memory corruption in case of MFC r305536: Fix channel initialization in FBS mode. Due to reading initialized variable, FIS receive area was always allocated as 256 bytes, suitable for command-based switching, instead of 4096 bytes, required for FIS-based switching. This caused memory corruption in case of port multipliers used on FBS-capable HBAs (Marvell).
* MFC r305679: Switch random_get_pseudo_bytes() shim to arc4rand().mav2016-09-131-1/+1
| | | | | | | | Our shim for Solaris random_get_bytes() uses read_random(), that looks reasonable, since it guaranties reliably seeded random data. On the other side Solaris random_get_pseudo_bytes() does not provide this guarantie, and its original Solaris implementation is equivalent to our arc4rand(), using software crypto without stressing slower hardware RNG.
* MFC r303935lwhsu2016-09-131-1/+1
| | | | | | | | Only remove empty directories before packaging. This preserves files are intentionally empty, most of them are in tests.txz Reviewed by: bdrewery
* MFC r305422:mm2016-09-127-184/+447
| | | | | | | | | | | Sync libarchive with vendor Vendor issues fixed: PR #777: Multiple bugfixes for setup_acls() This includes a bugfix for a bug that caused ACLs not to be read properly for files and directories inside subdirectories and as a result not being stored or being incorrectly stored in tar archives.
* MFC r302778asomers2016-09-127-15/+177
| | | | | | | | | | | | | | | | | | | | | pw should sanitize the argument of -w. Otherwise, it will silently disable the login for the selected account if the argument is unrecognizable. usr.sbin/pw/pw.h usr.sbin/pw/pw_conf.c usr.sbin/pw/pw_user.c Use separate rules to validate boolean parameters and passwd parameters. Error out if a password parameter cannot be parsed. usr.sbin/pw/tests/Makefile usr.sbin/pw/tests/crypt.c usr.sbin/pw/tests/pw_useradd.sh usr.sbin/pw/tests/pw_usermod.sh Add tests for the validation. Also, enhance existing password-related tests to actually validate that the correct hash is written to master.passwd.
* MFC: 304825gnn2016-09-121-1/+1
| | | | | | | | | Unlike Solaris, in FreeBSD p_args can be 0 so check for that instead of walking down to ar_args blindly. Reported by: Amanda Strnad Reviewed by: markj, jhb Sponsored by: DARPA, AFRL
* MFC r304162asomers2016-09-121-1/+1
| | | | | | | | Decrease the anti-congestion sleep in 480.leapfile-ntpd to 1 hour 24 hours is too long. Periodic scripts are executed serially, so when combined with the sleep in 410.pkg-audit periodic could actually take more than 24 hours and block the next invocation.
* MFC r305421:hselasky2016-09-128-28/+61
| | | | | | | | | | | | | | | | | | | | | | | Resolve deadlock between device_detach() and usbd_do_request_flags() by reviving the SX control request lock and refining which lock protects the common scratch area in "struct usb_device". The SX control request lock was removed by r246759 because it caused a lock order reversal with the USB enumeration lock inside usbd_transfer_setup() as a function of r246616. It was thought that reducing the number of locks would resolve the LOR, but because some USB device drivers use usbd_do_request_flags() inside callback functions, like in taskqueues, a deadlock may occur when these are drained from device_detach(). By restoring the SX control request lock usbd_do_request_flags() is allowed to complete its execution when a USB device driver is detaching. By using the SX control request lock to protect the scratch area, the LOR introduced by r246616 is also resolved. Bump the FreeBSD version while at it to force recompilation of all USB kernel modules. Found by: avos@
* MFC 305177sephe2016-09-121-1/+1
| | | | | | | | net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1. Reviewed by: araujo, hps Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7710
* MFC r305430:dim2016-09-111-3/+6
| | | | | Define libcpp's HAVE_DESIGNATED_INITIALIZERS in a defined and portable way.
* MFC 303720: Apply the fix from r232612 to fixed function counters.jhb2016-09-091-1/+1
|
* MFC 303713: Correct assertion on vcpuid argument to vm_gpa_hold().jhb2016-09-091-1/+1
| | | | PR: 208168
* MFC 304637: Fix build for !SMP kernels after the Xen MSIX workaround.jhb2016-09-094-2/+12
| | | | | | | Move msix_disable_migration under #ifdef SMP since it doesn't make sense for !SMP kernels. PR: 212014
* MFC r305469:delphij2016-09-091-4/+4
| | | | | | | | | | | Ensure that we always open only files that is named by explicitly using shell redirections instead of having gzip(1) to decide what file to open. Issue reported in the "non-cryptanalytic attacks against freebsd update components" anonymous gist. Reviewed by: allanjude, emaste
* MFC r304571:hselasky2016-09-091-8/+39
| | | | | | | | Make the UKBD USB transfers double buffered and set them up one by one, so they are memory independent which allows for handling panics triggered by the keyboard driver itself, typically via CTRL+ALT+ESC sequences. Or if the USB keyboard driver was processing a key at the moment of panic. Allow UKBD to be attached while keyboard polling is active.
* MFC r305284:hselasky2016-09-091-2/+13
| | | | | | | Fix array size issue when using the pre-scaling feature for ISOCHRONOUS USB transfers. Make sure enough length and buffer pointers are allocated when setting up the libusb transfer structure to support the maximum number of frames the kernel can handle.
* MFC r303893, r303894:pfg2016-09-082-3/+3
| | | | | | | | misc replacements of comma with semicolon when pertinent. Uses of commas instead of a semicolons can easily go undetected. The comma can serve as a statement separator but this shouldn't be abused when statements are meant to be standalone.
* MFC r303889:pfg2016-09-081-1/+1
| | | | | | | | libc/rpc: replace comma with semicolon when pertinent. Uses of commas instead of a semicolons can easily go undetected. The comma can serve as a statement separator but this shouldn't be abused when statements are meant to be standalone.
* MFC r303891, r303892:pfg2016-09-0812-30/+30
| | | | | | | | sys: replace comma with semicolon when pertinent. Uses of commas instead of a semicolons can easily go undetected. The comma can serve as a statement separator but this shouldn't be abused when statements are meant to be standalone.
* MFC r281499:hselasky2016-09-083-3/+3
| | | | | | | | | | | Modify the return value of the uhci/ehci/xhci PCI probe routines to 'BUS_PROBE_DEFAULT'. This allows bhyve's 'ppt' driver to claim ownership of the device and pass it through to the guest. In the common case where there are no competing drivers for USB controllers this change is a no-op. PR: 212256
* MFC r305413ache2016-09-081-4/+10
| | | | Fix error handling.
* MFC r305406,r305409,r305412ache2016-09-081-9/+25
| | | | | | | | | | | | | 1) Fix errors handling. 2) Prevent out of bounds access to ws[-1] (passed buffer) which happens when the first mb sequence is incomplete and there are not enougn chars in the read buffer. ws[-1] may lead to memory faults or false results, in case the memory here contains '\n'. 3) Fix n == 1 case. Here should be no physical read (fill buffer) attempt (we read n - 1 chars with the room for NUL, see fgets()), and no NULL return.
* MFC r305154: directory(3): Deprecate readdir_r(). Clarify dirent buffers.jilles2016-09-071-2/+24
| | | | | | | | | | | | | | | In existing implementations including FreeBSD, there is no reason to use readdir_r() in the common case where potentially multiple threads each list their own directory. Code using readdir() is simpler. What's more, although readdir_r() can safely be used on FreeBSD because NAME_MAX is forced to 255, it cannot be used safely on systems where {NAME_MAX} is not fixed. As a concrete example, FAT/NTFS filenames can be up to 255 UTF-16 code units long, which can be up to 765 UTF-8 bytes. Deprecating readdir_r() in POSIX has been proposed in http://www.austingroupbugs.net/view.php?id=696 and glibc wants to deprecate it as well.
OpenPOWER on IntegriCloud