freebsd-dev/sys
John Baldwin 9ae328fc8f - Close a race between enumerating UNIX domain socket pcb structures via
sysctl and socket teardown by adding a reference count to the UNIX domain
  pcb object and fixing the sysctl that enumerates unpcbs to grab a
  reference on each unpcb while it builds the list to copy out to userland.
- Close a race between UNIX domain pcb garbage collection (unp_gc()) and
  file descriptor teardown (fdrop()) by adding a new garbage collection
  flag FWAIT.  unp_gc() sets FWAIT while it walks the message buffers
  in a UNIX domain socket looking for nested file descriptor references
  and clears the flag when it is finished.  fdrop() checks to see if the
  flag is set on a file descriptor whose refcount just dropped to 0 and
  waits for unp_gc() to clear the flag before completely destroying the
  file descriptor.

MFC after:	1 week
Reviewed by:	rwatson
Submitted by:	ups
Hopefully makes the panics go away:	mx1
2007-01-05 19:59:46 +00:00
..
amd64 regen after addition of linux_utimes and linux_rt_sigtimedwait 2006-12-31 13:20:31 +00:00
arm Hints are handled differently on -current 2007-01-05 10:30:51 +00:00
boot MFp4: differences for bwct ethernet attachment 2006-12-20 18:26:37 +00:00
bsm Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New events 2006-09-25 12:22:07 +00:00
cam fix botch 2006-12-21 23:20:51 +00:00
coda change vop_lock handling to allowing tracking of callers' file and line for 2006-11-13 05:51:22 +00:00
compat Fix amd64 build. 2007-01-01 14:47:45 +00:00
conf MFp4: add BWCT kernel configuration 2007-01-05 02:08:35 +00:00
contrib Clean up pfr_kentry_pl2 as well. This fixes a kernel panic in the vm.zone 2007-01-01 16:51:11 +00:00
crypto Initialize T1 to silent gcc warning. 2006-10-22 02:19:33 +00:00
ddb Threading cleanup.. part 2 of several. 2006-12-06 06:34:57 +00:00
dev Another (minor) CAM_NEW_TRAN backport thingie, plus a slightly 2007-01-05 17:51:33 +00:00
fs Simplify code in union_hashins() and union_hashget() functions. These 2007-01-05 14:06:42 +00:00
gdb Convert to new console api 2006-05-26 13:54:27 +00:00
geom Softc may be NULL in g_journal_orphan(), so don't be surprised. 2006-12-02 09:10:29 +00:00
gnu Previously, the mount_ext2fs binary listed the acceptable mount 2006-11-18 18:22:11 +00:00
i4b Fix fat-fingering in previous commit. 2006-12-29 16:38:22 +00:00
i386 regen after addition of linux_utimes and linux_rt_sigtimedwait 2006-12-31 13:20:31 +00:00
ia64 Add a lwpid field into per-cpu structure, the lwpid represents current 2006-12-20 04:40:39 +00:00
isa Be consistent with the spelling of "dependent" in user-visible places. 2006-12-30 11:55:47 +00:00
isofs/cd9660 The ISO9660 spec does allow files up to 4G. Change the i_size 2006-12-08 07:43:53 +00:00
kern - Close a race between enumerating UNIX domain socket pcb structures via 2007-01-05 19:59:46 +00:00
libkern Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
modules Build bits for ng_deflate(4) and ng_pred1(4). 2006-12-29 13:16:43 +00:00
net style(9) nit. Prefer struct[space]name[space]{ to make grep searches more 2007-01-01 21:49:39 +00:00
net80211 o unbreak rate set defaulting 2006-12-28 01:31:26 +00:00
netatalk Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netatm Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netgraph Various bpf(4) related fixes to catch places up to the new bpf(4) 2006-12-29 13:59:50 +00:00
netinet Prevent adding a rule with a nat action in case IPFIREWALL_NAT was not defined. 2007-01-05 12:15:31 +00:00
netinet6 a) macro-ization of all mbuf and random number 2006-12-29 20:21:42 +00:00
netipsec s,#if INET6,#ifdef INET6, 2006-12-14 17:33:46 +00:00
netipx Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netkey With exception of the if_name() macro, all definitions in net_osdep.h 2006-08-04 21:27:40 +00:00
netnatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netncp Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netsmb Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
nfs NFSv4 client: 2006-11-28 19:33:28 +00:00
nfs4client NFSv4 client: 2006-11-28 19:33:28 +00:00
nfsclient NetApp filers return corrupt post op attrs in the wcc on NFS error responses. 2006-12-11 19:54:25 +00:00
nfsserver The nfsm_srvpathsiz() macro in nfsrv_symlink() in nfs_serv.c should 2007-01-02 20:42:08 +00:00
opencrypto When DIAGNOSTIC is defined, verify if we don't free crypto requests from 2006-06-06 15:04:52 +00:00
pc98 Allow machdep.cpu_idle_hlt to be set from the loader. This should allow 2006-12-06 18:27:17 +00:00
pccard
pci Make agp_intel capable to work after resume from S3 state. 2007-01-05 14:46:18 +00:00
powerpc In cpu_reset(), call OF_reboot() instead of OF_exit(). The latter 2006-12-28 23:56:50 +00:00
rpc
security Teach the stub policy about some of the more recent entry points that have 2007-01-01 01:47:18 +00:00
sparc64 add new large page sizes for use by shared loader 2006-12-18 07:28:59 +00:00
sun4v Invert the logic inside of two KASSERTS which resulted in two kernel panics 2006-12-31 02:50:07 +00:00
sys - Close a race between enumerating UNIX domain socket pcb structures via 2007-01-05 19:59:46 +00:00
tools Check for errors when registering and unregistering firmware modules. This 2006-06-16 21:06:03 +00:00
ufs change vop_lock handling to allowing tracking of callers' file and line for 2006-11-13 05:51:22 +00:00
vm - Add a new function uma_zone_exhausted() to see if a zone is full. 2007-01-05 19:09:01 +00:00
Makefile o Add cam to a list of cscope dirs. 2006-11-26 18:27:16 +00:00