summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r302346:markj2016-07-161-1/+8
| | | | Ensure that spinlock sections are balanced even after a panic.
* MFC r301090:markj2016-07-161-0/+3
| | | | mkimg: Indicate that input file pages are unlikely to be reused.
* MFC r301212:markj2016-07-161-0/+2
| | | | Reset the page busy lock state after failing to insert into the object.
* MFC r301210:markj2016-07-161-6/+2
| | | | Don't preserve the page's object linkage in vm_page_insert_after().
* MFC r302507:markj2016-07-151-1/+1
| | | | Avoid truncating the return value of DTrace predicates.
* MFC r297187sbruno2016-07-152-7/+53
| | | | | | | | Support checksum offloading for TCP/IPV6 and UDP/IPV6. Support SCTP checksum offloading for SCTP/IPV6. Support SCTP checksum offloading on all controllers except 82575. Differential Revision: https://reviews.freebsd.org/D7215
* MFC 302541,302605sephe2016-07-151-57/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 302541 hyperv/stor: Fix the INQUIRY checks Don't check the area that the host has not filled. PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209443 PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210425 Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: sephe, Dexuan Cui <decui microsoft com> Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6955 302605 hyperv/stor: Save the response status and xfer length properly. The current command response handling discards status and xfer length unconditionally, so that all of the commands would be considered successful, even if errors happened. When errors really happens, this causes all kinds of wiredness, since the buffer will not be filled on the host side and sense data will be ignored. Most of the time, errors do not happen, however, error does happen for the request sent immediately after the disk resizing. Discarding the SCSI status (SCSI_STATUS_CHECK_COND) and sense data (capacity changes) prevents the disk resizing from working properly. This commit saves the response status and xfer length properly for later use. Submitted by: Dexuan Cui <decui microsoft com> Noticed by: sephe Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7181
* MFC changes relating to warnings in opensolaris-derived librariesasomers2016-07-147-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r257592 MFC r257657 MFC r257638 MFC r257647 MFC r302141 r257592 | sbruno | 2013-11-03 14:05:44 -0700 (Sun, 03 Nov 2013) | 8 lines This library uses macros to define fprintf behvavior for several object types The compiler will see the non-string literal arguments to the fprintf calls and omit warnings for them. Quiese these warnings in contrib code: cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ARENDER(pctl, nvlist_array, nvl, name, val, nelem); r257657 | sbruno | 2013-11-04 14:32:07 -0700 (Mon, 04 Nov 2013) | 5 lines Quiesce warning assigning to void * from const ctf_header_t * by explicity casting to void * before assignment. Submitted as Illumos issue 4287 r257638 | sbruno | 2013-11-04 09:15:43 -0700 (Mon, 04 Nov 2013) | 6 lines Quiesce warning regarding %llf which has no effect. Submitted as illumos issue #4284 Reviewed by: delphij r257647 | sbruno | 2013-11-04 12:32:35 -0700 (Mon, 04 Nov 2013) | 4 lines spelling in comments fixup Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> r302141 | asomers | 2016-06-23 09:02:57 -0600 (Thu, 23 Jun 2016) | 14 lines Raise the WARNS level in cddl/lib cddl/lib/libavl/Makefile cddl/lib/libctf/Makefile cddl/lib/libnvpair/Makefile cddl/lib/libumem/Makefile cddl/lib/libuutil/Makefile Increase WARNS to the highest working level for each of these libraries Sponsored by: Spectra Logic Corp
* MFH: r297023julian2016-07-142-6/+28
| | | | | | | Add the ability to print out the module specific information in likely formats. Among other things this gives us the ability to find out the syscall number of a dynamically loaded syscall that has a dynamicly allocated vector number. Sponsored by: Panzura inc.
* MFC r302402: Fix ahci(4) driver attach to controller with 32 ports.mav2016-07-142-4/+4
| | | | | | | Incorrect sign expansion in variables that supposed to be a bit fields caused infinite loop. Fixing this allows system properly detect maximal possible 32 devices configured on AHCI HBA of BHyVe. That case did not happen in a wild before due to lack of hardware AHCI HBAs with 32 ports.
* MFC r302476:pfg2016-07-132-2/+2
| | | | | | ng_mppc(4): basic readability cleanups. No functional change.
* MFC r300134: move zfsctl_freebsd_root_lookup right next toavg2016-07-131-48/+44
| | | | zfsctl_root_lookup
* MFC r300130: zfsctl_freebsd_root_lookup: gfs_vop_lookup may return aavg2016-07-131-8/+14
| | | | doomed vnode
* MFC r299951: do not destroy 'snapdir' when it becomes inactiveavg2016-07-131-35/+5
|
* MFC r299949: try to recycle "snap" vnodes as soon as possibleavg2016-07-131-5/+15
|
* MFC r299947: fix locking in zfsctl_root_lookupavg2016-07-131-10/+20
|
* MFC r299946: gfs_lookup_dot() does not have to acquire any locksavg2016-07-132-14/+13
|
* MFC r299945: avoid deadlock between zfsctl_snapdir_lookup andavg2016-07-131-2/+11
| | | | zfsctl_snapshot_reclaim
* MFC r299940: fix a vnode reference leak caused by illumos compat traverse()avg2016-07-132-9/+8
|
* MFC r299914: zfsctl_ops_snapshot: remove methods should never be calledavg2016-07-131-96/+0
|
* MFC r301273: zfs_root: fix a potential root vnode reference leakavg2016-07-131-4/+6
|
* MFC r299908,300131,301275: zfs: set VROOT / VV_ROOT consistently and inavg2016-07-133-13/+4
| | | | a single place
* MFC r299902,299938: mount_snapshot: consolidate all error handlingavg2016-07-132-17/+22
|
* MFC r299906,301870: add zfs_vptocnp with special handling for snapshotsavg2016-07-131-0/+48
| | | | | | | under .zfs Note that the changed is adjusted for the lack of LK_VNHELD in this branch.
* MFC r300145: add vop_print methods to vnode operatios of various zfsctlavg2016-07-131-0/+72
| | | | node types
* MFC r301873: l2arc: reset b_tmp_cdata to NULL in the case of unset b_daddravg2016-07-131-0/+1
|
* MFC r302123: fix deadlock-prone code in getzfsvfs()avg2016-07-131-8/+11
|
* MFC r299900: zfsctl: fix several problems with reference countsavg2016-07-133-9/+1
| | | | PR: 207464
* MFC r298105: zfs: enable vn_io_fault supportavg2016-07-133-1/+49
|
* MFC r300133: zfsctl_common_fid: remove redundant assignmentavg2016-07-131-2/+0
|
* MFC r300132: zfsctl: tighten assertion and remove unused definitionavg2016-07-132-2/+1
|
* MFC r299913: dounmount: do not call mountcheckdirs() for mounts with MNT_IGNOREavg2016-07-131-2/+4
|
* MFC r302265, r302382smh2016-07-132-12/+93
| | | | | | | Allow ZFS ARC min / max to be tuned at runtime Relnotes: YES Sponsored by: Multiplay
* MFC r302362,r302363,r302364,r302365,r302373:ngie2016-07-137-24/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r302362: Fix gcc warnings - Remove -Wunused-but-set-variable (newcpu) - Always return VMEXIT_CONTINUE as the code always set retval to that value. r302363: Fix gcc warnings Put cfl/prdt under AHCI_DEBUG #defines as they are only used in those cases. r302364: Fix gcc warnings Add `WRAPPED_CTASSERT` macro by annotating CTASSERTs with __unused to deal with -Wunused-local-typedefs warnings from gcc 4.8+. All other compilers (clang, etc) use CTASSERT as-is. A more generic solution for this issue will be proposed after ^/stable/11 is forked. Consolidate all CTASSERTs under one block instead of inlining them in functions. r302365: Fix gcc warnings Remove -Wunused-but-set-variable (`error`). Cast calls with `(void)` to note that the return value is explicitly ignored. r302373: Fix CTASSERT issue in a more clean way - Replace all CTASSERT macro instances with static_assert's. - Remove the WRAPPED_CTASSERT macro; it's now an unnecessary obfuscation. - Localize all static_assert's to the structures being tested. - Sort some headers per-style(9).
* MFC r302206asomers2016-07-122-0/+2
| | | | | | | | | | | | Skip lastcomm and sa tests on unsupported architectures usr.bin/lastcom/tests/Makefile usr.sbin/sa/tests/Makefile Set allow_architectures appropriately. These tests depend on golden files that must be generated for each architecture, and haven't yet been generated for all of them. PR: 204154
* MFC r302174asomers2016-07-121-9/+9
| | | | | | | | | Fix "sysctl vm.vmtotal" output on machines with > 2TB virtual memory sbin/sysctl/sysctl.c Fix integer overflows in printf format strings PR: 199673
* MFC r302036asomers2016-07-121-2/+2
| | | | | | | Skip sys/acl tests on systems lacking perl tests/sys/acl/Makefile add perl to the required_programs for all tests in this directory
* MFC r301967asomers2016-07-121-3/+3
| | | | | | | | Fix usr.sbin/rpcbind ATF tests on 32-bit platforms usr.sbin/rpcbind/tests/addrmerge_test.c Fix some sizeof calculations that work only by luck on 64-bit platforms.
* MFC r301874asomers2016-07-121-0/+27
| | | | | | | Fix usr.sbin/extattr testcases on tmpfs Skip the usr.sbin/extattr testscases if $TMPDIR is tmpfs, which doesn't support extended attributes
* MFC r300356asomers2016-07-113-6/+11
| | | | | | | | | | | | | | | | | | | | | | | Better document security_show_{success,info,badconfig} in /etc/periodic.conf periodic(8) already handles the security_show_{success,info,badconfig} variables correctly. However, those variables aren't explicitly set in /etc/defaults/periodic.conf or anywhere else, which suggests to the user that they shouldn't be used. etc/defaults/periodic.conf Explicitly set defaults for security_show_{success,info,badconfig} usr.sbin/periodic/periodic.sh Update usage string usr.sbin/periodic/periodic.8 Minor man page updates One thing I'm _not_ doing is recommending setting security_output to /var/log/security.log or adding that file to /etc/newsyslog.conf, because periodic(8) would create it with default permissions, usually 644, and that's probably a bad idea.
* MFC r302327:ngie2016-07-112-56/+56
| | | | | | | | | Fix .../usr.bin/lastcomm/legacy_test:main on i386 The time in the output files was ahead by 3 hours on i386. Fix the incorrect offset. PR: 210329
* MFC r302326:ngie2016-07-111-1/+1
| | | | | | | | | Output the diffs to standard error when comparing the expected vs the obtained output from lastcomm instead of just printing out a summary, e.g. "they differed". This will make failures with results more apparent when running kyua debug, kyua report-html, etc.
* MFC r302336:hselasky2016-07-111-16/+18
| | | | | | | Fix interrupt loop when switching from USB device to USB host mode by clearing all endpoint interrupt bits. PR: 210736
* MFC r302306:hselasky2016-07-111-1/+4
| | | | | | | | Fix detection of USB device disconnects in USB host mode when the USB device is connected directly to the USB port of the DWC OTG, in this case a RPI-zero. PR: 210695
* MFC r302221,302222:delphij2016-07-1130-328/+765
| | | | | | MFV r302218: file 5.28. Relnotes: yes
* MFC r302534:delphij2016-07-111-1/+1
| | | | | | | | Allow - in distribution names. This is needed for freebsd-update to work with 11.0+, where the debugging symbols use a new naming scheme for release distribution files. Errata candidate.
* MFC r302236:kib2016-07-101-4/+11
| | | | | | | | Handle the vm_fault() handler race with the vm_object_collapse() sleepable scan. MFC r302317: Change type of the 'dead' variable to boolean.
* MFC r301871:ngie2016-07-081-0/+1
| | | | | | | | | | Add missing break in lock_partialfilelock(..) with NFS_RESERR This will help ensure that the right error is trickled up when the function is called if the lock status is NFS_RESERR Tested with: fsx; svn info/svnversion (uses bdb locking); locktests from Bull http://nfsv4.bullopensource.org/tools/tests/locktest.php CID: 1008161, 1304956
* MFC r301605:ngie2016-07-081-1/+1
| | | | | | | | | | | | | | Bounds check rpcbs_rmtcall(..) to ensure rtype is less than RPCBVERS_STAT Not returning if rtype == RPCBVERS_STAT will cause us to overrun the inf array, as it's defined to be exactly RPCBVERS_STAT elements in rpcb_prot.x: > include/rpc/rpcb_prot.x:typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT]; The proposed change also matches the rest of the rtype upper bound checks in the file, so the original change was likely a typo. CID: 1007567
* MFC r301800:ngie2016-07-081-8/+3
| | | | | | | | | | | | | Deobfuscate cleanup path in clnt_bck_create(..) Similar to r300836, cl and ct will always be non-NULL as they're allocated using the mem_alloc routines, which always use `malloc(..., M_WAITOK)`. Deobfuscating the cleanup path fixes a leak where if cl was NULL and ct was not, ct would not be free'd, and also removes a duplicate test for cl not being NULL. CID: 1229999
OpenPOWER on IntegriCloud