summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Try to adhere to style.Makefile(5).marius2010-09-232-9/+9
| | | | MFC after: 3 days
* - Simplify code by using g_*() API.pjd2010-09-232-83/+62
| | | | | | | | - Don't use u_char and u_int in userland. - Change 'unsigned' to 'unsigned int'. - Update copyright years. MFC after: 1 week
* Update copyright years.pjd2010-09-231-1/+1
| | | | MFC after: 1 week
* Update copyright years.pjd2010-09-237-7/+7
| | | | MFC after: 1 week
* Document AES-XTS.pjd2010-09-231-17/+34
| | | | MFC after: 1 week
* Add support for AES-XTS. This will be the default now.pjd2010-09-235-10/+73
| | | | MFC after: 1 week
* Add support for CRYPTO_AES_XTS.pjd2010-09-233-24/+151
| | | | MFC after: 1 week
* Add support for AES-XTS.pjd2010-09-235-15/+203
| | | | | Obtained from: OpenBSD MFC after: 1 week
* Implement switching of data encryption key every 2^20 blocks.pjd2010-09-235-55/+171
| | | | | | | This ensures the same encryption key won't be used for more than 2^20 blocks (sectors). This will be the default now. MFC after: 1 week
* Add support for CRD_F_KEY_EXPLICIT flag.pjd2010-09-231-16/+32
| | | | MFC after: 1 week
* Remove redundant space.pjd2010-09-231-1/+1
| | | | MFC after: 1 week
* Simplify code a bit.pjd2010-09-232-10/+5
| | | | MFC after: 1 week
* Make the code similar to the code in g_eli_integrity.c.pjd2010-09-231-3/+4
| | | | MFC after: 1 week
* Define default overwrite count, so that userland can use it.pjd2010-09-232-1/+2
| | | | MFC after: 1 week
* Various changes from various sources:gavin2010-09-231-3/+44
| | | | | | | | | | | | | | | - Add "children" [1] - Add "acknowledgement", "acknowledgment", "Austria" and "haunted" [2] - Add "near", "antidisestablishmentarianism" and "Persephone" [2] - "Transvaal" should be capitalized [2] - Correct spelling of "structurelessness" and "Athena" [2] - Add missing atomic elements [3] - Add various words from "word of the day" lists [3] PR: conf/149756 [1] Submitted by: Nick Johnson <freebsd spatula.net> [1] Obtained from: NetBSD [2], OpenBSD [3] MFC after: 1 week
* - When trashing metadata, repeat overwrite kern.geom.eli.overwrites times.pjd2010-09-231-12/+64
| | | | | | - Flush write cache after each write. MFC after: 1 week
* - Use g_*() API when doing backups.pjd2010-09-231-18/+12
| | | | | | - fsync() created filed. MFC after: 1 week
* Because we first write metadata into new place and then trash old place wepjd2010-09-231-0/+4
| | | | | | | don't want situation where old size is equal to new size, as we will trash newly written metadata. MFC after: 1 week
* - Make use of g_*() API.pjd2010-09-231-18/+13
| | | | | | - Flush cache after writing metadata. MFC after: 1 week
* Simplify code a bit by using g_*() API from libgeom.pjd2010-09-231-19/+10
| | | | MFC after: 1 week
* When trashing metadata, flush after each write.pjd2010-09-231-0/+7
| | | | MFC after: 1 week
* Remove an explicit assignment of the CFLAGS variable intended formarius2010-09-231-1/+0
| | | | | | debugging purposes only. MFC after: 3 days
* Add MIPS platform, this will make bsdlabel(8) work on MIPS (when invokedjchandra2010-09-231-1/+1
| | | | without a -m option. -m mips is still not supported)
* Add missing byteswap, works on big endian systems now (tested on Netlogicjchandra2010-09-231-1/+1
| | | | | | | XLS MIPS processor). Submitted by: Sreekanth M. S. <kanthms at netlogicmicro dot com> Reviewed by: mav
* In the past gunzip(1) write()'s after each inflate return. This isdelphij2010-09-231-0/+2
| | | | | | | | | | | | | | not optimal from a performance standpoint since the write buffer is not necessarily be filled up when the inflate rountine reached the end of input buffer and it's not the end of file. This problem gets uncovered by trying to pipe gunzip -c output to a GEOM device directly, which enforces the writes be multiple of sector size. Sponsored by: iXsystems, Inc. Reported by: jpaetzel MFC after: 2 weeks
* Add the following Linux BlueZ compatibility macros: htobs(), htobl(),emax2010-09-221-0/+4
| | | | | | | | btohs() and btohl() PR: kern/136386 Submitted by: Monty Hall < kungfu_disciple at sbcglobal dot net > MFC after: 1 week
* And now the 2nd part of the patch: Also fix the year.edwin2010-09-221-1/+1
| | | | | PR: 150504 Submitted by: Douglas Berry <bitnix@bitnix.ca>
* Fix location of the Battle of the Plains of Abrahamedwin2010-09-221-1/+1
| | | | | | PR: 150504 Submitted by: Douglas Berry <bitnix@bitnix.ca> MFC after: 1 week
* - Expand scope of tun/tap softc locks to cover more softc fields andjhb2010-09-222-145/+97
| | | | | | | | | | | | | | | | | driver-maintained ifnet fields (such as if_drv_flags). - Use soft locks as the mutex that protects each interface's knote list rather than using the global knote list lock. Also, use the softc for kn_hook instead of the cdev. - Use mtx_sleep() instead of tsleep() when blocking in the read routines. This fixes a lost wakeup race. - Remove D_NEEDGIANT now that the cdevsw routines use the softc lock where locking is needed. - Lock IFQ when calculating the result for FIONREAD in tap(4). tun(4) already did this. - Remove remaining spl calls. Submitted by: Marcin Cieslak saper of saper|info (3) MFC after: 2 weeks
* Move test for zero bufp or size before rseq and wseq calculation. Thisemaste2010-09-221-1/+3
| | | | | avoids spinning in an infinite loop for some (possibly corrupt?) core files at work.
* Correct sort order.emaste2010-09-221-1/+1
|
* Switch to sigprocmask(2) API also in the main process and secondary process.pjd2010-09-224-61/+44
| | | | | | | | | This way the primary process inherits signal mask from the main process, which fixes a race where signal is delivered to the primary process before configuring signal mask. Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* Assert that descriptor numbers are sane.pjd2010-09-221-0/+4
| | | | MFC after: 3 days
* Fix possible deadlock where worker process sends an event to the main processpjd2010-09-222-8/+26
| | | | | | | | | | | while the main process sends control message to the worker process, but worker process hasn't started control thread yet, because it waits for reply from the main process. The fix is to start the control thread before sending any events. Reported and fix suggested by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* Fix descriptor leaks: when child exits, we have to close control and eventpjd2010-09-223-9/+17
| | | | | | socket pairs. We did that only in one case out of three. MFC after: 3 days
* Eliminate the --disable-ipv6 string which while technically correct indougb2010-09-221-1/+1
| | | | | terms of the arguments that configure was called with is misleading because if IPv6 support is present on the system it will be present in BIND.
* If we are unable to receive control message is most likely because the mainpjd2010-09-221-1/+2
| | | | | | process died. Instead of entering infinite loop, terminate. MFC after: 3 days
* Sort includes.pjd2010-09-221-1/+1
| | | | MFC after: 3 days
* Add myself as a ports committersunpoet2010-09-222-0/+3
| | | | Approved by: pgollucci (mentor)
* Fix build breakage introduced in r212972.yongari2010-09-221-2/+0
|
* Copy td_rqindex during fork instead of zero'ing it to match the comments.jhb2010-09-221-1/+1
| | | | I do not believe there is any functional change.
* For sparc64 relocations that directly put bits of the symbol value intokib2010-09-221-18/+22
| | | | | | | | | | the location, apply elf_relocaddr to the symbol value to have right values for the symbols from dpcpu segment. PR: kern/147769 Discussed with: avg Tested by: marius MFC after: 2 weeks
* Quick fix for unmotivated C2 state usage during boot, introduced at r212541.mav2010-09-221-1/+1
| | | | That caused LAPIC timer failure and huge delays during boot on some systems.
* kdb_backtrace: use stack_print_ddb instead of stack_printavg2010-09-223-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a followup to r212964. stack_print call chain obtains linker sx lock and thus potentially may lead to a deadlock depending on a kind of a panic. stack_print_ddb doesn't acquire any locks and it doesn't use any facilities of ddb backend. Using stack_print_ddb outside of DDB ifdef required taking a number of helper functions from under it as well. It is a good idea to rename linker_ddb_* and stack_*_ddb functions to have 'unlocked' component in their name instead of 'ddb', because those functions do not use any DDB services, but instead they provide unlocked access to linker symbol information. The latter was previously needed only for DDB, hence the 'ddb' name component. Alternative is to ditch unlocked versions altogether after implementing proper panic handling: 1. stop other cpus upon a panic 2. make all non-spinlock lock operations (mutex, sx, rwlock) be a no-op when panicstr != NULL Suggested by: mdf Discussed with: attilio MFC after: 2 weeks
* acpi_attach: do not explicitly install default handlers for defaultavg2010-09-221-23/+0
| | | | | | | | | | | | | | | | | | address spaces There has been no need to do that starting with ACPICA 20040427 as AcpiEnableSubsystem() installs the handlers automatically. Additionaly, explicitly calling AcpiInstallAddressSpaceHandler before AcpiEnableSubsystem is not supported by ACPICA and leads to too early execution of _REG methods in some DSDTs, which may result in problems. Big thanks to Robert Moore of ACPICA/Intel for explaining the above. Reported by: Daniel Bilik <daniel.bilik@neosystem.cz> Tested by: Daniel Bilik <daniel.bilik@neosystem.cz> Reviewed by: jkim Suggested by: "Moore, Robert" <robert.moore@intel.com> MFC after: 1 week
* If kernel built with DEVICE_POLLING, keep one CPU always in active statemav2010-09-221-1/+6
| | | | to handle it.
* Decrease poll interval from 1000 to 100us. This significantly reducesmav2010-09-221-3/+3
| | | | kernel dump time, especially with minidump.
* Make the labels match the device name that's mounted, not just theimp2010-09-221-2/+4
| | | | | | | | | | slice they are on. When NANO_LABEL is not defined, the fstab generates entries that specify /dev/ad0s1a. When NANO_LABEL is defined, it generates /dev/usb/${NANO_LABEL}s1a. The prior code created the file system with a label of ${NANO_LABEL}s1, leading to problems on boot. Pointy hat to: imp@
* Enforce that 'pmap_kenter()' is only used to establish cacheable mappings.neel2010-09-223-8/+6
| | | | | | | Mappings with other cacheability attributes can be established, if needed, by using 'pmap_kenter_attr()'. Suggested by: jchandra, imp
* Add new device ids.sanpei2010-09-213-0/+8
| | | | | | | | | | Buffalo (Melco Inc.) LUA3-U2-AGT Logitec LAN-GTJ/U2A(usb/119981) PR: usb/119981 and me Submitted by: "Y.Okabe" <be_works_us at yahoo.com>, hiroo at oikumene.gcd.org Reviewed by: thompsa MFC after: 3 days
OpenPOWER on IntegriCloud