summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Mention the "nojailvnet" keyword.jamie2013-05-241-1/+3
| | | | MFC after: 3 days
* Enforce validation on the selected delete method via sysctl.smh2013-05-241-1/+2
| | | | | | | | | This prevents users from selecting a delete method which may cause corruption e.g. MPS WS16 on pre P14 firmware. Reviewed by: pjd (mentor) Approved by: pjd (mentor) MFC after: 2 days
* Fix the data corruption on the swap-backed md.kib2013-05-241-1/+7
| | | | | | | | | | | Assign the rv variable a success code if the pager was not asked for the page. Using an error code from the previous processed page caused zeroing of the valid page, when e.g. the previous page was not available in the pager. Reported by: lstewart Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Driver 'aacraid' added. Supports Adaptec by PMC RAID controller families ↵achim2013-05-2421-0/+8493
| | | | | | Series 6, 7, 8 and upcoming products. Older Adaptec RAID controller families are supported by the 'aac' driver. Approved by: scottl (mentor)
* Withdraw http://svnweb.freebsd.org/changeset/base/250809tuexen2013-05-241-2/+0
| | | | since the real fix is in http://svnweb.freebsd.org/changeset/base/250952.
* The fasttrap provider cleans up probes asynchronously when a process withmarkj2013-05-241-64/+49
| | | | | | | | | | | | | | | USDT probes exits. This was previously done with a callout; however, it is possible to sleep while holding the DTrace mutexes, so a panic will occur on INVARIANTS kernels if the callout handler can't immediately acquire one of these mutexes. This panic will be frequently triggered on systems where a USDT-enabled program (perl, for instance) is often run. This revision changes the fasttrap cleanup mechanism so that a dedicated thread is used instead of a callout. The old behaviour is otherwise preserved. Reviewed by: rpaulo MFC after: 1 month
* Initialising the new fibnum field to a known value turns out tojulian2013-05-241-0/+3
| | | | | | | be a GOOD IDEA (TM). Apparently MOST users set this (e.g. tcp and friends) but there are a few users that just assume that it is a sensible value but then go on to read it. These include SCTP, pf and the FLOWTABLE option (and maybe others).
* Ensure alq's shutdown_pre_sync event handler is deregistered on module unload tolstewart2013-05-241-2/+5
| | | | | | | | avoid a dangling pointer and eventual panic on system shutdown. Reported by: Ali <comnetboy at gmail.com> Tested by: Ali <comnetboy at gmail.com> MFC after: 1 week
* While waiting for the bpf hold buffer to become idle, checkghelmer2013-05-231-2/+7
| | | | | | | the return value from mtx_sleep() and exit bpfread() on errors such as EINTR. Reviewed by: jhb
* Use proper malloc type for ioctls white-list.pjd2013-05-231-5/+7
| | | | | Reported by: pho Tested by: pho
* Fix target selection logic, which did not comply with the man page.se2013-05-231-2/+8
| | | | | | | | | | | | | | | | Instead of using the file with the least order of path name components, shortest filename and finally the shortest basename (with the search stopping as soon as one of these conditions is true), the first filename checked was used as the reference, and another filename was only selected if all of the above comparisons are in favour of the latter file. This was wrong, because filenames with path less components were only considered, if both of the other conditions were true as well. In fact, the first filename to be checked had good chances to be selected in the end, since it only needed to be better with regard to any one of the three criteria ... Reviewed by: delphij@freebsd.org
* Add support for netgroup, based on patch in the PR but made consistentghelmer2013-05-231-0/+43
| | | | | | with existing style. PR: bin/132692
* Include descriptions of the flags and fields printed when dumping themarkj2013-05-231-0/+30
| | | | | | | IPv6 prefix list. Reviewed by: hrs MFC after: 1 week
* Change the copyright notice to a standard BSD 2-clause license and assignmarcel2013-05-231-0/+22
| | | | | | | | | | | | | | | ownership to the FreeBSD foundation for the years this file has been in the FreeBSD repository. This file was originally created by Juniper as part of upgrading to FreeBSD 4.10 (which had no MIPS support) and held functions found on other machines It grew actual functionality over time. The functionaliy was copied from other architectures and ported to MIPS on a as-needed basis. Approved by: Mark Baushke (Juniper IP) Approved by: Megan Sugiyama (Juniper legal) Pointed out by: jmallett@ Requested by: core (jhb@)
* Correct the description of the -a option: rtsol(d) -a will in fact send outmarkj2013-05-231-7/+2
| | | | | | | router solicitations on multiple interfaces. Reviewed by: hrs MFC after: 1 week
* Let iconv build on -HEAD properly.ed2013-05-236-2/+8
| | | | | | - Add NO_WMISSING_VARIABLE_DECLARATIONS where we use Yacc/Lex. - Add variable declarations where possible. - Add missing static keyword.
* Fix typo in the definition of the TWS_DATA_CCB.kib2013-05-231-1/+1
| | | | Submitted by: Andreas Turriff <maillist@turriff.net>
* Rework and organize pmap_enter_locked() function.gber2013-05-231-86/+72
| | | | | | | | | | pmap_enter_locked() implementation was very ambiguous and confusing. Rearrange it so that each part of the mapping creation is separated. Avoid walking through the redundant conditions. Extract vector_page specific PTE setup from normal PTE setting. Submitted by: Zbigniew Bodek <zbb@semihalf.com> Sponsored by: The FreeBSD Foundation, Semihalf
* Stop using PVF_MOD, PVF_REF & PVF_EXEC flags in pv_entry, use PTE.gber2013-05-232-36/+33
| | | | | | | | | | | | | Using PVF_MOD, PVF_REF and PVF_EXEC is redundant as we can get the proper info from PTE bits. When the mapping is marked as executable and has been referenced we assume that it has been executed. Similarly, when the mapping is set to be writable and is referenced, it must have been due to write access to it. PVF_MOD and PVF_REF flags are kept just for pmap_clearbit() usage, to pass the information on which bit should be cleared. Submitted by: Zbigniew Bodek <zbb@semihalf.com> Sponsored by: The FreeBSD Foundation, Semihalf
* Improve, optimize and clean-up ARMv6/v7 memory management related code.gber2013-05-234-222/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use pmap_find_pv if needed instead of multiplying its code throughout pmap-v6. Avoid possible NULL pointer dereference in pmap_enter_locked() When trying to get m->md.pv_memattr, make sure that m != NULL, in particular that vector_page is set to be NULL. Do not set PGA_REFERENCED flag in pmap_enter_pv(). On ARM any new page reference will result in either entering the new mapping by calling pmap_enter, etc. or fixing-up the existing mapping in pmap_fault_fixup(). Therefore we set PGA_REFERENCED flag in the earlier mentioned cases and setting it later in pmap_enter_pv() is just waste of cycles. Delete unused pm_pdir pointer from the pmap structure. Rearrange brackets in the fault cause detection in trap.c Place the brackets correctly in order to see course of the conditions instantaneously. Unify naming in pmap-v6.c and improve style Use naming common for whole pmap and compatible with other pmaps, improve style where possible: pm -> pmap pg -> m opg -> om *pt -> *ptep *pte -> *ptep *pde -> *pdep Submitted by: Zbigniew Bodek <zbb@semihalf.com> Sponsored by: The FreeBSD Foundation, Semihalf
* Switch to AP[2:1] access permissions model. Store "referenced"gber2013-05-235-111/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | bit in PTE. Enable Access Flag in CPU control. With AF enabled each valid mapping needs to have referenced bit in PTE set in order to be able to cache it in the TLB. AP[0] bit is to be used as reference flag. All access permissions are encoded by AP[2:1] wherein AP[1] is in fact "user enable" and AP[2](APX) is "write disable". All mappings are always set to be valid. Reference emulation is performed by setting/clearing reference flag in PTE. md.pvh_attrs are no longer necessary however pv_flags are still being used for now. Marking vm_page as "dirty" or "referenced" is being performed on: - page or flag fault servicing in pmap_fault_fixup(), basing on the fault type - vm_fault servicing in pmap_enter() according to the desired protections and faulty access type Redundant page marking has been removed as on ARM we know exactly when the particular page is referenced or is going to be written. Submitted by: Zbigniew Bodek <zbb@semihalf.com> Sponsored by: The FreeBSD Foundation, Semihalf
* Work around build breakages with GCC 4.2.jkim2013-05-238-0/+13
| | | | Reported by: tinderbox
* Don't depend on the touch binary being present.ed2013-05-222-4/+4
| | | | We can simply create an empty file by doing a no-op and redirecting stdout.
* Fix loss of the emulated keyboard on Xen PV HVM domains.gibbs2013-05-221-27/+50
| | | | | | | | | | | | | | | | | | xen/xenbus/xenbusb.c: In xenbusb_probe_children(), do not modify the XenBus state of devices for which we have no PV driver support. An emulated device we do support may share this backend. Hide the node from XenBus instead. This prevents closing the vkbd device, which Qemu's emulated keyboard device is using as the source for keyboard events. Tested with qemu-xen-traditional, qemu-xen and qemu stubdomains, all working as expected. Submitted by: Roger Pau Monne <roger.pau@citrix.com> Reviewed by: gibbs MFC after: 1 week
* Don't mess with /etc/localtime if it is a symlink.peter2013-05-221-1/+1
|
* Improve compatibility with old flex and fix build with GCC.jkim2013-05-223-3/+5
|
* Correct panic on detach of Xen PV network interfaces.gibbs2013-05-221-3/+7
| | | | | | | | | | | | | | dev/xen/netfront: In netif_free(), properly stop the interface and drain any pending timers prior to disconnecting from the backend device. Remove all media and detach our interface object from the system prior to deleting it. PR: kern/176471 Submitted by: Roger Pau Monne <roger.pau@citrix.com> Reviewed by: gibbs MFC after: 1 week
* Remove reference to removed !MPSAFE filesystem supportemaste2013-05-221-2/+2
|
* Increase the (arbitrary) limit for the number of packets per tickluigi2013-05-221-2/+1
| | | | | | | | | | | | | | | | | | | | from 1k to 20k The previous value was good 10 years ago, but not anymore now. More importantly, lots of good surprises: polling is incredibly effective under virtualization, and not only prevents livelock but also saves most of the VM exit overhead in receive mode. Using polling, a FreeBSD instance under qemu-kvm remains perfectly responsive even when bombed with 10 Mpps over an emulated e1000, and happily processes 1.7 Mpps through ipfw. Note that some incompatibilities still remain: e.g. polling is not (yet) compatible with netmap, and seems to freeze the guest when kern.polling.idle_poll=1 MFC after: 3 days
* Acquire read lock on the src object for vm_fault_copy_entry().attilio2013-05-221-4/+4
| | | | | Sponsored by: EMC / Isilon storage division Reviewed by: alc
* Fix a copy-and-paste typo.delphij2013-05-221-1/+1
|
* Regenerate with manual fixup for WITH_LDNS_UTILS inheriting WITHOUT_BIND_UTILS.delphij2013-05-221-18/+24
|
* Properly spell sentinel (missed in 250891)mckusick2013-05-221-1/+1
| | | | | | | No functional changes. Spotted by: Navdeep Parhar and Alexey Dokuchaev MFC after: 2 weeks
* Fix NULL-dereference kernel panic in case of mps_attach() failure.mav2013-05-221-2/+2
| | | | MFC after: 1 week
* Implement beacon event debugging in athalq.adrian2013-05-221-0/+39
|
* Add missing buffer releases (brelse) after bread calls that returnmckusick2013-05-221-2/+6
| | | | | | | | | an error. One could argue that returning a buffer even when it is not valid is incorrect, but bread has always returned a buffer valid or not. Reviewed by: kib MFC after: 2 weeks
* Add missing 28th element to softdep types name array.mckusick2013-05-221-1/+4
| | | | | | Found by: Coverity Scan, CID 1007621 Reviewed by: kib MFC after: 2 weeks
* Null a pointer after it is freed so that when it is returnedmckusick2013-05-221-0/+1
| | | | | | | | | | | the return value is NULL. Based on the returned flags, the return value should never be inspected in the case where NULL is returned, but it is good coding practice not to return a pointer to freed memory. Found by: Coverity Scan, CID 1006096 Reviewed by: kib MFC after: 2 weeks
* Remove a bogus check for a NULL buffer pointer.mckusick2013-05-221-7/+8
| | | | | | | | Add a KASSERT that it is not NULL. Found by: Coverity Scan, CID 1009114 Reviewed by: kib MFC after: 2 weeks
* Properly spell sentinel (not sintenel or sentinal).mckusick2013-05-221-28/+28
| | | | | | | No functional changes. Spotted by: kib MFC after: 2 weeks
* passing fd over unix socket: fix a corner case where callermjg2013-05-211-1/+8
| | | | | | | | | wants to pass no descriptors. Previously the kernel would leak memory and try to free a potentially arbitrary pointer. Reviewed by: pjd
* Add proper prerequisites for even two more headers.ed2013-05-212-1/+6
| | | | Spotted by: http://hacks.owlfolio.org/header-survey/
* Update manpages for r250887.ed2013-05-213-9/+3
| | | | | | Remove the lists of unneeded header files. Requested by: eadler
* Allow certain headers to be included more easily.ed2013-05-214-12/+18
| | | | Spotted by: http://hacks.owlfolio.org/header-survey/
* vm_object locking is not needed there as pages are already wired.attilio2013-05-211-2/+0
| | | | | Sponsored by: EMC / Isilon storage division Submitted by: alc
* o Relax locking assertions for vm_page_find_least()attilio2013-05-2114-13/+40
| | | | | | | | | | | | o Relax locking assertions for pmap_enter_object() and add them also to architectures that currently don't have any o Introduce VM_OBJECT_LOCK_DOWNGRADE() which is basically a downgrade operation on the per-object rwlock o Use all the mechanisms above to make vm_map_pmap_enter() to work mostl of the times only with readlocks. Sponsored by: EMC / Isilon storage division Reviewed by: alc
* Add <uchar.h>.ed2013-05-2118-57/+792
| | | | | | | | | | | | The <uchar.h> header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc(). While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions. Reviewed by: theraven
* Avoid signed overflow in error handling code.eadler2013-05-211-1/+3
| | | | Reviewed by: cperciva, bjk
* Connect flex 2.5.37 to the build and bump __FreeBSD_version.jkim2013-05-2133-15378/+9880
|
* Enable GNU m4 compatibility mode.jkim2013-05-211-1/+1
|
OpenPOWER on IntegriCloud