| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Rewrite pmap_enter(9) man page.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Fix a -Wcast-qual warning in udf_vnops.c, by using __DECONST. No
functional change.
|
|
|
|
|
| |
Fix a bunch of -Wcast-qual warnings in netgraph's ng_parse.c, by using
__DECONST. No functional change.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
ext2: Garbage-collect some unused variables
Reported by: clang static analysis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Fix the PMIC node name to match the PMIC i2c address.
Remove an extra blank line.
No functional changes.
|
|
|
|
|
|
| |
Catch a few cases where we need to release memory resources on errors.
Place parentheses around variables in macros.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
r277685:
Fill in some dtrace entries when MK_CDDL == no
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Fix a bunch of -Wcast-qual warnings in cd9660_util.c, by using
__DECONST. No functional change.
|
|
|
|
|
| |
Fix a bunch of -Wcast-qual warnings in msdosfs_conv.c, by using
__DECONST. No functional change.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
r277666 (by ngie):
Only build share/dtrace if MK_CDDL != no
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
|
|
| |
r271892 (by ngie):
Sort the optional rc.d scripts by their knobs
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
|
|
| |
r277939 (by ngie):
Create MANLINKS for lzgrep, etc when MK_LZMA_SUPPORT != no
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
| |
Update board definition for WANDBOARD-QUAD to match crochet.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
|
|
| |
Always sync the global ZFS config cache to reflect the new mosconfig
MFC r277351:
Clean ZFS spa config before syncing
Sponsored by: Multiplay
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
until I can figure out why it leads to link failures in some scenarios.
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Add allow.mount.fdescfs jail flag.
PR: 192951
Submitted by: ruben@verweg.com
|
|
|
|
| |
tmpfs does not use UVM on FreeBSD.
|
|
|
|
| |
Avoid calling vmspace_free() while owning the process lock.
|
|
|
|
|
| |
Move NFS and TFTP filesystems before the synthetic filesystems (bzip,
gzip, and split).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
While those requests are still in target OOA queue, for initiator they are
already completed, so tags can be reused.
|
|
|
|
|
|
| |
Eliminate illumos whole disk special case when searching for a ZFS vdev
Sponsored by: Multiplay
|
|
|
|
|
|
| |
Use the correct state name for unavailable pools in zpool list
Sponsored by: Multiplay
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Add more USB device IDs.
PR: 196362
|
|
|
|
|
| |
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"
|
|
|
|
|
| |
Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particular
the value returned in the "udp_port_level" field.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|