summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Audit the argv and env vectors passed in on exec:wsalamon2006-09-019-12/+155
| | | | | | | | | | | | Add the argument auditing functions for argv and env. Add kernel-specific versions of the tokenizer functions for the arg and env represented as a char array. Implement the AUDIT_ARGV and AUDIT_ARGE audit policy commands to enable/disable argv/env auditing. Call the argument auditing from the exec system calls. Obtained from: TrustedBSD Project Approved by: rwatson (mentor)
* Don't build iwi(4) on amd64, there are problems with the firmware modules.brueffer2006-09-011-1/+0
| | | | | | Reported by: sam Approved by: rwatson (mentor) MFC after: 3 days
* Fix my error in rev. 1.109.glebius2006-09-011-2/+2
| | | | | Submitted by: jhb Pointy hat to: glebius
* In cpu_set_user_tls(), properly set the thread pointer. It is 0x7000marcel2006-09-012-2/+2
| | | | bytes after the end of the TCB, which is itself 8 bytes.
* More ispfwfunc definitions funnies which break pre-7.0 builds.mjacob2006-09-013-2/+4
|
* Add missing pre-7.0 firmware pointer. Oops.mjacob2006-09-011-0/+3
|
* fix bug in 2322 receive sequencer f/w loadmjacob2006-09-011-3/+3
|
* Add support for another ATI IGP 340M (RS200M) AGP bridge.anholt2006-09-012-2/+8
| | | | | | PR: kern/100958 Submitted by: Kazuo Dohzono <dohzono@axion-software.com> MFC after: 1 week
* Just foward declare 'struct adapter' instead of declaring an actualjhb2006-08-311-2/+3
| | | | 'adapter' structure.
* Compare the correct field against NULL when determining whether or not tojhb2006-08-311-1/+1
| | | | do bus_teardown_intr().
* Recognise IPv6 PIM packets.jhay2006-08-311-0/+6
| | | | MFC after: 1 week
* Add PHY support for BCM5752.yongari2006-08-311-0/+2
| | | | Tested by: delphij, Ganbold < ganbold AT micom DOT mng DOT net >
* Add Broadcom BCM5752 PHY id.yongari2006-08-311-0/+1
|
* Fix typos: s/rebulid/rebuild/rse2006-08-311-4/+4
| | | | Submitted by: Christoph Schug <chris@schug.net>
* Reorder some statments. Fix typo and remove stale comments.davidxu2006-08-301-20/+16
|
* Properly initialize the nVidia MCP5X interrupts etc.sos2006-08-301-2/+7
| | | | Suggested by: nVidia
* Remove dead code, already defined in sys/cdef.hcognet2006-08-301-9/+0
| | | | Spotted out by: bde
* Use ENTRY_NP for alternate entry points instead of ENTRY to avoid callingcognet2006-08-301-3/+3
| | | | | | mcount twice when profiling. Spotted out by: bde
* Use ENTRY instead of ALTENTRY, it doesn't exist on arm.cognet2006-08-291-1/+1
|
* Fix for a deadlock triggered by a 'umount -f' causing a NFS request to nevermohans2006-08-291-2/+14
| | | | | | retransmit (or return). Thanks to John Baldwin for helping nail this one. Found by : Kris Kennaway
* The _sx_assert() prototype should exist if either of INVARIANTS orjhb2006-08-291-1/+1
| | | | | | | | INVARIANT_SUPPORT is defined so you can build a kernel with INVARIANT_SUPPORT, but build a module with just INVARIANTS on. MFC after: 3 days Reported by: kuriyama
* Restore Digital Outpur Register (DOR) for enhanced controller after reset.jkim2006-08-291-2/+2
|
* Ooops m->md.pvh_attrs can't be used to know if the page is writeable, becausecognet2006-08-281-4/+1
| | | | | | it only remembers if the page is modified or referenced. Bad review from: cognet
* Relocate the vector page for AT91, to work around bugs with the LOW_VECTORcognet2006-08-283-9/+13
| | | | code.
* FREE -> freessouhlal2006-08-281-2/+2
| | | | Submitted by: rdivacky
* MFi386 parts of rev 1.55 (modulo real MD parts):netchild2006-08-281-9/+10
| | | | | | | - implement CLONE_PARENT semantic - lock proc in the currently disabled part of CLONE_THREAD Submitted by: rdivacky
* Update comments about interrupted mutex locking.davidxu2006-08-281-12/+5
|
* Regenerate.davidxu2006-08-286-12/+16
|
* This is initial version of POSIX priority mutex support, a new userlanddavidxu2006-08-284-201/+1749
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mutex structure is added as following: struct umutex { __lwpid_t m_owner; uint32_t m_flags; uint32_t m_ceilings[2]; uint32_t m_spare[4]; }; The m_owner represents owner thread, it is a thread id, in non-contested case, userland can simply use atomic_cmpset_int to lock the mutex, if the mutex is contested, high order bit will be set, and userland should do locking and unlocking via kernel syscall. Flag UMUTEX_PRIO_INHERIT represents pthread's PTHREAD_PRIO_INHERIT mutex, which when contention happens, kernel should do priority propagating. Flag UMUTEX_PRIO_PROTECT indicates it is pthread's PTHREAD_PRIO_PROTECT mutex, userland should initialize m_owner to contested state UMUTEX_CONTESTED, then atomic_cmpset_int will be failure and kernel syscall should be invoked to do locking, this becauses for such a mutex, kernel should always boost the thread's priority before it can lock the mutex, m_ceilings is used by PTHREAD_PRIO_PROTECT mutex, the first element is used to boost thread's priority when it locked the mutex, second element is used when the mutex is unlocked, the PTHREAD_PRIO_PROTECT mutex's link list is kept in userland, the m_ceiling[1] is managed by thread library so kernel needn't allocate memory to keep the link list, when such a mutex is unlocked, kernel reset m_owner to UMUTEX_CONTESTED. Flag USYNC_PROCESS_SHARED indicate if the synchronization object is process shared, if the flag is not set, it saves a vm_map_lookup() call. The umtx chain is still used as a sleep queue, when a thread is blocked on PTHREAD_PRIO_INHERIT mutex, a umtx_pi is allocated to support priority propagating, it is dynamically allocated and reference count is used, it is not optimized but works well in my tests, while the umtx chain has its own locking protocol, the priority propagating protocol are all protected by sched_lock because priority propagating function is called with sched_lock held from scheduler. No visible performance degradation is found which these changes. Some parameter names in _umtx_op syscall are renamed.
* Implement casuword32, compare and set user integer, thank Marcel Moolenarrdavidxu2006-08-288-2/+96
| | | | who wrote the IA64 version of casuword32.
* Refactor vm_page_sleep_if_busy() so that the test for a busy page isalc2006-08-272-25/+41
| | | | | | inlined and a procedure call is made in the rare case, i.e., when it is necessary to sleep. In this case, inlining the test actually makes the kernel smaller.
* Fix video playing and network connections in realplayer (and most likelynetchild2006-08-271-14/+11
| | | | | | | | | | | | | | | | | | | | other stuff) in the osrelease=2.6.16 case: - implement CLONE_PARENT semantic - fix TLS loading in clone CLONE_SETTLS - lock proc in the currently disabled part of CLONE_THREAD I suggest to not unload the linux module after testing this, there are some "<defunct>" processes hanging around after exiting (they aren't with osrelease=2.4.2) and they may panic your kernel when unloading the linux module. They are in state Z and some of them consume CPU according to ps. But I don't trust the CPU part, the idle threads gets too much CPU that this may be possible (accumulating idle, X and 2 defunct processes results in 104.7%, this looks to much to be a rounding error). Noticed by: Intron <mag@intron.ac> Submitted by: rdivacky (in collaboration with Intron) Tested by: Intron, netchild Reviewed by: jhb (previous version)
* Fill in dump_avail[] before pmap_boostrap() is called so thatcognet2006-08-271-4/+4
| | | | ARM_USE_SMALL_ALLOC work.
* Resurrect reference to (contemporary) kern.ipc.nmbclusters.marck2006-08-271-1/+2
| | | | | | Suggested by: ru MFC after: 3 days
* regennetchild2006-08-276-10/+12
|
* Add the linux statfs64 call. This allows Tivoli backup to proceed a littlenetchild2006-08-275-4/+53
| | | | | | | | | but further on -current (still not successful, but a step into the right direction). Sponsored by: Google SoC 2006 Submitted by: rdivacky Tested by: Paul Mather <paul@gromit.dlib.vt.edu>
* GCC 3.4.6 gets confused on this file and produces bogus warning.kan2006-08-261-1/+1
| | | | Shut it up.
* Fix panic associated with file creation via RPC/NFS when the MLS policycsjp2006-08-261-0/+12
| | | | | | | | is loaded. This problem stems from the fact that the policy is not properly initializing the mac label associated with the NFS daemon. Obtained from: TrustedBSD Project Discussed with: rwatson
* Add 2400 f/w support.mjacob2006-08-262-0/+37
|
* Add QLogic 2400 (4Gb) firmware.mjacob2006-08-262-1/+12242
|
* Allow the user process to query the kernel's notion of a maximumrwatson2006-08-262-0/+6
| | | | | | | | | audit record size at run-time, which can be used by the user process to size the user space buffer it reads into from the audit pipe. Perforce change: 105098 Obtained from: TrustedBSD Project
* Fix for a bug that causes the computation of "len" in tcp_output() tomohans2006-08-262-0/+8
| | | | | get messed up, resulting in an inconsistency between the TCP state and so_snd.
* Fix another bug introduced with rev. 1.204; in vfs_donmount() ifmarius2006-08-261-2/+1
| | | | | | | | | | | the 'vfs_getopt(optlist, "errmsg", (void **)&errmsg, &errmsg_len)' call fails, 'errmsg' is left uninitialized, making the later tests against NULL meaningless, and the uses bogus. Thus initialize 'errmsg' to NULL beforehand. [1] While at it, remove the superfluous assignment of 0 to 'errmsg_len' if the above mentioned call fails as it's already initialized to 0. Submitted by: Michael Plass [1]
* The "taskqueue_fast" spinlocks were renamed to "fast_taskqueue" inssouhlal2006-08-261-1/+1
| | | | | | subr_taskqueue.c:r1.32 Reported by: rdivacky
* Correct the number of retries in a futex_wake() call.netchild2006-08-261-2/+6
| | | | | Sponsored by: Google SoC 2006 Submitted by: rdivacky
* Update kernel OpenBSM parts, especially src/sys/bsm, for the OpenBSMrwatson2006-08-266-147/+229
| | | | | | | 1.0 alpha 9 import. See the OpenBSM import commit message for a detailed summary of changes. Obtained from: TrustedBSD Project
* Prevent a call to contigmalloc() that asks for more physical memory thanalc2006-08-261-1/+1
| | | | | | | | the machine has from causing a panic. Submitted by: Michael Plass PR: 101668 MFC after: 3 days
* Eliminate unused definitions. (They came from NetBSD.)alc2006-08-253-24/+0
| | | | Discussed with: cognet, grehan, marcel
* Move the bridge hook after the loopback check so that IFF_SIMPLEX is honouredthompsa2006-08-251-8/+8
| | | | | | on member interfaces. This makes us the same as OpenBSD/NetBSD. MFC after: 3 days
* The bridge cant hear its own transmissions so set IFF_SIMPLEX.thompsa2006-08-251-1/+1
| | | | | | PR: kern/102361 Tested by: Radim Kolar <hsn@netmag.cz> MFC after: 3 days
OpenPOWER on IntegriCloud