From owner-cvs-all@FreeBSD.ORG Tue May 29 10:09:44 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2871416A4AC; Tue, 29 May 2007 10:09:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 19A1713C448; Tue, 29 May 2007 10:09:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l4TA9hVu008665; Tue, 29 May 2007 10:09:43 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l4TA9hOr008664; Tue, 29 May 2007 10:09:43 GMT (envelope-from kib) Message-Id: <200705291009.l4TA9hOr008664@repoman.freebsd.org> From: Konstantin Belousov Date: Tue, 29 May 2007 10:09:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/sys filedesc.h src/sys/kern kern_descrip.c vfs_syscalls.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2007 10:09:44 -0000 kib 2007-05-29 10:09:43 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/sys filedesc.h sys/kern kern_descrip.c vfs_syscalls.c Log: MFC rev. 1.309 of sys/kern/kern_descrip.c, rev. 1.438 of sys/kern/vfs_syscalls.c, rev. 1.77 of sys/sys/filedesc.h: 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. RELENG_6 testing by: Mark Kane Revision Changes Path 1.279.2.14 +7 -3 src/sys/kern/kern_descrip.c 1.392.2.19 +12 -0 src/sys/kern/vfs_syscalls.c 1.72.2.2 +1 -0 src/sys/sys/filedesc.h