aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix build after FDT changes.Aleksandr Rybalko2014-01-161-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=260752
* Remove notes about historical mbuf(9) allocator flags from documentation.Gleb Smirnoff2014-01-162-24/+2
| | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=260720
* Simplify wait/nowait code, eventually killing last remnant ofGleb Smirnoff2014-01-162-28/+19
| | | | | | | | | historical mbuf(9) allocator flag. Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=260719
* Another round of removing historical mbuf(9) allocator flags.Gleb Smirnoff2014-01-165-13/+13
| | | | | | | | | They are breeding! New ones arouse since last round. Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=260718
* fix a build problem with INVARIANTS enabled introduced in r260704Andriy Gapon2014-01-161-1/+1
| | | | | | | | | Reported by: glebius MFC after: 5 days X-MFC with: r260704 Notes: svn path=/head/; revision=260717
* Remove historical macro.Gleb Smirnoff2014-01-161-1/+1
| | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=260716
* Substitute flags from historical mbuf(9) allocator with modern ones.Gleb Smirnoff2014-01-162-11/+11
| | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=260715
* fix a bug in ZFS mirror code for handling multiple DVAaAndriy Gapon2014-01-161-3/+6
| | | | | | | | | | | | | | | | | | | The bug was introduced in r256956 "Improve ZFS N-way mirror read performance". The code in vdev_mirror_dva_select erroneously considers already tried DVAs for the next attempt. Thus, it is possible that a failing DVA would be retried forever. As a secondary effect, if the attempts fail with checksum error, then checksum error reports are accumulated until the original request ultimately fails or succeeds. But because retrying is going on indefinitely the cheksum reports accumulation will effectively be a memory leak. Reviewed by: gibbs MFC after: 13 days Sponsored by: HybridCluster Notes: svn path=/head/; revision=260713
* Revert r260705: wrong patch committed by accidentAndriy Gapon2014-01-161-4/+0
| | | | | | | An earlier, less efficient version was committed by accident. Notes: svn path=/head/; revision=260711
* Cleanup comments and whitespace. No functional changes.Gleb Smirnoff2014-01-161-18/+14
| | | | Notes: svn path=/head/; revision=260709
* Fix refcount leak on netinet ifa.Alexander V. Chernikov2014-01-161-4/+4
| | | | | | | | | Reviewed by: glebius MFC after: 2 weeks Sponsored by: Yandex LLC Notes: svn path=/head/; revision=260707
* zfs_deleteextattr: name buffer from namei is needed by zfs_renameAndriy Gapon2014-01-161-1/+3
| | | | | | | | | | | | If we prematurely free the name buffer and it gets quickly recycled, then zfs_rename may see data from another lookup or even unmapped memory via cn_nameptr. MFC after: 6 days Sponsored by: HybridCluster Notes: svn path=/head/; revision=260706
* fix a bug in ZFS mirror code for handling multiple DVAaAndriy Gapon2014-01-161-0/+4
| | | | | | | | | | | | | | | | | | | The bug was introduced in r256956 "Improve ZFS N-way mirror read performance". The code in vdev_mirror_dva_select erroneously considers already tried DVAs for the next attempt. Thus, it is possible that a failing DVA would be retried forever. As a secondary effect, if the attempts fail with checksum error, then checksum error reports are accumulated until the original request ultimately fails or succeeds. But because retrying is going on indefinitely the cheksum reports accumulation will effectively be a memory leak. Reviewed by: gibbs MFC after: 13 days Sponsored by: HybridCluster Notes: svn path=/head/; revision=260705
* zfs: getnewvnode_reserve must be called outside of a zfs transactionAndriy Gapon2014-01-163-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise we could run into the following deadlock. A thread has a transaction open and assigned to a transaction group. That would prevent the transaction group from be quiesced and synced. The thread is blocked in getnewvnode_reserve waiting for a vnode to a be reclaimed. vnlru thread is blocked trying to enter ZFS VOP because a filesystem is suspended by an ongoing rollback or receive operation. In its turn the operation is waiting for the current transaction group to be synced. zfs_zget is always used outside of active transactions, but zfs_mknode is always used in a transaction context. Thus, we hoist getnewvnode_reserve from zfs_mknode to its callers. While there, assert that ZFS always calls getnewvnode while having a vnode reserved. Reported by: adrian Tested by: adrian MFC after: 17 days Sponsored by: HybridCluster Notes: svn path=/head/; revision=260704
* zinject must use ioctl(2) compatibility wrapperAndriy Gapon2014-01-162-0/+2
| | | | | | | | MFC after: 8 days Sponsored by: HybridCluster Notes: svn path=/head/; revision=260703
* Fix ipfw fwd for IPv4 traffic broken by r249894.Alexander V. Chernikov2014-01-161-0/+8
| | | | | | | | | | | | | | | | | | | Problem case: Original lookup returns route with GW set, so gw points to rte->rt_gateway. After that we're changing dst and performing lookup another time. Since fwd host is most probably directly reachable, resulting rte does not contain rt_gateway, so gw is not set. Finally, we end with packet transmitted to proper interface but wrong link-layer address. Found by: lstewart Discussed with: ae,lstewart MFC after: 2 weeks Sponsored by: Yandex LLC Notes: svn path=/head/; revision=260702
* Handle truncation of the size returned by _kvm_kvatop(). Cores can haveMarcel Moolenaar2014-01-161-1/+1
| | | | | | | segments larger than INT_MAX. Notes: svn path=/head/; revision=260701
* netmap_user.h:Luigi Rizzo2014-01-1610-505/+296
| | | | | | | | | | | | | | | | | | | | | add separate rx/tx ring indexes add ring specifier in nm_open device name netmap.c, netmap_vale.c more consistent errno numbers netmap_generic.c correctly handle failure in registering interfaces. tools/tools/netmap/ massive cleanup of the example programs (a lot of common code is now in netmap_user.h.) nm_util.[ch] are going away soon. pcap.c will also go when i commit the native netmap support for libpcap. Notes: svn path=/head/; revision=260700
* Add data so we can convert a PIO unit number into a base address.Warner Losh2014-01-156-5/+51
| | | | Notes: svn path=/head/; revision=260696
* Provide a simplified way to specify GPIO pins for the Atmel port.Warner Losh2014-01-151-0/+296
| | | | Notes: svn path=/head/; revision=260695
* - Fix indent.Hiroki Sato2014-01-151-64/+34
| | | | | | | - Minor clean up after DB5 migration. Notes: svn path=/head/; revision=260691
* Remove reference to FreeBSD 6.2-RELEASE from 'Upgrading fromSteven Kreuzer2014-01-151-9/+8
| | | | | | | | | | | | | previous releases' paragraph since all supported version of FreeBSD now support binary upgrades Remove 'of course,' from foot note reminding to create a backup before attempting a binary update Approved by: hrs (mentor) Notes: svn path=/head/; revision=260689
* Update xboxfb driver to actual state.Aleksandr Rybalko2014-01-151-117/+46
| | | | | | | | | NOTE: Not tested. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=260688
* In the nested TLB fault handler, for a direct-mapped address, makeMarcel Moolenaar2014-01-151-1/+1
| | | | | | | | | | | | | | | | | | sure to clear the lower 12 bits. We're adding the translation attributes to the physical address and non-zero bits in the first 12 bits would give us something unexpected, including invalid bit values. Those trigger nested general protection faults. We do not have to clear the region bits, because they are ignored anyway, so we can replace an existing dep instruction with the one we need. This fixes GP faults for the swapper thread, as it's the only thread that has a direct-mapped stack. Since the bug is in the nested TLB fault handler, the frequency of hitting the GP is in the order of hours/days under load. Notes: svn path=/head/; revision=260666
* Add missing arch= and revision= support.Hiroki Sato2014-01-141-0/+45
| | | | Notes: svn path=/head/; revision=260655
* sh: Remove SIGWINCH handler and just check for resize before every read.Jilles Tjoelker2014-01-143-23/+3
| | | | | | | | | | | | | | | | The SIGWINCH handler triggers breakage in libedit which is hard to fix; see PR bin/169773. Also, window size changes while a program is in foreground (and it rather than sh will receive SIGWINCH) will now be picked up automatically. Downside: it is now certain that a resize is only processed after pressing <Enter>. If libedit is fixed, sh will most likely have to be changed also. PR: bin/180146 Notes: svn path=/head/; revision=260654
* - Purge old translations.Hiroki Sato2014-01-14255-43014/+65
| | | | | | | | | | - Add missing footer due to DSSSL->XSLT migration and use XML catalog to resolve URI[*]. Based on the work by: gabor [*] Notes: svn path=/head/; revision=260653
* libc/resolv: Use poll() instead of kqueue().Jilles Tjoelker2014-01-142-3/+3
| | | | | | | | | | | The resolver in libc creates a kqueue for watching a single file descriptor. This can be done using poll() which should be lighter on the kernel and reduce possible problems with rlimits (file descriptors, kqueues). Reviewed by: jhb Notes: svn path=/head/; revision=260652
* Fix lock leak in purely hypothetical case of TCP connection without SVC_ACKAlexander Motin2014-01-143-11/+13
| | | | | | | | | method. This change should be NOP now, but it is better to be future safe. Reported by: rmacklem Notes: svn path=/head/; revision=260648
* Disable 'monitor' feature in ntpd by default.Xin LI2014-01-141-0/+2
| | | | | | | | Security: FreeBSD-SA-14:02.ntpd Approved by: so Notes: svn path=/head/; revision=260637
* Fix bsnmpd remote denial of service vulnerability.Xin LI2014-01-141-0/+5
| | | | | | | | | | Reported by: dinoex Submitted by: harti Security: FreeBSD-SA-14:01.bsnmpd Security: CVE-2014-1452 Notes: svn path=/head/; revision=260636
* Replace hand-crafted Kyuafiles with automatic generation.Julio Merino2014-01-144-26/+12
| | | | | | | | | | | Redo r260506 by using the new TEST_METADATA functionality of bsd.test.mk to mark the sh(1) and test(1) tests as not supporting root. This is to get rid of hand-crafted Kyuafiles for these very simple cases. MFC after: 5 days Notes: svn path=/head/; revision=260635
* Use TAP_TESTS_PERL to register the legacy_test in bin/pax.Julio Merino2014-01-143-11/+1
| | | | | | | | | | | | | | | | | | Redo r260586 by using the new functionality in tap.test.mk to transparently support perl-based test programs. As a side-effect, we get rid of an explicit path to /usr/bin/perl by replacing it with /usr/local/bin/perl (or as defined in tap.test.mk). This also fixes the name of the legacy_test source file because this should have always been legacy_test.pl and not legacy_test.sh. My mistake when originally moving the code around without realizing that this was a perl script. MFC after: 5 days Notes: svn path=/head/; revision=260634
* Support perl-based TAP-compliant test programs.Julio Merino2014-01-141-0/+27
| | | | | | | | | | | | | | | | Introduce a TAP_TESTS_PERL primitive to list test programs written in perl. Only do this in tap.test.mk because I only expect perl-based test programs with this interface. This is very similar to TAP_TESTS_SH but the difference is that we record in the Kyuafile that the test program requires a perl interpreter. This in turn makes Kyua mark the test as skipped if the perl package is not yet installed, instead of mysteriously failing to run the program. MFC after: 5 days Notes: svn path=/head/; revision=260633
* Support defining test program metadata from the Makefiles.Julio Merino2014-01-141-1/+15
| | | | | | | | | | | | | | | | | | Introduce a new, per-test-program TEST_METADATA.<program> variable that contains a list of key/value paris describing metadata properties for that test program. These properties are later written into the auto-generated Kyuafile when using the KYUAFILE=auto functionality. This is to avoid having to supply hand-crafted Kyuafiles when the needs for metadata overrides are trivial. While doing this, and because I am documenting TEST_METADATA, take the chance to document the TEST_INTERFACE setting as well. MFC after: 5 days Notes: svn path=/head/; revision=260632
* Don't output any modifier keys before we see a validHans Petter Selasky2014-01-141-0/+36
| | | | | | | | | | | non-modifier key press. This prevents so-called "ghost keyboards" keeping modifier keys pressed while not actually seen as a real keyboard. MFC after: 2 weeks Notes: svn path=/head/; revision=260622
* Add missing EM_PPC64 to e_machine header display.Justin Hibbits2014-01-141-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=260621
* Add an API to rendezvous all active vcpus in a virtual machine. The rendezvousNeel Natu2014-01-149-27/+318
| | | | | | | | | | | | | | | | | | can be initiated in the context of a vcpu thread or from the bhyve(8) control process. The first use of this functionality is to update the vlapic trigger-mode register when the IOAPIC pin configuration is changed. Prior to this change we would update the TMR in the virtual-APIC page at the time of interrupt delivery. But this doesn't work with Posted Interrupts because there is no way to program the EOI_exit_bitmap[] in the VMCS of the target at the time of interrupt delivery. Discussed with: grehan@ Notes: svn path=/head/; revision=260619
* ANSI-fy prototype.Xin LI2014-01-141-3/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=260618
* Move myself from ports alumni to active ports committer section.Bruce A. Mah2014-01-131-1/+2
| | | | | | | | | Add an edge indicating mat as my ports mentor. Approved by: mat (mentor) Notes: svn path=/head/; revision=260612
* Described in the man page but not implemented. Here it comes,Andreas Tobler2014-01-131-0/+37
| | | | | | | | | atomic_swap_32/64. The latter only for powerpc64. MFC after: 1 month Notes: svn path=/head/; revision=260610
* The onyx codec works also as module, so add it.Andreas Tobler2014-01-131-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=260607
* Remove scary comment about this being a test key.Bryan Drewery2014-01-131-1/+0
| | | | | | | | | | | There has been no need to regenerate the signing key. Reported by: mat Approved by: bapt (mentor) MFC after: 3 days Notes: svn path=/head/; revision=260605
* When building a cross-kgdb, suppress the registration of theMarcel Moolenaar2014-01-131-0/+12
| | | | | | | | | | | | | | standard core target by declaring coreops_suppress_target with initializer. This is also happening for non-cross kgdb, by virtue of having fbsd-threads.c in libgdb and having it do the exact same thing. Since fbsd-threads.c is not included in in libgdb when building a cross debugger, we ended up with more than 1 core file targets (the standard gdb core file target and kgdb's libkvm based core file target) and this behaves the same as not having a core target at all. Notes: svn path=/head/; revision=260601
* We don't have to worry about page sizes when working on virtualMarcel Moolenaar2014-01-131-1/+1
| | | | | | | cores (i.e. minidumps). Every segment is virtually contiguous. Notes: svn path=/head/; revision=260600
* Re-apply the part of r260022 that was reverted by r260030 withMarcel Moolenaar2014-01-131-5/+18
| | | | | | | | | | | | | | | one significant difference: for LIB32 builds both TARGET_ARCH and MACHINE_ARCH are defined. TARGET_ARCH confusingly holds the architecture of the host (e.g. amd64), while MACHINE_ARCH holds the architecture were trying to build (e.g. i386). With both set and different, r260022 changed the behaviour to interpret the condition as building a cross-amd64 libkvm on i386, when obviously we're trying to build an i386 version on amd64. When COMPAT_32BIT is defined, we're building LIB32 and ignore the value of TARGET_ARCH as we did before. Notes: svn path=/head/; revision=260599
* Fix dmesg(1) -> dmesg(8)Baptiste Daroussin2014-01-132-2/+2
| | | | | | | Reported by: trasz Notes: svn path=/head/; revision=260597
* Fix typoBaptiste Daroussin2014-01-131-1/+1
| | | | | | | Reported by: dumbbell Notes: svn path=/head/; revision=260596
* Update the BUGS section according the recent changes in kldload(8)Baptiste Daroussin2014-01-131-3/+3
| | | | | | | | Reviewed by: bdrewery MFC after: 1 week Notes: svn path=/head/; revision=260595
* Point the user to dmesg(1) to get informations about why loading a module ↵Baptiste Daroussin2014-01-131-2/+12
| | | | | | | | | | | did fail instead of printing the cryptic "Exec format error" MFC after: 1 week Notes: svn path=/head/; revision=260594