summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Allow to use the old -a option to specify an encryption algorithm to usepjd2006-06-061-13/+31
| | | | | (for backward compatibility), but print a warning to inform about the change.
* Convert the last offender, the SA1110 port, to ARM32_NEW_VM_LAYOUT, andcognet2006-06-064-66/+15
| | | | completely nuke the !ARM32_NEW_VM_LAYOUT case.
* Remove a bogus, useless, "i++".cognet2006-06-061-1/+0
|
* Add partial pmap locking.alc2006-06-061-30/+34
| | | | Tested by: cognet@
* Use the acpi_event_sleep_button_sleep() function instead ofnyan2006-06-061-1/+1
| | | | | | the acpi_SetSleepState(). Submitted by: njl
* When DIAGNOSTIC is defined, verify if we don't free crypto requests frompjd2006-06-061-0/+21
| | | | the crypto queue or from the return queue.
* - Unbreak the build when geli is compiled into the kernel (on as module),pjd2006-06-061-2/+2
| | | | | | by silencing unfounded compiler warning. Reported by:
* Handle errors in the same way it is done in safe(4).pjd2006-06-061-2/+4
|
* Don't increase hst_obytes field twice - it is already done at the beginingpjd2006-06-061-1/+0
| | | | | | of the function. It was wrong anyway, because we also support uio's structures, not only mbufs.
* Make ke_rqindex unsigned.davidxu2006-06-062-2/+2
|
* Extract pointer value for mnt_stat from vp after the NULL check, notrwatson2006-06-061-1/+2
| | | | | | | before. Coverity ID: 134394 Found with: Coverity Prevent (tm)
* Use NET_CALLOUT_MPSAFE for netgraph callout initializer.glebius2006-06-062-3/+1
|
* The procedure of raceless switching between polling mode andglebius2006-06-061-105/+102
| | | | | | | | | | | | | | taskqueued interrupt mode is going to be quite complex. Since the polling mode is considered legacy feature for em(4) driver, the decision is made to make polling and new interrupt handler mutually exclusive, selected at compile time. If kernel is compiled with DEVICE_POLLING, the fast taskqueued interrupt handler code is disabled and the em_poll() and legacy em_intr() functions are enabled. Otherwise, legacy functions are disabled and only em_intr_fast() code is compiled. Discussed with: scottl
* Add partial pmap locking.alc2006-06-062-8/+29
| | | | | | Eliminate the unused allpmaps list. Tested by: cognet@
* Correct a typo in the previous revision.alc2006-06-062-2/+2
|
* Add a stub for pmap_enter_object().alc2006-06-061-0/+7
|
* Make VERBOSE_INIT_ARM compile by fixing various printf formats, and add itcognet2006-06-062-2/+3
| | | | | | as an option. Submitted by: Max N. Boyarov <m.boyarov at bsd dot by>
* vm_page_alloc_contig() can sleep, so don't even think about using itcognet2006-06-051-8/+9
| | | | in the M_NOWAIT case.
* Really fix the typo this time: it should be sc->sc_drvbpf to be verified,avatar2006-06-051-1/+1
| | | | not ic->ic_drvbpf.
* Fixing a typo in rev1.196.avatar2006-06-051-1/+1
|
* Remove use of Giant around vn_open() in audit trail setup.rwatson2006-06-051-15/+10
| | | | | Submitted by: jhb, wsalamon Obtained from: TrustedBSD Project
* Do some source && comment cleanup.mjacob2006-06-052-35/+14
| | | | | | | | | | | | | | | | Clean out the abortive start to homegrown, per-mpt, Domain Validation. This should really be done at a higher level. Use the PIM_SEQSCAN flag for U320- this seems to correct cases of being unable to consistently negotiate U320 in the cases where I'd seen this before. Between this and other recent checkins, this driver is pretty close to being ready for MFC. Reviewed by: scottl, ken, scsi@ MFC after: 1 week
* Add PIM_SEQSCAN for HBA misc flags and code that understandsmjacob2006-06-052-33/+81
| | | | | | | | | | | | | | | | | | | | | | | what to do with it. This forces us to scan targets sequentially, not in parallel. The reason we might want to do this is that SPI negotiation might not work right at the SIM level if we try to do it in parallel. We *could* fix this for each SIM where this is broken, but it's a lot harder to do that when we can simply ask CAM to probe sequentially. If PIM_SEQSCAN is not set (default), the original behaviour for probing is unchanged. LUN probing is still done in parallel for each target in either case. While we're at it, clean up some resource leakage for error cases. Reviewed by: ken, scott, scsi@ MFC after: 1 week
* Connect new GELI files to the build.pjd2006-06-052-1/+11
| | | | Supported by: Wheel Sp. z o.o. (http://www.wheel.pl)
* Implement data integrity verification (data authentication) for geli(8).pjd2006-06-056-275/+1101
| | | | Supported by: Wheel Sp. z o.o. (http://www.wheel.pl)
* Make kern.geom.eli.overwrites sysctl a tunable as well.pjd2006-06-051-0/+1
|
* Assuming the interface has an address of x.x.x.195, a mask ofqingli2006-06-051-0/+6
| | | | | | | | | | | | | | | | | | | | | 255.255.255.0, and a default route with gateway x.x.x.1. Now if the address mask is changed to something more specific, e.g., 255.255.255.128, then after the mask change the default gateway is no longer reachable. Since the default route is still present in the routing table, when the output code tries to resolve the address of the default gateway in function rt_check(), again, the default route will be returned by rtalloc1(). Because the lock is currently held on the rtentry structure, one more attempt to hold the lock will trigger a crash due to "lock recursed on non-recursive mutex ..." This is a general problem. The fix checks for the above condition so that an existing route entry is not mistaken for a new cloned route. Approriately, an ENETUNREACH error is returned back to the caller Approved by: andre
* Add g_duplicate_bio() function which does the same thing what g_clone_bio()pjd2006-06-052-0/+26
| | | | is doing, but g_duplicate_bio() allocates new bio with M_WAITOK flag.
* Introduce the function pmap_enter_object(). It maps a sequence of residentalc2006-06-0510-61/+386
| | | | | | | pages from the same object. Use it in vm_map_pmap_enter() to reduce the locking overhead of premapping objects. Reviewed by: tegge@
* Fix kernel panic in rt2661_tx_intr() if no frames has been sent.fjoe2006-06-051-0/+4
| | | | Obtained from: OpenBSD (sys/dev/ic/rt2661.c rev. 1.15)
* Fix cut-n-pasteo: use the i386 version #define for i386 dumps, not the amd64 ↵emaste2006-06-051-1/+1
| | | | one.
* Add altq(4) support.brueffer2006-06-051-4/+6
| | | | | | Reviewed by: mlaier Approved by: rwatson (mentor) MFC after: 2 weeks
* move hal bus+tag externalization to the bus glue code where it belongs;sam2006-06-053-6/+6
| | | | | | this is a noop on all current freebsd architectures MFC after: 1 month
* - Declare the PnP map const.marius2006-06-051-1/+4
| | | | | | | - Add devices found in V210 to the PnP map. - Don't leak memory if we didn't find a match for a node in the PnP map. MFC after: 2 weeks
* resolve merge conflictssam2006-06-051-9/+36
| | | | MFC after: 1 month
* This commit was generated by cvs2svn to compensate for changes in r159285,sam2006-06-0574-102663/+127118
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Version 0.9.17.2:sam2006-06-0575-102672/+127154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o define HAL_SOFTC, HAL_BUS_TAG, and HAL_BUS_HANDLE to be machine independent; this fixes portability issues with bsd systems o add ah_disable api for turning off operation of both MAC and PHY o add ah_getAntennaSwitch and ah_setAntennaSwitch api's for better control of antenna usage and diversity o add ah_setAckCTSRate and ah_setAckCTSRate for controlling tx rate of h/w generated frames o add ah_setBeaconTimers api for simpler setting of the beacon timer registers o remove ah_waitForBeaconDone api o add HAL_TXDESC_DURENA flag to enable h/w duration setting in tx descriptor o correct documentation of min/max tx power units (.5 dBm) o switch arm, mips, and powerpc builds to use functions for register read/write operations o fix sparc builds to not reference %g2 and %g3 registers o add public builds for SoC's MFC after: 1 month
* | Upon further review, DES prefers this change over that in revision 1.13ghelmer2006-06-051-6/+4
| | | | | | | | | | | | | | to resolve the directory access problem for processes with P_SUGID flag set. Suggested by: des
* | - Pretend to accelerate various HMAC algorithms, so padlock(4) can be usedpjd2006-06-051-91/+266
| | | | | | | | | | | | | | | | with fast_ipsec(4) and geli(8) authentication (comming soon). If consumer requests only for HMAC algorithm (without encryption), return EINVAL. - Add support for the CRD_F_KEY_EXPLICIT flag, for both encryption and authentication.
* | When generating BSM tokens for mkfifo(), include mode argument.rwatson2006-06-051-1/+6
| | | | | | | | | | Submitted by: wsalamon Obtained from: TrustedBSD Project
* | When generating the process token, need to check whether therwatson2006-06-052-15/+14
| | | | | | | | | | | | | | | | | | process was sucessfully audited. Otherwise, generate the PID token. This change covers the pid < 0 cases, and pid lookup failure cases. Submitted by: wsalamon Obtained from: TrustedBSD Project
* | Consistently use audit_free() to free records, rather thanrwatson2006-06-051-2/+2
| | | | | | | | | | | | | | directly invoking uma_zfree(). Perforce change: 96652 Obtained from: TrustedBSD Project
* | Audit some arguments to nmount(), mount(), umount().rwatson2006-06-051-1/+10
| | | | | | | | | | Submitted by: wsalamon Obtained from: TrustedBSD Project
* | Revert the part of rev. 1.3 which changed the software style to bemarius2006-06-051-2/+10
| | | | | | | | | | | | | | | | set to ILACC rather than PCnet-PCI as VMware doesn't implement ILACC compatibility, resulting in the VMware virtual machine to crash if enabled. Add a comment regarding usage of ILACC vs. PCnet-PCI mode. Reported and tested by: gnn, wsalamon
* | Introduce support for per-audit pipe preselection independent from therwatson2006-06-056-66/+519
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | global audit trail configuration. This allows applications consuming audit trails to specify parameters for which audit records are of interest, including selecting records not required by the global trail. Allowing application interest specification without changing the global configuration allows intrusion detection systems to run without interfering with global auditing or each other (if multiple are present). To implement this: - Kernel audit records now carry a flag to indicate whether they have been selected by the global trail or by the audit pipe subsystem, set during record commit, so that this information is available after BSM conversion when delivering the BSM to the trail and audit pipes in the audit worker thread asynchronously. Preselection by either record target will cause the record to be kept. - Similar changes to preselection when the audit record is created when the system call is entering: consult both the global trail and pipes. - au_preselect() now accepts the class in order to avoid repeatedly looking up the mask for each preselection test. - Define a series of ioctls that allow applications to specify whether they want to track the global trail, or program their own preselection parameters: they may specify their own flags and naflags masks, similar to the global masks of the same name, as well as a set of per-auid masks. They also set a per-pipe mode specifying whether they track the global trail, or user their own -- the door is left open for future additional modes. A new ioctl is defined to allow a user process to flush the current audit pipe queue, which can be used after reprogramming pre-selection to make sure that only records of interest are received in future reads. - Audit pipe data structures are extended to hold the additional fields necessary to support preselection. By default, audit pipes track the global trail, so "praudit /dev/auditpipe" will track the global audit trail even though praudit doesn't program the audit pipe selection model. - Comment about the complexities of potentially adding partial read support to audit pipes. By using a set of ioctls, applications can select which records are of interest, and toggle the preselection mode. Obtained from: TrustedBSD Project
* | Temporary workaround to prevent leak of Giant from nfsd when callingkib2006-06-052-0/+20
| | | | | | | | | | | | | | | | | | lookup(). Reviewed by: tegge Tested by: "Arno J. Klaassen" <arno at heho snv jussieu fr>, "Rong-en Fan" <grafan at gmail com>, Dmitriy Kirhlarov <dimma at higis ru>, Dmitry Pryanishnikov <dmitry at atlantis dp ua> MFC after: 1 week Approved by: kan, pjd (mentors)
* | Fix a number of cases where ugen would panic, especially when theiedowse2006-06-051-32/+85
| | | | | | | | | | | | | | | | | | device went away while open or if you tried to change the config number while devices were open. Based on the patch from the PR with a number of changes as discussed with the submitter. PR: usb/97271 Submitted by: Anish Mistry
* | Shorten audit record zone name.rwatson2006-06-051-1/+1
| | | | | | | | | | Perforce change: 93598 Obtained from: TrustedBSD Project
* | No longer unconditionally drain the audit record queue if there isrwatson2006-06-051-35/+5
| | | | | | | | | | | | | | not an active audit trail: instead, continue to iterate through each record in case an audit pipe is interested. Obtained from: TrustedBSD Project
* | Pull BSM conversion logic out of audit_record_write(), as well asrwatson2006-06-051-84/+48
| | | | | | | | | | | | | | | | | | | | | | | | knowledge of user vs. kernel audit records into audit_worker_process_record(). This largely confines vnode knowledge to audit_record_write(), but avoids that logic knowing about BSM as opposed to byte streams. This will allow us to improve our ability to support real-time audit stream processing by audit pipe consumers while auditing is disabled, but this support is not yet complete. Obtained from: TrustedBSD Project
OpenPOWER on IntegriCloud