Re: race condition in kern_descrip.c and fix

2002-07-16 Thread Alfred Perlstein
* David Xu [EMAIL PROTECTED] [020715 22:31] wrote: I found a race condition in kern_descrip.c, the race is in function falloc(), it opens a race window at line 1147: You're right, however I'd appreciate it if you'd look deeper into the possiblity of races in this code before committing this

race condition in kern_descrip.c and fix

2002-07-15 Thread David Xu
I found a race condition in kern_descrip.c, the race is in function falloc(), it opens a race window at line 1147: FILEDESC_UNLOCK(p-p_fd); sx_xlock(filelist_lock); FILEDESC_LOCK(p-p_fd); fix: --- kern_descrip.c Tue Jul 16 12:29:44 2002 +++