freebsd-dev/sys
Alfred Perlstein 3865fa138b Remove bogus assertion in dup2 that can lead to panics when kernel
threads race for a file slot.

dup2(2) incorrectly assumes that if it needs to grow the ofiles
array that it will get what it wants.  This assertion was valid
before we allowed shared filedescriptor tables but is now incorrect.

The assertion can trigger superfolous panics if the thread doing a
dup2 looses a race with another thread while possibly blocked in
the MALLOC call in fdalloc.  Another thread may grab the slot we
are requesting which makes fdalloc return something other than what
we asked for, this will triggering the bogus assertion.

MFC after: 2 weeks
Reviewed by: phk
2002-02-01 19:25:36 +00:00
..
alpha Compile osigreturn() unconditionally since it will always be needed on 2002-02-01 15:44:03 +00:00
amd64 Compile osigreturn() unconditionally since it will always be needed on 2002-02-01 15:44:03 +00:00
arm We need machine/{signal,ucontext}.h to build a cross GCC compiler. 2001-12-09 19:39:49 +00:00
boot Expand COMBRD(x) macro. 2002-02-01 14:48:44 +00:00
cam Add support of PhotoClip USB Camera (http://www.myphotoclip.com): 2002-01-31 11:39:17 +00:00
coda Staticise the coda vfsop pointer. 2002-01-08 19:33:51 +00:00
compat include sys/lock.h and sys/mutex.h to make compile. 2002-01-30 23:28:25 +00:00
conf Removed the one use of the mandatory keyword (for npx). 2002-01-30 14:35:58 +00:00
contrib Backout inclusion of queue.h since rev 1.38 sys/file.h now has it 2002-01-14 09:07:15 +00:00
crypto fixed the cast128 calculation with a short cipher key length. 2001-11-27 14:11:47 +00:00
ddb pid is 'long' on alpha. 2002-01-17 02:14:44 +00:00
dev identify GLPRISM2 PCI WaveLAN/IEEE 802.11 2002-01-31 16:55:13 +00:00
fs Fix select on fifos. 2002-01-14 22:03:48 +00:00
geom Reduce kernel stack usage of ccdinit() by MAXPATHLEN by using MALLOC(9). 2001-12-30 17:34:19 +00:00
gnu Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
i4b Make call_desc[] extern since it's also defined in layer4/i4b_l4mgmt.c 2002-01-13 19:16:52 +00:00
i386 Compile osigreturn() unconditionally since it will always be needed on 2002-02-01 15:44:03 +00:00
ia64 Compile osigreturn() unconditionally since it will always be needed on 2002-02-01 15:44:03 +00:00
isa Don't include <isa/isavar.h> or compile code depending on it when isa 2002-01-30 12:41:12 +00:00
isofs/cd9660 Fix mounting root from a ISO9660 filesystem on a SCSI CDROM. 2001-11-27 03:55:43 +00:00
kern Remove bogus assertion in dup2 that can lead to panics when kernel 2002-02-01 19:25:36 +00:00
libkern * Remove __P and convert to ANSI prototypes. 2002-02-01 01:32:19 +00:00
modules Module for exca. Eventually, this will be shared between pcic and pccbb. 2002-01-29 06:53:32 +00:00
net Prevent the kernel from generating an unaligned sysctl data buffer on 2002-01-27 20:39:01 +00:00
netatalk Make `options NETATALK' compile after the -fno-common changes. 2002-01-16 11:26:50 +00:00
netatm Allow this to compile again 2002-01-30 23:38:31 +00:00
netgraph Some netgraph parse types (such as for the 'value' field in ng_ksocket's 2002-02-01 02:21:41 +00:00
netinet The ipfw(8) 'tee' action simply hasn't worked on incoming packets for 2002-01-26 10:14:08 +00:00
netinet6 - Check the address family of a cached destination, in case of 2002-01-21 20:02:36 +00:00
netipx Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
netkey Newer SA is prefered for a out-bound packet than old one 2001-12-05 05:40:49 +00:00
netnatm Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
netncp Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
netns Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
netsmb SMP Lock struct file, filedesc and the global file list. 2002-01-13 11:58:06 +00:00
nfs When the old nfsm_adv() macro was moved to nfsm_adv_xx(), a '>=' 2001-12-31 06:56:31 +00:00
nfsclient Revise the nfsiod auto tuning code. Now both the upper and lower limits 2002-01-15 20:57:21 +00:00
nfsserver The vnode was not being vput()'d in the EEXIST mknod case on the nfs 2002-01-14 19:14:08 +00:00
pc98 Compile osigreturn() unconditionally since it will always be needed on 2002-02-01 15:44:03 +00:00
pccard The datasheet for the 6710/6722 says that you must use one method to 2002-01-14 14:10:13 +00:00
pci Forgot one part of the VLAN support for the dc(4) driver. 2002-01-16 21:34:11 +00:00
posix4 KSE Milestone 2 2001-09-12 08:38:13 +00:00
powerpc Compile osigreturn() unconditionally since it will always be needed on 2002-02-01 15:44:03 +00:00
rpc Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
security/lomac s/sonewconn3/sonewconn/ forgotten by the modifier. 2001-12-26 18:31:22 +00:00
sparc64 Compile osigreturn() unconditionally since it will always be needed on 2002-02-01 15:44:03 +00:00
svr4
sys Regenerate to make osigreturn standard. 2002-02-01 17:41:45 +00:00
tools Throw the $FreeBSD$s back in, properly escaping them. 2002-01-04 05:27:47 +00:00
ufs Add a stub for softdep_request_cleanup() so that compilation without 2002-01-23 02:18:56 +00:00
vm GC P_BUFEXHAUST leftovers, we've had a new mechanism to avoid buffer 2002-01-31 18:39:44 +00:00
Makefile