summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow us to build clang for ARM EABI. Clang and llvm use theandrew2013-02-1221-6/+54
| | | | | | | arm-gnueabi-freebsd10.0 triple for EABI. Use this when we are on arm or armv6 and are building for EABI. Reviewed by: dim
* Style.pjd2013-02-111-2/+2
|
* Update comments to reflect r246689.marius2013-02-111-2/+8
|
* Style.pjd2013-02-111-2/+2
|
* Make SYSCTL_{LONG,QUAD,ULONG,UQUAD}(9) work as advertised and also handlemarius2013-02-111-9/+17
| | | | | | | constant values. Reviewed by: kib MFC after: 3 days
* Merge zfs_ioctl.c code that should have been merged together with ZFS v28.mm2013-02-111-75/+100
| | | | | | | | | | | | Fixes several problems if working with read-only pools. Changed code originaly introduced in onnv-gate 13061:bda0decf867b Contains changes up to illumos-gate 13700:4bc0783f6064 PR: kern/175897 Suggested by: avg MFC after: 2 weeks
* Send the adaptation layer indication only if set by the user.tuexen2013-02-114-19/+26
| | | | | MFC after: 3 days Discussed with: rrs
* Implement guest vcpu pinning using 'pthread_setaffinity_np(3)'.neel2013-02-119-165/+7
| | | | | | | | | | | | | | Prior to this change pinning was implemented via an ioctl (VM_SET_PINNING) that called 'sched_bind()' on behalf of the user thread. The ULE implementation of 'sched_bind()' bumps up 'td_pinned' which in turn runs afoul of the assertion '(td_pinned == 0)' in userret(). Using the cpuset affinity to implement pinning of the vcpu threads works with both 4BSD and ULE schedulers and has the happy side-effect of getting rid of a bunch of code in vmm.ko. Discussed with: grehan
* Use the right year.delphij2013-02-112-2/+2
| | | | Noticed by: Denis Ahrens <denis h3q com>
* MFV r246633:mm2013-02-111-1/+22
| | | | | | | | | | | | | | | Import vendor bugfixes regarding SA rounding, header size and layout. This was already partially fixed by avg. Illumos ZFS issues: 3512 rounding discrepancy in sa_find_sizes() 3513 mismatch between SA header size and layout References: https://www.illumos.org/issues/3512 https://www.illumos.org/issues/3513 MFC after: 2 weeks
* MFV r246394:mm2013-02-111-1/+14
| | | | | | | | | | | | Add tunable to allow block allocation on degraded vdevs. Illumos ZFS issues: 3507 Tunable to allow block allocation even on degraded vdevs References: https://www.illumos.org/issues/3507 MFC after: 2 weeks
* Don't send kernel provided information in the User Initiatedtuexen2013-02-114-68/+29
| | | | | | | | | | | ABORT cause, since the user can also provide this kind of information. So the receiver doesn't know who provided the information. While there: Fix a bug where the stack would send a malformed ABORT chunk when using a send() call with SCTP_ABORT|SCT_SENDALL flags. MFC after: 3 days
* Major update for unix_cmsg from Andrey Simonenko.pluknet2013-02-113-1249/+1652
| | | | | | | | | | | | | | | | | | Quoting the submitter: - Added tests for SCM_BINTIME, LOCAL_PEERCRED, cmsghdr.cmsg_len - Code that checks correctness of groups was corrected (getgroups(2) change) - unix_cmsg.c was completely redesigned and simplified - Use less timeout value in unix_cmsg.c for faster work - Added support for not sending data in a message, not sending data and data array associated with a cmsghdr structure in a message - Existent tests were improved - unix_cmsg.t was redesigned and simplified Correctness of unix_cmsg verified on 7.1-STABLE, 9.1-STABLE and 10-CURRENT. PR: bin/131567 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 2 weeks
* MFV r246392:mm2013-02-1117-197/+76
| | | | | | | | | | | | Import vendor ZFS bugfix fixing a possible deadlock in arc_read(). Illumos ZFS issues: 3498 panic in arc_read(): !refcount_is_zero(&pbuf->b_hdr->b_refcnt) References: https://www.illumos.org/issues/3498 MFC after: 2 weeks
* A10 reset mechanism is the same for all boards in this family so removegonzo2013-02-111-6/+3
| | | | | redundant reset function implementation pointer. We might want to ressurect it later when support for other Allwinner chips is introduced.
* Add watchdog driver for Allwinner A10gonzo2013-02-114-0/+236
|
* Resolve source address selection in presense of CARP. Add a coupleglebius2013-02-114-4/+34
| | | | | | | | | | | | | | | | | | of helper functions: - carp_master() - boolean function which is true if an address is in the MASTER state. - ifa_preferred() - boolean function that compares two addresses, and is aware of CARP. Utilize ifa_preferred() in ifa_ifwithnet(). The previous version of patch also changed source address selection logic in jails using carp_master(), but we failed to negotiate this part with Bjoern. May be we will approach this problem again later. Reported & tested by: Anton Yuzhaninov <citrin citrin.ru> Sponsored by: Nginx, Inc
* Cross-reference vfs_unbusy(9).pluknet2013-02-111-1/+3
| | | | MFC after: 1 week
* Add -lheimntlm to LDADD directly.brooks2013-02-111-1/+1
| | | | | | | | | | | With the current binutils, symbols from libheimtlm.so are loaded because it is referenced by DT_NEEDED. This feature is not implemented in mclinker (https://code.google.com/p/mclinker/issues/detail?id=104). I encountered the same issue when linking with a recent devel/binutils invoked via clang. This was the only use of DT_NEEDED in the tree so removing it simplifies toolchain requirements. Submitted by: Pete Chou <petechou@gmail.com> (mclinker issue)
* Use DEVMETHOD_END.rpaulo2013-02-113-3/+3
|
* Put this back into the ath taskqueue rather than the ath TX taskqueue.adrian2013-02-111-1/+1
| | | | | This now should mean all the entry points into the software TX scheduler are back in the same taskqueue.
* MFV r246390:mm2013-02-111-2/+3
| | | | | | Import minor type change in refcount.h header from vendor (illumos). MFC after: 2 weeks
* Go back to direct-dispatch of the software queue and frame TX pathsadrian2013-02-111-7/+9
| | | | | | | | | | | | | | | | | when they're being called from the TX completion handler. Going (back) through the taskqueue is just adding extra locking and latency to packet operations. This improves performance a little bit on most NICs. It still hasn't restored the original performance of the AR5416 NIC but the AR9160, AR9280 and later NICs behave very well with this. Tested: * AR5416 STA (still tops out at ~ 70mbit TCP, rather than 150mbit TCP..) * AR9160 hostap (good for both TX and RX) * AR9280 hostap (good for both TX and RX)
* Teach athalq about the recent if_ath_alq timestamp format change.adrian2013-02-115-34/+51
|
* Extend the timestamp to be a timeval, rather than ticks.adrian2013-02-112-2/+8
| | | | This makes it easier to see TX and RX buffer latencies.
* Provide verbose help for fdt commands on platforms that use it.kientzle2013-02-114-3/+96
|
* Capability rights for process management via process descriptors do existpjd2013-02-111-3/+2
| | | | | | already, so uncomment them. Sponsored by: The FreeBSD Foundation
* Add CAP_MKNOD right.pjd2013-02-101-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* fts: Use O_DIRECTORY when opening name that might be changed by attacker.jilles2013-02-101-1/+2
| | | | | | | | There are uncommon cases where fts_safe_changedir() may be called with a non-NULL name that is not "..". Do not block or worse if an attacker put (a (symlink to) a fifo or device where a directory used to be. MFC after: 1 week
* Remove the ia64-specific code fragment, which effect is more cleanlykib2013-02-101-10/+0
| | | | | | | done by the call to trans_prot() function a line before. Discussed with: Oliver Pinter <oliver.pntr@gmail.com> MFC after: 1 week
* Make sure that received packets for removed addresses are handledtuexen2013-02-101-180/+192
| | | | | | consistently. While there, make variable names consistent. MFC after: 3 days
* ext2fs: Use prototype declarations for function definitionspfg2013-02-108-304/+65
| | | | | Submitted by: Christoph Mallon MFC after: 2 weeks
* Use the entire 64 bits of 'bar.pbi_length' when printing the bar size.neel2013-02-101-1/+1
| | | | This allows bar sizes greater than or equal to 4GB to be displayed correctly.
* MFV r246388:mm2013-02-103-17/+6
| | | | | | | | | | | | | | Import vendor bugfixes Illumos ZFS issues: 3422 zpool create/syseventd race yield non-importable pool 3425 first write to a new zvol can fail with EFBIG References: https://www.illumos.org/issues/3422 https://www.illumos.org/issues/3425 MFC after: 2 weeks
* Add bootcamp support to the loader.ae2013-02-102-3/+8
| | | | | Tested by: dchagin MFC after: 1 week
* Improve code style. No functional change.tuexen2013-02-101-7/+7
| | | | MFC after: 3 days
* find: Run when cwd cannot be opened, except with -execdir or -delete.jilles2013-02-102-2/+16
| | | | | | | | | | | fts(3) can run (albeit more slowly and imposing the {PATH_MAX} limit) when the current directory cannot be opened. Therefore, do not make a failure to open the current directory (for returning to it later in -exec) fatal. If -execdir or -delete are used, the expectation is that fts(3) will use chdir to avoid race conditions (except for -execdir with -L). Do not break this expectation any more than it already is by still failing if the current directory cannot be opened.
* Don't try to suppress the inclusion of the build date in named's versioncperciva2013-02-101-1/+1
| | | | | | string by undefining __DATE__, since (unlike gcc) clang doesn't allow us to do that. Instead, define NO_VERSION_DATE, which was helpfully added to the named source code for exactly this purpose.
* Backport vendor changes in zfs(8) manual page (MFV r246389)mm2013-02-101-122/+129
| | | | | | | | | | Illumos ZFS issues: 3380 zfs man page: documentation for zfs allow is confusing References: https://www.illumos.org/issues/3380 MFC after: 2 weeks
* Fix minor memory leak.pjd2013-02-101-0/+1
|
* Assert that if we are not dealing with keyfile we are dealing with passfile.pjd2013-02-101-0/+2
|
* Use arc4random_buf(3) instead of reimplementing it.pjd2013-02-101-21/+5
|
* Correct spelling of "daemon". No .Dd bump.gavin2013-02-101-1/+1
| | | | | Noticed by: Nathan Rich <Nathan.Rich dynastysystems com> MFC after: 3 days
* find: In -execdir ... {} +, only pass one file per invocation.jilles2013-02-101-1/+7
| | | | | | | This is inefficient but ensures that -execdir ... {} + does not mix files from different directories in one invocation; the command could not access some files. Files from the same directory should really be handled in one invocation but this is somewhat more complicated.
* sigqueue(2): Fix typo (EEPERM -> EPERM).jilles2013-02-101-1/+1
| | | | MFC after: 3 days
* - Move scratch data from the USB bus structure to the USB device structurehselasky2013-02-1011-229/+269
| | | | | | | | | | so that simultaneous access cannot happen. Protect scratch area using the enumeration lock. Also reduce stack usage in usbd_transfer_setup() by moving some big stack members to the scratch area. This saves around 200 bytes of stack. - Fix a whitespace. MFC after: 1 week
* Fix correct use of USB header files.hselasky2013-02-101-2/+2
|
* - Streamline detach logic in wlan drivers, so thathselasky2013-02-1013-87/+237
| | | | | | | | | | | freed memory cannot be used during detach. - Remove all panic() calls from the urtw driver because panic() is not appropriate here. - Remove redundant checks for device detached in device detach callbacks. - Use DEVMETHOD_END to mark end of device methods. MFC after: 2 weeks
* Fix several unsafe pointer dereferences in the buffered_write()kib2013-02-101-3/+23
| | | | | | | | | | | | | | | | | | | function, implementing the sysctl vfs.ffs.set_bufoutput (not used in the tree yet). - The current directory vnode dereference is unsafe since fd_cdir could be changed and unreferenced, lock the filedesc around and vref the fd_cdir. - The VTOI() conversion of the fd_cdir is unsafe without first checking that the vnode is indeed from an FFS mount, otherwise the code dereferences a random memory. - The cdir could be reclaimed from under us, lock it around the checks. - The type of the fp vnode might be not a disk, or it might have changed while the thread was in flight, check the type. Reviewed and tested by: mckusick MFC after: 2 weeks
* Remove a racy checks on resident and cached pages forattilio2013-02-101-12/+0
| | | | | | | | | | | | | | | | tmpfs_mapped{read, write}() functions: - tmpfs_mapped{read, write}() are only called within VOP_{READ, WRITE}(), which check before-hand to work only on valid VREG vnodes. Also the vnode is locked for the duration of the work, making vnode reclaiming impossible, during the operation. Hence, vobj can never be NULL. - Currently check on resident pages and cached pages without vm object lock held is racy and can do even more harm than good, as a page could be transitioning between these 2 pools and then be skipped entirely. Skip the checks as lookups on empty splay trees are very cheap. Discussed with: alc Tested by: flo MFC after: 2 weeks
OpenPOWER on IntegriCloud