summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r323918: MFV r323917: 8648 Fix range locking in ZIL commit codepathavg2017-10-022-4/+13
| | | | This fixes a problem introduced in r320496, MFC of r308782.
* MFC r323873, r324081: Unprotected modification of ng_iface(4)eugen2017-10-011-4/+34
| | | | | | | | | | | private data leads to kernel panic. Fix a race with per-node read-mostly lock and refcounting for a hook. PR: 220076 Tested by: peixoto.cassiano Approved by: mav (mentor) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D12435
* MFC r323522: slightly simplify zfs_vptocnpavg2017-10-011-8/+1
|
* MFC r322635:ngie2017-09-301-12/+5
| | | | | | | | | | | | Fix WARNS - Remove ad hoc inet_ntoa prototype declaration; it's already handled by the included headers. - De-K&Rify the function prototypes for eachres_whoami(..), eachres_getfile(..), and main(..). PR: 71667 Tested with: clang (5.0), gcc (4.2.1, 5)
* Regenerate src.conf(5) per r324140ngie2017-09-301-1/+7
|
* MFC r321952:ngie2017-09-301-0/+4
| | | | | Allowing MK_NLS_CATALOGS to be enabled if MK_NLS == no doesn't make a whole lot of sense. Anchor MK_NLS_CATALOGS being enabled off of MK_NLS.
* MFC r322951:ngie2017-09-304-8/+0
| | | | | | | | | | | | | Respect MK_TCSH with build-tools and native-xtools This helps reduce the WORLDTMP footprint slightly. Based on a patch I submitted 5 years ago to GNATS. PR: 174051 Relnotes: yes (anyone who cross-builds with MK_TCSH=yes will run into build failures if the host doesn't have tcsh(1)) Reminded by: Fabian Keil <fk@fabiankeil.de>
* MFC r314601:ngie2017-09-301-1/+1
| | | | | | | | r314601 (by des): Re-apply part of r311585 which was inadvertantly reverted in the upgrade to 7.3p1. The other part (which adds -DLIBWRAP to sshd's CFLAGS) is still in place.
* MFC r322441:ngie2017-09-301-1/+1
| | | | Delete trailing whitespace
* MFC r321845:ngie2017-09-301-2/+7
| | | | Standardize on SRCTOP instead of .CURDIR-relative paths
* MFC 323631: Add an -a flag to getconf.jhb2017-09-306-8/+154
| | | | | | | When -a is specified, the name and value of all system or path configuration values is reported to standard output. Sponsored by: Chelsio Communications
* MFC r323864kp2017-09-301-0/+1
| | | | | | | | | | bridge: Set module version This ensures that the loader will not load the module if it's also built in to the kernel. PR: 220860 Submitted by: Eugene Grosbein <eugen@freebsd.org>
* MFC r323824davidcs2017-09-262-4/+19
| | | | | | | | | | | | | | 1. ql_hw.c: In ql_hw_send() return EINVAL when TSO framelength exceeds max supported length by HW.(davidcs) 2. ql_os.c: In qla_send() call bus_dmamap_unload before freeing mbuf or recreating dmmamap.(davidcs) In qla_fp_taskqueue() Add additional checks for IFF_DRV_RUNNING Fix qla_clear_tx_buf() call bus_dmamap_sync() before freeing mbuf. Submitted by: David.Bachu@netapp.com
* MFC r323782davidcs2017-09-262-1/+10
| | | | Add sysctl "enable_minidump" to turn on/off automatic minidump retrieval
* MFC r323781davidcs2017-09-261-34/+34
| | | | Update minidump template for version 5.4.66
* MFC r323480: zfs_get_vfs: reference a requested filesystem instead of ↵avg2017-09-261-10/+6
| | | | | | vfs_busy-ing it Sponsored by: Panzura
* MFC r323479,r323491: zfs: tighten debug versions of ZTOV and VTOZavg2017-09-263-5/+7
| | | | Sponsored by: Panzura
* MFC: r323840jkim2017-09-251-4/+0
| | | | Remove an ancient comment about the existence of READ(16)/WRITE(16) for MMC.
* MFC r323924:gjb2017-09-221-10/+0
| | | | | | | | | Revert r323812 from release/tools/arm.subr, which has broken the build on arm/armv6 images. Pointyhat: gjb (myself) MFC note: releng/10.4 has broken because of this Sponsored by: The FreeBSD Foundation
* - Akin r302691 in head, synchronize the build stripping for the disc1marius2017-09-221-3/+6
| | | | | | | | | | | | | image with that of the bootonly image (but similarly modulo games and groff(1)) as the amd64 disc1 image is overflowing. This also removes the defunct WITHOUT_ATF. - Remove the misspelled WITHOUT_INSTALLIB (also in place with correct spelling, i. e. WITHOUT_INSTALLLIB) from the bootonly image build stripping. This is a direct commit to stable/10 as the corresponding knobs have different names in head and counterparts to e. g. MK_DEBUG_FILES and MK_TESTS default to off in stable/10 in the first place.
* MFC 323025: Read max_stack_flags from correct object.jhb2017-09-211-1/+1
| | | | | | 'obj' is not initialized here. Sponsored by: DARPA / AFRL
* MFC: r285215marius2017-09-212-28/+100
| | | | | | | | | | | | | | | | | | | | | | | remove _NORMAL flag which isn't suppose to be used w/ _alloc_ctx... MFC: r285289 address an issue where consumers, like IPsec, can reuse the same session in multiple threads w/o locking.. There was a single fpu context shared per session, if multiple threads were using the session, and both migrated away, they could corrupt each other's fpu context... MFC: r285297 upon further examination, it turns out that _unregister_all already provides the guarantee that no threads will be in the _newsession code.. MFC: r298332 aesni(4): Initialize error before use [1] Reported by: Coverity [1] CID: 1331554 [1]
* MFC: r275751marius2017-09-2114-16/+66
| | | | | Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). A _NEW flag passed to _init_flags() to avoid check for double-init.
* MFC r323715:cy2017-09-211-1/+1
| | | | Don't use an apostrophe in a possesive pronoun.
* MFC: r320916marius2017-09-201-1/+1
| | | | Reset unsupported SFP tuneable back to original entry name.
* Unbreak netmap(4) support in ixgbe(4) after r315333:marius2017-09-203-57/+17
| | | | | | | | | | | | | | | | | | | | - Both ixgbe_netmap.c and ixv_netmap.c assumed a netmap(4) driver newer than what's actually in stable/10. - Additionally, at the bottom line ixv_netmap.c did exactly the same as ixgbe_netmap.c, i. e. used IXGBE_TDH() as appropriate for PFs only instead of IXGBE_VFTDH() and tried to configure CRC stripping although the corresponding registers aren't available to VFs in the first place. With these changes, the netmap(4) support in ixgbe(4) is in line again with the code in sys/dev/netmap/ixgbe_netmap.h as of r295008. Breakage reported by: Slawa Olhovchenkov Just like r315333 that never existed in head, this is a direct commit to stable/10. However, ixgbe(4) in head has a related bug in that it assumes a netmap(4) driver API older than what's in head and also does the wrong things for VFs as it uses the PF-only ixgbe_netmap.c for both PFs and VFs in the first place.
* MFC 322270: Fix a NULL pointer dereference in mly_user_command().jhb2017-09-201-4/+2
| | | | | | | | | | | | If mly_user_command fails to allocate a command slot it jumps to an 'out' label used for error handling. The error handling code checks for a data buffer in 'mc->mc_data' to free before checking if 'mc' is NULL. Fix by just returning directly if we fail to allocate a command and only using the 'out' label for subsequent errors when there is actual cleanup to perform. PR: 217747 Reported by: PVS-Studio
* MFC r323812:gjb2017-09-202-0/+19
| | | | | | | | | | Bootstrap etcupdate(8) and mergemaster(8) databases when creating virtual machine images and embedded images, similar to what is done when extracting base.txz to the target root filesystem in a new installation. Approved by: re (marius, insta-MFC) Sponsored by: The FreeBSD Foundation
* MFC r322530 and r323220:hselasky2017-09-202-1/+3
| | | | | | | | Add new USB quirk(s). PR: 221775 PR: 221328 Sponsored by: Mellanox Technologies
* MFC r323540: jedec_ts: add many more devices from various vendorsavg2017-09-201-30/+124
| | | | | | | The new IDs are taken from the hardware to which I have access and from open datasheets. Also, the hardware probing is moved to the device probe method.
* MFC r323482: zfs_ctldir: remove obsolete / bogus ARGSUSED lint directivesavg2017-09-191-6/+0
| | | | None of the tagged functions had unused parameters.
* MFC r322241: MFV r322240: 8491 uberblock on-disk padding to reserve space ↵avg2017-09-191-0/+7
| | | | | | | | | | | | | | | | | | | | | | for smoothly merging zpool checkpoint & MMP in ZFS illumos/illumos-gate@79c2b812ee2010ebf20fdd92dc5f06b59000a94c https://github.com/illumos/illumos-gate/commit/79c2b812ee2010ebf20fdd92dc5f06b59000a94c https://www.illumos.org/issues/8491 The zpool checkpoint feature in DxOS added a new field in the uberblock. The Multi-Modifier Protection Pull Request from ZoL adds two new fields in the uberblock (Reference: https://github.com/zfsonlinux/zfs/pull/6279). As these two changes come from two different sources and once upstreamed and deployed will introduce an incompatibility with each other we want to upstream a change that will reserve the padding for both of them so integration goes smoothly and everyone gets both features. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Olaf Faaland <faaland1@llnl.gov> Approved by: Gordon Ross <gwr@nexenta.com> Author: Serapheim Dimitropoulos <serapheim@delphix.com>
* MFC r322228: MFV r322227: 8377 Panic in bookmark deletionavg2017-09-191-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | illumos/illumos-gate@42418f9e73f0d007aa87675ecc206c26fc8e073e https://github.com/illumos/illumos-gate/commit/42418f9e73f0d007aa87675ecc206c26fc8e073e https://www.illumos.org/issues/8377 The problem is that when dsl_bookmark_destroy_check() is executed from open context (the pre-check), it fills in dbda_success based on the existence of the bookmark. But the bookmark (or containing filesystem as in this case) can be destroyed before we get to syncing context. When we re-run dsl_bookmark_destroy_check() in syncing context, it will not add the deleted bookmark to dbda_success, intending for dsl_bookmark_destroy_sync() to not process it. But because the bookmark is still in dbda_success from the open-context call, we do try to destroy it. The fix is that dsl_bookmark_destroy_check() should not modify dbda_success when called from open context. Reviewed by: Paul Dagnelie <pcd@delphix.com> Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Matthew Ahrens <mahrens@delphix.com>
* MFC r321471: spa_import_rootpool should be able to handle an imported root poolavg2017-09-191-0/+10
| | | | | | | That is required to support reboot -r with a new root filesystem being on an already imported pool. PR: 210721
* MFC r320352: zfs: port vdev_file part of illumos change 3306avg2017-09-193-20/+61
| | | | | | | | | | | | | | | | | | | | | | | 3306 zdb should be able to issue reads in parallel illumos/illumos-gate/31d7e8fa33fae995f558673adb22641b5aa8b6e1 https://www.illumos.org/issues/3306 The upstream change was made before we started to import upstream commits individually. It was imported into the illumos vendor area as r242733. That commit was MFV-ed in r260138, but as the commit message says vdev_file.c was left intact. This commit actually implements the parallel I/O for vdev_file using a taskqueue with multiple thread. This implementation does not depend on the illumos or FreeBSD bio interface at all, but uses zio_t to pass around all the relevent data. So, the code looks a bit different from the upstream. This commit also incorporates ZoL commit zfsonlinux/zfs/bc25c9325b0e5ced897b9820dad239539d561ec9 that fixed https://github.com/zfsonlinux/zfs/issues/2270 We need to use a dedicated taskqueue for exactly the same reason as ZoL as we do not implement TASKQ_DYNAMIC.
* MFC r320151: remove bogus declaration of malloc from tcp_wrappersavg2017-09-191-4/+0
| | | | | | The declaration was already inactive when INET6 was enabled and it causes a build error in the other case because of a conflict with the correct definition in stdlib.h.
* MFC r320266: jedec_ts: add support for devices manufactured by IDTavg2017-09-191-0/+7
| | | | | Full manufacturer name is Integrated Device Technology, Inc. Supported devices include TSE2002B3C and TS3000B3A.
* MFV r320195: bhyveload: correctly query size of disksavg2017-09-191-3/+5
| | | | | | | | | On FreeBSD fstat(2) works fine for querying sizes of plain files, but not so much for character devices. So, use DIOCGMEDIASIZE to try to get the correct size for disks and disk-like devices (e.g. zvols). PR: 220186
* MFV r318962: Allow PROBE_SPINUP to fail in CAM ATA transportavg2017-09-191-0/+10
| | | | | | | | | | | | | | The motivation for this is two-fold. 1. Some old WD SATA disks may appear as if they need to be spun up when they are already spinning. Those disks would respond with an error to the spin-up request. 2. Even if we really fail to spin up the disk, we still can try to proceed to the subsequent phases. If we fail later on, then no difference. Otherwise we get a chance to communicate with the disk which is better than completely ignoring it, because a user can try to recover the disk.
* MFC r319746,r319747,r319769: 8269 dtrace stddev aggregation is normalized ↵avg2017-09-193-0/+51
| | | | | | | | | | | | | | | | | | | | | | | incorrectly illumos/illumos-gate@79809f9cf402f130667349b2d4007ecd65d63c6f https://github.com/illumos/illumos-gate/commit/79809f9cf402f130667349b2d4007ecd65d63c6f https://www.illumos.org/issues/8269 It seems that currently normalization of stddev aggregation is done incorrectly. We divide both the sum of values and the sum of their squares by the normalization factor. But we should divide the sum of squares by the normalization factor squared to scale the original values properly. FreeBSD note: the actual change was committed in r316853, this commit adds the test files and record merge information. Reviewed by: Bryan Cantrill <bryan@joyent.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Andriy Gapon <avg@FreeBSD.org> Sponsored by: Panzura
* MFC r319212: fix indentationavg2017-09-191-1/+1
|
* - Prune stale entries from 10.3-RELEASE.gjb2017-09-184-357/+15
| | | | | | | - Prune entries from errata.xml and security.xml. - Update versions to reflect 10.4-RELEASE. Sponsored by: The FreeBSD Foundation
* MFC r323478:cy2017-09-181-4/+4
| | | | Improve the wording of a comment describing why EAGAIN is the error code.
* MFC r322112:cy2017-09-181-1/+1
| | | | | | krb5_err.h is generated from a .et file in kerberos5/lib/libkrb5. As kerberos5/lib/krb5 include files are already referenced it makes no sense to generate it again here.
* MFC r323160:bapt2017-09-171-12/+141
| | | | Update pci_vendors to 2017-09-01
* MFC: r322669marius2017-09-171-1/+1
| | | | | | | In fetch_resolve() if the port number or service name is included in the host argument (e. g. "www.freebsd.org:443"), correctly set the service pointer accordingly. Previously, the service pointer was set to the separator instead, causing getaddrinfo(3) to fail.
* - Reset stable/10 back to -PRERELEASE status now that releng/10.4marius2017-09-154-4/+4
| | | | | | | | | has been branched. - Update __FreeBSD_version to reflect the new -STABLE branch. - Switch the pkg(8) configuration for the default installation and the DVD image creation back to the latest set, i. e. revert r322737. Approved by: re (implicit)
* Document r301772, Dummynet AQM imported to the base system.gjb2017-09-141-0/+4
| | | | | | Submitted by: truckman Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* Document r316348, pw(8) respecting pw.conf(5).gjb2017-09-141-0/+7
| | | | | | | | Document r322793, GEOM_JOURNAL flush_queue handling fixed. Submitted by: eugen Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* Fix an indentation mistake that snuck in with r323590.gjb2017-09-141-1/+1
| | | | | Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud