summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MFV r277814, r277868, r277869:pfg2015-02-032-2/+2
| | | | | | | | | | | amd: Add extra check for NULL before deref. MFV r277841: Fix a clang 3.6.0 warning (from dim) CID: 274421 Obtained from: NetBSD MFC after: 4 days
* MFC r277794:kib2015-02-032-3/+15
| | | | | | The sys_quotactl() contract demands that the mount point is vfs_unbusy()ed when the cmd is Q_QUOTAON, regardless of other input parameters or error return.
* MFC r277793:kib2015-02-031-22/+118
| | | | Rewrite pmap_enter(9) man page.
* MFC r277419:mav2015-02-032-6/+7
| | | | | | | | | | | | | | Allow skipping dmu_buf_will_dirty() call in dsl_dir_transfer_space(). dsl_dir_transfer_space() is mostly called after dsl_dir_diduse_space(), which already calls dmu_buf_will_dirty() for the same dbuf and tx, so its duplicate call in those cases will change nothing, only spend time. Skipping this call by four times reduces time spent in dbuf_write_done() and descendants, updating dataset statistics with several congested lock acquisitions. When rewriting 8K zvol blocks at 1GB/s rate, this reduces CPU time spent inside dbuf_write_done(), according to profiling, from 45% of 683K samples to 18% of 422K.
* MFC r277952:dim2015-02-031-2/+3
| | | | | Fix a -Wcast-qual warning in udf_vnops.c, by using __DECONST. No functional change.
* MFC r277951:dim2015-02-031-3/+3
| | | | | Fix a bunch of -Wcast-qual warnings in netgraph's ng_parse.c, by using __DECONST. No functional change.
* MFC r277792:nwhitehorn2015-02-031-7/+7
| | | | | | Fix bug in mapppings of multiple pages exposed by updates to the VSCSI support in QEMU. Each page of a many page mapping was getting mapped to the same physical address, which is not the desired behavior.
* MFC r277806:delphij2015-02-021-5/+8
| | | | | | | | | | | | | | | | | | | | | Use unsigned int for index value. Without this change a local attacker could trigger a panic by tricking the kernel into accessing undefined kernel memory. We would like to acknowledge Francisco Falcon from CORE Security Technologies who discovered the issue and reported to the FreeBSD Security Team. More information can be found at CORE Security's advisory at: http://www.coresecurity.com/content/freebsd-kernel-multiple-vulnerabilities This is an errata candidate for releng/10.1 and releng/9.3. Earlier releases are not affected. Reported by: Francisco Falcon from CORE Security Technologies Security: CVE-2014-0998 Reviewed by: dumbbell
* MFC r277354, r277365:pfg2015-02-027-13/+7
| | | | | | ext2: Garbage-collect some unused variables Reported by: clang static analysis
* MFC r277042:loos2015-02-029-3/+372
| | | | | | | | | | | | | | | Add support to turn off Beaglebone with poweroff(8) or shutdown(8) -p. To cut off the power we need to start the shutdown sequence by writing the OFF bit on PMIC. Once the PMIC is programmed the SoC needs to toggle the PMIC_PWR_ENABLE pin when it is ready for the PMIC to cut off the power. This is done by triggering the ALARM2 interrupt on SoC RTC. The RTC driver only works in power management mode which means it won't provide any kind of time keeping functionality. It only implements a way to trigger the ALARM2 interrupt when requested.
* MFC r261459, r273045, r273047.loos2015-02-024-12/+8
| | | | | | | | | | | | r261459: Remove trailing tabs causing false grep positives. r273045: Sort the files in the am355x directory. r273047: Remove the need for files.beaglebone and std.beaglebone by moving the one option they defined into files.am335x.
* MFC r277758: Fix several potential overflows in UNMAP code.mav2015-02-021-6/+6
|
* MFC r276751:loos2015-02-021-6/+4
| | | | | | | | | | | | | | | Remove the check that prevent carp(4) advskew to be set to '0'. CARP devices are created with advskew set to '0' and once you set it to any other value in the valid range (0..254) you can't set it back to zero. The code in question is also used to prevent that zeroed values overwrite the CARP defaults when a new CARP device is created. Since advskew already defaults to '0' for newly created devices and the new value is guaranteed to be within the valid range, it is safe to overwrite it here. PR: 194672 Reported by: cmb@pfsense.org
* MFC r277208:loos2015-02-021-2/+1
| | | | | | | | Fix the PMIC node name to match the PMIC i2c address. Remove an extra blank line. No functional changes.
* MFC r277206:loos2015-02-022-2/+4
| | | | | | Catch a few cases where we need to release memory resources on errors. Place parentheses around variables in macros.
* MFC r277686,r277687:ngie2015-02-022-1/+97
| | | | | | | | | | | | | | r277686: Install bsnmp rc.d script if MK_BSNMP != no Sponsored by: EMC / Isilon Storage Division r277687: Fill in entries for MK_BSNMP == no Sponsored by: EMC / Isilon Storage Division
* MFC r277541:ngie2015-02-023-1/+20
| | | | | | | | | | | | | r277541: Add sample log rotation support for opensm Up to 7 archives of the log will be kept (just for consistency with the other log rotation rules) PR: 196788 Reviewed by: hselasky Sponsored by: EMC / Isilon Storage Division
* MFC r277685:ngie2015-02-021-0/+15
| | | | | | | | r277685: Fill in some dtrace entries when MK_CDDL == no Sponsored by: EMC / Isilon Storage Division
* MFC r277901:dim2015-02-024-4/+4
| | | | | | | | | | Fix a -Wcast-qual warning in libkern's strtol(), by using __DECONST. No functional change. MFC r277903: Similar to r277901, fix more -Wcast-qual warnings in libkern's strtoq(), strtoul() and strtouq(), by using __DECONST. No functional change.
* MFC r277899:dim2015-02-021-2/+4
| | | | | Fix a bunch of -Wcast-qual warnings in cd9660_util.c, by using __DECONST. No functional change.
* MFC r277898:dim2015-02-021-6/+7
| | | | | Fix a bunch of -Wcast-qual warnings in msdosfs_conv.c, by using __DECONST. No functional change.
* MFC r277883:dim2015-02-021-1/+1
| | | | | Ensure that lint does not pick up C11 keywords (e.g. _Noreturn), even if C11 mode is used. It does not support any C11 constructs.
* MFC r277674:ngie2015-02-022-8/+3
| | | | | | | | | r277674 (by ngie): Fix building rcorder with -DDEBUG by using libutil.h instead of util.h from usr.bin/make Sponsored by: EMC / Isilon Storage Division
* MFC r277666:ngie2015-02-021-1/+5
| | | | | | | | r277666 (by ngie): Only build share/dtrace if MK_CDDL != no Sponsored by: EMC / Isilon Storage Division
* MFC r271892:ngie2015-02-021-11/+11
| | | | | | | | r271892 (by ngie): Sort the optional rc.d scripts by their knobs Sponsored by: EMC / Isilon Storage Division
* MFC r277939:ngie2015-02-021-7/+8
| | | | | | | | r277939 (by ngie): Create MANLINKS for lzgrep, etc when MK_LZMA_SUPPORT != no Sponsored by: EMC / Isilon Storage Division
* MFC r262936:gjb2015-02-021-1/+1
| | | | | | Update board definition for WANDBOARD-QUAD to match crochet. Sponsored by: The FreeBSD Foundation
* MFC r276123:smh2015-02-011-3/+27
| | | | | | | | | Always sync the global ZFS config cache to reflect the new mosconfig MFC r277351: Clean ZFS spa config before syncing Sponsored by: Multiplay
* MFC r276027:smh2015-02-011-46/+22
| | | | | | | | | Switch zfsboot installer force 4K option to use vfs.zfs.min_auto_ashift=12 MFC r277333: Fix bsdinstall when working with geli boot disks Sponsored by: Multiplay
* Revert r278017 (MFC of r273381 and r276417) and r278018 (MFC of r273434)dim2015-02-0114-227/+135
| | | | until I can figure out why it leads to link failures in some scenarios.
* MFC r273434 (by bapt):dim2015-02-011-2/+2
| | | | | | Do not define bad_array_new_length::bad_array_new_length in libc++ anymore when used in combinaison with libcxxrt since it is now defined there already. This fixes building world
* MFC r273381 (by bapt):dim2015-01-3113-133/+225
| | | | | | | | | | | | | | | | | | | | | Add support for __cxa_throw_bad_array_new_length in libcxxrt It is required for use with newer g++49 Differential Revision: https://reviews.freebsd.org/D982 Reviewed by: theraven Approved by: theraven MFC r276417: Import libcxxrt master 00bc29eb6513624824a6d7db2ebc768a4216a604. Interesting fixes: 76584a0 Reorganize code to use only 32bit atomic ops for 32bit platforms 30d2ae5 Implement __cxa_throw_bad_array_new_length Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D1390
* MFC r277855:jamie2015-01-314-4/+26
| | | | | | | Add allow.mount.fdescfs jail flag. PR: 192951 Submitted by: ruben@verweg.com
* MFC r277827:kib2015-01-311-4/+4
| | | | tmpfs does not use UVM on FreeBSD.
* MFC r277646:kib2015-01-311-10/+16
| | | | Avoid calling vmspace_free() while owning the process lock.
* MFC 274398,274537:jhb2015-01-302-14/+14
| | | | | Move NFS and TFTP filesystems before the synthetic filesystems (bzip, gzip, and split).
* MFC r277802, r277811:pfg2015-01-302-1/+3
| | | | | | | | | | | | | | | sed: Fix resource leak and dereference after NULL. process.c: Protect access against NULL. main.c: Prevent outfile overwrite resource leak. CID: 271181 CID: 1006930 Obtained from: NetBSD
* Merge libedit fixes from NetBSDemaste2015-01-305-13/+14
| | | | | | | | | | | | | | | | | | | | Add trailing NULL's to the varargs functions as required. (John Spencer) readline.c r1.106 Bounds search for reallocated index, from OpenBSD via Andreas Fett map.c 1.34 map.h 1.10 parse.c 1.27 read.c 1.71 This is a direct commit to stable/10 as these changes are included in a broader sync with NetBSD committed by bapt@ in r276881. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D1728
* MFC r277247: Don't count status as sent until CTIO completes successfully.mav2015-01-301-1/+4
| | | | | | If we aggregated status sending with data move and got error, allow status to be updated and resent again separately. Without this command may stuck without status sent at all.
* MFC r277529: Don't count requests with status sent as overlapping.mav2015-01-301-2/+4
| | | | | While those requests are still in target OOA queue, for initiator they are already completed, so tags can be reused.
* MFC r277239:smh2015-01-301-0/+6
| | | | | | Eliminate illumos whole disk special case when searching for a ZFS vdev Sponsored by: Multiplay
* MFC r276446:smh2015-01-301-1/+2
| | | | | | Use the correct state name for unavailable pools in zpool list Sponsored by: Multiplay
* MFH (r277237): pass PAM_RHOST to RADIUS server as Calling-Station-IDdes2015-01-291-12/+18
|
* MFC r277352:rstone2015-01-283-3/+4
| | | | | | | | | | | | | | | | | | | | | | When mountd is creating sockets, it iterates over all addresses specified in the "hosts" array and eventually looks up the network address with getaddrinfo(). At one point it checks for a numeric address and if it sees one, it sets a hint parameter to force getaddrinfo to interpret the host as a numeric address. However that hint is not cleared for subsequent iterations of the loop and if any hosts seen after this point are host names, getaddrinfo will fail on the name. The result of this bug is that you cannot pass a host name to the -h flag. Unfortunately, the first iteration will either process ::1 or 127.0.0.1, so the flag is set on the first iteration and all host names will fail to be processed. The same bug applies to rpc.lockd and rpc.statd, so fix them too. Differential Revision: https://reviews.freebsd.org/D1507 Reported by: Dylan Martin MFC after: 1 week Sponsored by: Sandvine Inc.
* MFC r277246:hselasky2015-01-282-0/+4
| | | | | | Add more USB device IDs. PR: 196362
* MFC r277245:hselasky2015-01-282-0/+8
| | | | | Add more USB request definitions. The values are described in section 9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"
* MFC r277417:hselasky2015-01-281-5/+4
| | | | | Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular the value returned in the "udp_port_level" field.
* MFC r277340, r277349:pfg2015-01-282-7/+4
| | | | | | | | | | | | | | | Remove dead code. After the ext2 variant of the "orlov allocator" was implemented, the case for a negative or zero dirsize disappeared. Drop the dead code and unsign dirsize given that it can't be negative anyways. ext2fs: fix for uninitialized pointer read. path.ep_bp was being used uninitialized in ext4_ext_find_extent(). CID: 1062344 CID: 1008669
* MFC r277185:mav2015-01-281-1/+1
| | | | Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.
* MFC r277169: Reimplement TRIM throttling added in r248577.mav2015-01-281-51/+42
| | | | | | | | | | | | | | | Previous throttling implementation approached problem from the wrong side. It significantly limited useful delaying of TRIM requests and aggregation potential, while not so much controlled TRIM burstiness under heavy load. With this change random 4K write benchmarks (probably the worst case for TRIM) show me IOPS increase by 20%, average latency reduction by 30%, peak TRIM bursts reduction by 3 times and same peak TRIM map size (memory usage). Also the new logic does not force map size down so heavily, really allowing to keep deleted data for 32 TXG or 30 seconds under moderate load. It was practically impossible with old throttling logic, which pushed map down to only 64 segments.
OpenPOWER on IntegriCloud