summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r294695:pfg2016-01-281-7/+5
| | | | | | | | | | | | | ext2fs: passthrough any extra timestamps to the dinode struct. In general we don't trust any of the extended timestamps unless the EXT2F_ROCOMPAT_EXTRA_ISIZE feature is set. However, in the case where we freshly allocated a new inode the information is valid and it is better to pass it along instead of leaving the value undefined. This should have no practical effect but should reduce the amount of garbage if EXT2F_ROCOMPAT_EXTRA_ISIZE is set, like in cases where the filesystem is converted from ext3 to ext4.
* MFC r294530: Add STB_GNU_UNIQUE symbol binding definitionemaste2016-01-281-2/+3
| | | | | | | | | Red Hat created STB_GNU_UNIQUE to handle certain special cases relating to dynamically loading C++ DSOs[1]. We don't (currently) have support for STB_GNU_UNIQUE, but ought to reserve the value in ELFNN_ST_BIND. This will also be used by an upcoming ELF Tool Chain import.
* MFC r294749:jamie2016-01-281-3/+3
| | | | | | | | Allow the (old rc-style) exec_afterstart jail parameters to start numbering at 0, like exec_prestart and the others do. Make param0 optional, i.e. still look for param1. PR: 142973
* MFC r294565: sem: Don't free nameinfo that is still in list when open()jilles2016-01-272-1/+38
| | | | | | | | | | | fails. This bug could be reproduced easily by calling sem_open() with O_CREAT | O_EXCL on a semaphore that is already open in the process. The struct sem_nameinfo would be freed while still in sem_list and later calls to sem_open() or sem_close() could access freed memory. PR: 206396
* - Add an entry for the SIIG Cyber 2SP1 PCIe adapter, which is basedmarius2016-01-271-20/+80
| | | | | | | | | | | | on an Oxford Semiconductor OX16PCI954 but uses only two ports and a non-default clock rate. [1] - Add entries for the more prominent members of the Digi International Neo series, which are based on Exar PCI chips. Tested by: Patrick Powell - Mark some unused parameters as such. - Fix style/whitespace PR: 176407 [1]
* MFC: r294362, r294414, r294753marius2016-01-273-50/+130
| | | | | | | | | | | | - Fix tty_drain() and, thus, TIOCDRAIN of the current tty(4) incarnation to actually wait until the TX FIFOs of UARTs have be drained before returning. This is done by bringing the equivalent of the TS_BUSY flag found in the previous implementation back in an ABI-preserving way. Reported and tested by: Patrick Powell - Make the code consistent with itself style-wise and bring it closer to style(9). - Mark unused arguments as such. - Make the ttystates table const.
* Sync the e1000 drivers with what's in head as of r294327, modulo partsmarius2016-01-2744-655/+710
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that don't apply to stable/10 (driver API, if_inc_counter(), RSS changes etc.) and modulo r287465 (which reportedly breaks igb(4)), i. e. assorted fixes and improvements only: o MFC r267385 (partial): - Don't compare bus_dma map pointers for static DMA allocations against NULL to determine if bus_dmamap_unload() or bus_dmamem_free() should be called. Instead, check the associated bus and virtual addresses. - Don't clear static DMA maps to NULL. o MFC r284933: Delete the refernce to VLAN handling being disabled by default. This is no longer the case. [1] o MFC r285639: Add an adapter CORE lock in the DDB hook em_dump_queue to avoid WITNESS panic in em_init_locked() while debugging. o MFC r285879: - Remove unused txd_saved. - Intialize txd_upper, txd_lower and txd_used at declaration. o MFC r286162: Free mbufs when busdma loading fails. o MFC r286829: Add capability to disable CRC stripping as it breaks IPMI/BMC capabilities on certain adatpers. [2] o MFC r286831: [3] - Increase EM_MAX_SCATTER to 64 such that the size of em_xmit():: segs[EM_MAX_SCATTER] doesn't get overrun by things like NFS that can and do shove more than 32 segs when being used with em(4) and TSO4. - Update tso handling code in em_xmit() with update from jhb@ - Set if_hw_tsomax, if_hw_tsomaxsegcount and if_hw_tsomaxsegsize to appropriate values. - Define a TSO workaround "magic" number of 4 that is used to avoid an alignment issue in hardware. - Change a couple of integer values that were used as booleans to actual bool types. - Ensure that em_enable_intr() enables the appropriate mask of interrupts and not just a hardcoded define of values. o MFC r286832: e1000/if_lem.c bump to 1.1.0 o MFC r286833: Bump all copywrite dates to 2015. o MFC r287112: Style/whitespace cleanup in shared/common code. o MFC r293331: - Switch em(4) to the extended RX descriptor format. - Split rxbuffer and txbuffer apart to support the new RX descriptor format structures. Move rxbuffer manipulation to em_setup_rxdesc() to unify the new behavior changes. - Add a RSSKEYLEN macro for help in generating the RSSKEY data structures in the card. - Change em_receive_checksum() to process the new rxdescriptor format status bit. o MFC r293332: Disable the reuse of checksum offload context descriptors in the case of multiple queues in em(4). Document errata in the code. o MFC r293854: Given that em(4), lem(4) and igb(4) hardware doesn't require the alignment guarantees provided by m_defrag(9), use m_collapse(9) instead for performance reasons. While at it, sanitize the statistics softc members, i. e. retire unused ones and add SYSCTL nodes missing for actually used ones. PR: 118693 [1], 161277 [2], 195078 [3], 199174 [3], 200221 [3]
* MFC 283933: Add commentsdteske2016-01-271-3/+3
| | | | r283933: Indicate where the flag for later abort" originates.
* MFC r294319:hselasky2016-01-271-14/+11
| | | | | | | | Fix an issue where the network adapter could be left in down state after changing the HW LRO sysctl when previously in up state. Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4941
* MFC r294318:hselasky2016-01-271-0/+5
| | | | | | | Add clarifying comment about CQE zipping. Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4940
* MFC r294317:hselasky2016-01-271-3/+6
| | | | | | | Declare local variables at top of function. Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4939
* MFC r294314:hselasky2016-01-273-36/+103
| | | | | | | Allow RX and TX pause frames to be set through ifconfig. Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4817
* Document SA-16:08, SA-16:09, SA-16:10.gjb2016-01-271-0/+15
| | | | Sponsored by: The FreeBSD Foundation
* MFC r294694:tuexen2016-01-271-2/+7
| | | | sctp_sendx() needs to provide the assoc_id back.
* MFC r294688:tuexen2016-01-271-0/+7
| | | | sctp_sendv() needs to fill in the association id on return.
* MFC r294900:delphij2016-01-273-3/+9
| | | | | | | | | | | | | Implement AT_SECURE properly. AT_SECURE auxv entry has been added to the Linux 2.5 kernel to pass a boolean flag indicating whether secure mode should be enabled. 1 means that the program has changes its credentials during the execution. Being exported AT_SECURE used by glibc issetugid() call. Submitted by: imp, dchagin Security: FreeBSD-SA-16:10.linux Security: CVE-2016-1883
* MFC 293617,294669: Minor fixesdteske2016-01-272-2/+1
| | | | | r293617: Fix improper duration for f_dialog_pause() API r294669: Fix a typo in a comment
* MFC r289797: dpv(1) merged to stable/10 before release/10.2.0dteske2016-01-271-3/+3
|
* MFC r293868: Default to en_US.ISO8859-1 if no localedteske2016-01-272-0/+9
|
* MFC r294557:sephe2016-01-271-3/+85
| | | | | | | | | | | | | | | | | | | hyperv/stor: Verify returned inquiry data before further dispatching Windows 10 and Window 2016 will return all zero inquiry data for non-existing slots. If we dispatched them, then a lot of useless (0 sized) disks would be created. So we verify the returned inquiry data (valid type, non-empty vendor/product/revision etc.), before further dispatching. Minor white space cleanup and wording fix. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: adrian, sephe, Jun Su <junsu microsoft com> Approved by: adrian (mentor) Modified by: sephe Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4928
* MFC 294548-294549,294556,294684: Add watch scriptsdteske2016-01-274-1/+939
| | | | | | | r294548: Add scripts for watching common entry points. r294549: Fix bad title on script (caused by copy/paste). r294556: fbt -> syscall; fbt names changed to be sys_* r294684: Bump copyright for change from fbt to syscall
* MFC r294200: [PR 206224] bv_cnt is sometimes examined without holding therpokala2016-01-261-0/+5
| | | | | | | | | bufobj lock Add locking around access to bv_cnt which is currently being done unlocked Approved by: jhb Sponsored by: Panasas, Inc.
* MFC: r256940jkim2016-01-262-6/+13
| | | | Allow users to set UUID in network byte order regardless of SMBIOS version.
* MFC r294347asomers2016-01-261-7/+4
| | | | | | | | | Fix usr.bin.truncate.truncate_test.bad_truncate with ZFS /tmp. The bad_truncate test sets the uimmutable flag to produce an error in truncate, but that flag isn't supported by ZFS. If /tmp is on a ZFS filesystem, the test will fail. Change it to use readonly permissions and an unpriveleged user instead.
* MFC r292066, r292069, r293708, r294027, and r294358, mostly to vdev_geom.casomers2016-01-262-40/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r292066 | asomers | 2015-12-10 14:46:21 -0700 (Thu, 10 Dec 2015) | 25 lines During vdev_geom_open, require that the vdev guids match the device's label except during split, add, or create operations. This fixes a bug where the wrong disk could be returned, and higher layers of ZFS would immediately eject it again. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c: o When opening by GUID, require both the pool and vdev GUIDs to match. While it is highly unlikely for two vdevs to have the same vdev GUIDs, the ZFS storage pool allocator only guarantees they are unique within a pool. o Modify the open behavior to: - If we are opening a vdev that hasn't previously been opened, open by path without checking GUIDs. - Otherwise, open by path and verify GUIDs. - If that fails, search all geom providers for a device with matching GUIDs. - If that fails, return ENOENT. r292069 | asomers | 2015-12-10 17:04:13 -0700 (Thu, 10 Dec 2015) | 6 lines Change an important error message from ZFS_LOG to printf r293708 | asomers | 2016-01-11 15:15:46 -0700 (Mon, 11 Jan 2016) | 16 lines Fix importing l2arc device by guid After r292066, vdev_geom verifies both the vdev and pool guids of device labels during open. However, spare and l2arc devices don't have pool guids, so opening them by guid will fail (opening by path, when the pathname is known, still succeeds). This change allows a vdev to be opened by guid if the label contains no pool_guid, which is the case for inactive spares and l2arc devices. r294027 | asomers | 2016-01-14 11:19:05 -0700 (Thu, 14 Jan 2016) | 14 lines Fix race condition involving ZFS remove events When a ZFS drive disappears, ZFS sends a resource.fs.zfs.removed event to userland. A userland program like zfsd(8) can use that event, for example to activate a hotspare. The current code contains a race condition: vdev_geom will sent the sysevent _before_ spa.c would update the vdev's status, causing userland processes to see pool state that does not reflect the device removal. This change moves the sysevent to spa.c, closing the race. r294358 | asomers | 2016-01-19 16:16:24 -0700 (Tue, 19 Jan 2016) | 10 lines Quell harmless CID about unchecked return value in nvlist_get_guids. The return value doesn't need to be checked, because nvlist_get_guid's callers check the returned values of the guids.
* MFH: r293745brueffer2016-01-262-1/+98
| | | | Add a basic bhyvectl manpage.
* MFH (r275765): add a vigr(8) tool to mirror vipw(8)des2016-01-264-0/+173
|
* MFH (r277706): allow the user to specify the location of control.confdes2016-01-261-0/+2
|
* MFH (r290008): load_rc_config no longer requires a service namedes2016-01-262-2/+2
|
* MFH (r290006): loading rc.subr and rc.conf has no effect heredes2016-01-261-3/+0
|
* MFH (r293034, r29304): plasma screensaverdes2016-01-266-1/+500
|
* MFH (r293033): ignore unload unless loaded + add a reload targetdes2016-01-261-1/+12
|
* MFH (r291197): markup fixesdes2016-01-261-3/+9
|
* MFH (r290743): support an exclusion regex, like security/200.chkmountsdes2016-01-261-1/+6
|
* MFH (r290742): don't index /var/db/freebsd-updatedes2016-01-262-2/+2
|
* MFC r286652:ngie2016-01-261-0/+1
| | | | | | | | | r286652 (by jmmv): Mark usr/include/c++/v1/tr1 as obsolete The directory usr/include/c++/v1 was marked as obsolete but its tr1 subdir was not, resulting in a removal error in delete-old.
* MFC r278047:ngie2016-01-261-0/+19
| | | | | | | | | PR: 206622 Sponsored by: EMC / Isilon Storage Division r278047 (by amdmi3): - Remove more files when MK_BSNMP == no
* MFC r294620:dchagin2016-01-262-3/+2
| | | | | | | | Fix a typo. MFC r294621: Remove obsolete comment.
* Revert r279010:pfg2016-01-261-6/+5
| | | | | | | | | | | | | | tdelete(3): don't delete the node we are about to return. The original change, from NetBSD, was bogus; introduced a memory leak and and broke POSIX. By reverting we actually match NetBSD's latest revision. This is a direct commit to 10 since this function was rewritten in 11-current. Reported by: Markiyan Kushnir Obtained from: NetBSD (CVS rev. 1.7, 1.8)
* MFC r293458:markj2016-01-261-7/+26
| | | | Prevent cv_waiters wraparound.
* MFC r294370:bdrewery2016-01-251-2/+15
| | | | mkdep: Fix -include not being added for .depend tracking.
* MFC r293460:smh2016-01-252-260/+15
| | | | | | | | | Switch EFT boot1 to use libstand This includes a change to the Makefile comment to correct it due to the lack of arm and i386 support in 10.x. Sponsored by: Multiplay
* MFC r293422 (partial):smh2016-01-251-14/+20
| | | | | | | | | | Update generated EFI boot image templates. This is a partial MFC as stable/10 only has EFI boot support for amd64, and there are no plans to change this, so the other platform images aren't included. Sponsored by: Multiplay
* MFC r293461:smh2016-01-253-6/+0
| | | | | | Remove hidden "Not ufs" printfs from boot code Sponsored by: Multiplay
* MFC r293274:smh2016-01-252-4/+3
| | | | | | style(9) fixes for EFI boot Sponsored by: Multiplay
* MFC r281059 (by rpaulo):smh2016-01-251-1/+22
| | | | | | boot1 EFI: reset the screen and select the best mode. Sponsored by: Multiplay
* MFC r293271:smh2016-01-251-1/+1
| | | | | | Fix const conversion warning in lz4_decompress Sponsored by: Multiplay
* MFC r293269:smh2016-01-251-2/+2
| | | | | | Fix return from zfs_probe_dev Sponsored by: Multiplay
* MFC r293268:smh2016-01-253-8/+8
| | | | | | Fix _MSC_EXTENSIONS checks Sponsored by: Multiplay
* MFC r292074:smh2016-01-254-1/+36
| | | | | | Limit stripesize reported from nvd(4) to 4K Sponsored by: Multiplay
OpenPOWER on IntegriCloud