elad
0c9d8d15c9
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
...
something meaningful. All relevant documentation has been updated or
written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
2012-03-13 18:40:26 +00:00
uebayasi
4d58dccaac
Correct sizes to pass uvm_km_free(9) in error paths.
2011-07-30 06:19:02 +00:00
rmind
f132c365c0
Sprinkle __cacheline_aligned and __read_mostly.
2011-05-13 22:16:43 +00:00
rmind
c3a98b4c87
semu_alloc: simplify a little.
2009-10-05 23:46:02 +00:00
christos
461a86f9bd
merge christos-time_t
2009-01-11 02:45:45 +00:00
rmind
ea71ae9284
Fix the aligning of memory blocks again, finally...
...
Tested by <martin> on his sparc64 box.
2008-09-19 11:21:33 +00:00
njoly
24cbc2830b
- Make semctl SETVAL/SETALL commands validate the semaphore value to
...
be set, which needs to be in the range [0,SEMVMX].
- Adjust the man page.
2008-05-06 20:25:09 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
ad
1ae2046c17
semexit: do nothing if the process has not used semaphores.
2008-04-25 11:21:18 +00:00
njoly
8668268571
Fix semaphore permissions returned by semctl+IPC_STAT, by masking
...
anything else that the expected lower 9 bits.
2008-04-22 12:14:12 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
dsl
7e2790cf6f
Convert all the system call entry points from:
...
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
2007-12-20 23:02:38 +00:00
ad
a9eb927490
Merge from vmlocking2: don't hold semlock across copyin().
2007-12-08 15:02:46 +00:00
rmind
8cfca2b5e3
- Retry the operations (instead of failing) in case of reallocation.
...
Suggested by <yamt>.
- Use predicts in checks for reallocation state.
2007-11-25 19:03:24 +00:00
yamt
b53fa282d6
fix deadlocks.
2007-11-04 13:09:32 +00:00
rmind
defb3f5b28
Support for dynamic changing of SysV message queues and semaphores limits.
...
Also fixes the alignment problem, which was here forever. Thanks for <uwe>
for discussion and <martin> for testing.
Reviewed by: <tech-kern>, <gdt>
2007-11-04 11:20:34 +00:00
ad
215f99bf1f
Remove obsolete comment.
2007-08-17 23:46:34 +00:00
skd
617b9b58ef
Don't put the condvars in the *middle* of the undo structures.
...
(semu + seminfo.semmnu) is wrong, because the type of semu is int*.
You could fix the offset ((char *)semu + seminfo.semusz), but simply
putting the condvars first is more clear.
2007-08-17 23:05:06 +00:00
ad
e4f6da7b0c
Mark the SysV semaphore syscalls MP safe.
2007-08-04 10:52:57 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
dsl
27aa94d0d3
Use get_semctl_arg() here instead of the switch statement.
2007-06-17 10:27:16 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
yamt
1a7bc55dcc
remove some __unused from function parameters.
2006-11-01 10:17:58 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
christos
1d0edbd583
Coverity CID 2951, 2953, 2954: Add KASSERTS before null deref
2006-09-29 19:39:43 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
kardel
de4337ab21
merge FreeBSD timecounters from branch simonb-timecounters
...
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
elad
215bd95ba4
integrate kauth.
2006-05-14 21:15:11 +00:00
christos
b0c1177d65
Coverity CID 840: Add KASSERT before deref.
2006-04-15 04:26:43 +00:00
thorpej
218b07e98d
Use ANSI function delcs.
2005-12-07 06:14:13 +00:00
christos
60305c1ba1
fix debugging.
2005-11-10 18:45:36 +00:00
chs
ff50b97f19
fix the SYSV semop number of operations per request to be limited by
...
seminfo.semopm (which is tunable via the SEMOPM config variable)
rather than an arbitrary constant.
2005-11-03 16:57:03 +00:00
yamt
6b2d8b66a4
merge yamt-km branch.
...
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
2005-04-01 11:59:21 +00:00
briggs
9f506888d3
Update sem_otime on successful call to semop().
2004-10-07 05:34:09 +00:00
enami
8d37dcb7dc
The different loop variable is no longer necessary due to recent change.
2004-08-05 22:06:48 +00:00
junyoung
a222c81884
Nuke __P().
2004-03-23 13:22:03 +00:00
enami
55c19744c4
- remove unnecessary code.
...
- factor out common code.
- don't stop searching before the target.
- touch the correct object.
- validate the argument before the loop otherwise we need to roll back.
2004-03-18 22:57:38 +00:00
enami
a67d24818d
Whitespace nits and wrap some lines.
2004-03-18 22:53:16 +00:00
christos
b4d69b5716
PR/24814: Colin Percival: sysv_sem waiter counting problem
2004-03-18 01:16:44 +00:00
jdolecek
ae0ead8db3
fix semaphore ID bound checking
...
problem pointed and patch provided in kern/23585 by Jeff Ito
2003-11-29 11:43:25 +00:00
jdolecek
2e59e9ae06
allocate virtual memory for SYSV shm, msg and semaphore structures
...
separately from the bufpages, so that it would be possible to eventually
make their limits changeable in runtime
make static all local variables which do not need to be exported to other
kernel parts
2003-10-26 10:32:24 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
thorpej
e0d8d366df
Merge the nathanw_sa branch.
2003-01-18 10:06:22 +00:00
christos
22839acdb9
use the exithook mechanism to clean up semaphores.
2002-03-17 22:21:58 +00:00
nathanw
3f0d660168
Make the debugging printfs compile:
...
- printf format checking doesn't like %x for pointers; use %p like we should.
- LP64 fixes.
2002-03-05 23:28:58 +00:00
lukem
adc783d537
add RCSIDs
2001-11-12 15:25:01 +00:00
jdolecek
c650c8d91c
make local 'nsops' same unsigned type as the value we store there in sys_semop()
2001-08-03 05:58:18 +00:00
simonb
da251cb08f
Delete a couple of <uvm/uvm_extern.h> includes that were for
...
<sys/sysctl.h> only.
2000-07-22 16:11:02 +00:00