cvs commit: src/sys/kern kern_descrip.c vfs_syscalls.c src/sys/sys filedesc.h

Konstantin Belousov kib at FreeBSD.org
Fri May 4 14:23:29 UTC 2007


kib         2007-05-04 14:23:29 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_descrip.c vfs_syscalls.c 
    sys/sys              filedesc.h 
  Log:
  Mark the filedescriptor table entries with VOP_OPEN being performed for them
  as UF_OPENING. Disable closing of that entries. This should fix the crashes
  caused by devfs_open() (and fifo_open()) dereferencing struct file * by
  index, while the filedescriptor is closed by parallel thread.
  
  Idea by:        tegge
  Reviewed by:    tegge (previous version of patch)
  Tested by:      Peter Holm
  Approved by:    re (kensmith)
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.309     +7 -3      src/sys/kern/kern_descrip.c
  1.438     +12 -0     src/sys/kern/vfs_syscalls.c
  1.77      +1 -0      src/sys/sys/filedesc.h


More information about the cvs-src mailing list