Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2007 14:23:29 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_descrip.c vfs_syscalls.c src/sys/sys filedesc.h
Message-ID:  <200705041423.l44ENTRv055136@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705041423.l44ENTRv055136>