NetBSD/sys
dsl 2e20a70dbf Change the way p->p_limit (and hence p->p_rlimit) is locked.
Should fix PR/36939 and make the rlimit code MP safe.
Posted for comment to tech-kern (non received!)

The p_limit field (for a process) is only be changed once (on the first
  write), and a reference to the old structure is kept (for code paths
  that have cached the pointer).
Only p->p_limit is now locked by p->p_mutex, and since the referenced memory
  will not go away, is only needed if the pointer is to be changed.
The contents of 'struct plimit' are all locked by pl_mutex, except that the
  code doesn't bother to acquire it for reads (which are basically atomic).
Add FORK_SHARELIMIT that causes fork1() to share the limits between parent
  and child, use it for the IRIX_PR_SULIMIT.
Fix borked test for both IRIX_PR_SUMASK and IRIX_PR_SDIR being set.
2007-09-29 12:22:30 +00:00
..
altq init tbr_callout in all cases (hi ad!) 2007-09-04 14:17:16 +00:00
arch Repair the RAS check. 2007-09-28 17:02:39 +00:00
coda * nuke the nameidata parameter from VFS_MOUNT(). Nobody on tech-kern 2007-07-31 21:14:15 +00:00
compat Change the way p->p_limit (and hence p->p_rlimit) is locked. 2007-09-29 12:22:30 +00:00
conf Always build & link net/link_proto.c, since net/if.c needs it. 2007-09-28 22:52:13 +00:00
contrib/dev/ath Make ath(4) work again on sparc64 (and other big-endian machines). 2007-08-28 00:12:46 +00:00
crypto Added missing const-qualifiers. 2007-01-22 01:38:33 +00:00
ddb Minor clenaup - db_cmd_loop_done is a bool nowadays, so use true/false 2007-09-23 23:55:54 +00:00
dev Properly set b_resid in an error case. 2007-09-29 11:04:51 +00:00
dist Fixed IPF bug #1767831 2007-09-17 18:02:21 +00:00
fs Release vnode being created in error branch instead of leaving it 2007-09-28 19:48:42 +00:00
gdbscripts adapt to mnt_vnodelist being TAILQ 2006-11-04 20:33:17 +00:00
ipkdb Remove more duplicate headers. 2007-01-29 01:52:43 +00:00
kern Change the way p->p_limit (and hence p->p_rlimit) is locked. 2007-09-29 12:22:30 +00:00
lib Rename __assert() to __kernassert() so that it doesn't collide 2007-09-24 14:19:03 +00:00
lkm Split routines handling nodes from puffs_subr to puffs_node. 2007-09-27 23:21:07 +00:00
miscfs Make bioops a pointer and point it to the softdeps struct in softdep 2007-09-01 23:40:21 +00:00
net Constify sockaddr argument to ether_multiaddr(). Change struct 2007-09-19 05:25:33 +00:00
net80211 Add a sockaddr_storage member to "struct ifreq" maintaining backwards 2007-05-29 21:32:27 +00:00
netatalk Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and 2007-09-01 04:32:50 +00:00
netbt Macros that are meant for statements (instead of expressions) SHALL 2007-09-17 01:23:17 +00:00
netinet Don't use INADDR_ANY to initialize a const struct, because INADDR_ANY 2007-09-19 18:52:55 +00:00
netinet6 {ah,esp,ipcomp}_output must return 0 on success. On failure, it returns the 2007-09-22 11:32:06 +00:00
netipsec Fix my previous stupid caddr_t fix. 2007-09-22 23:33:18 +00:00
netisdn Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
netiso We cannot sleep in a software interrupt, so do not sockaddr_dl_alloc(..., 2007-09-02 19:42:21 +00:00
netkey Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
netnatm Eliminate address family-specific route caches (struct route, struct 2007-05-02 20:40:22 +00:00
netsmb Don't exit an unheld mutex. 2007-07-10 21:05:03 +00:00
nfs nfs_mount: Plug a possible leaks. 2007-09-06 01:11:44 +00:00
opencrypto Fix a stupid bogus bcopy -> memcpy conversion. 2007-09-22 23:38:17 +00:00
rump call biooops sync from sync 2007-09-26 21:23:24 +00:00
secmodel Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
stand
sys Change the way p->p_limit (and hence p->p_rlimit) is locked. 2007-09-29 12:22:30 +00:00
ufs avoid variable size stack allocations 2007-09-25 15:13:14 +00:00
uvm make RANGE_TEST a function. 2007-09-23 16:05:40 +00:00
Makefile remove sun2 from no-rump list 2007-09-24 14:19:36 +00:00