From owner-freebsd-current@FreeBSD.ORG Tue Apr 20 09:17:44 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06C2716A4CE for ; Tue, 20 Apr 2004 09:17:44 -0700 (PDT) Received: from sev.net.ua (sev.net.ua [212.86.233.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id E86E243D1D for ; Tue, 20 Apr 2004 09:17:42 -0700 (PDT) (envelope-from shadow@psoft.net) Received: from berloga.shadowland ([213.227.237.65]) by sev.net.ua (8.12.10/8.12.9) with ESMTP id i3KGHev0051526 for ; Tue, 20 Apr 2004 19:17:41 +0300 (EEST) (envelope-from shadow@psoft.net) Received: from berloga.shadowland (berloga.shadowland [127.0.0.1]) by berloga.shadowland (8.12.10/8.12.10) with ESMTP id i3KGHeWc032513 for ; Tue, 20 Apr 2004 19:17:40 +0300 Received: (from root@localhost) by berloga.shadowland (8.12.10/8.12.10/Submit) id i3KGHegi032511 for freebsd-current@freebsd.org; Tue, 20 Apr 2004 19:17:40 +0300 From: Alex Lyashkov To: "freebsd-current@freebsd.org" Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: PSoft Message-Id: <1082477860.8258.105.camel@berloga.shadowland> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-1) Date: Tue, 20 Apr 2004 19:17:40 +0300 Subject: kernel panic at quotactl with 5.2-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 16:17:44 -0000 Hello All Steps for reproduce: 1) start with generic kernel. 2) install samba 2.2.8a from ports with quota & ACL support. 3) mount fat32 partition to some mount point, as example mount /mnt/dos 4) add to smb.conf [tmp] comment = Temporary file space path = /mnt/dos read only = no public = yes 5) mount this share via smbmount from linux box and start mc (i think it work and with other access to this share) ... This patch fixed this problem. # cvs diff -u vfs_syscalls.c Index: vfs_syscalls.c =================================================================== RCS file: /mnt/storage/freebsd-cvs/src/sys/kern/vfs_syscalls.c,v retrieving revision 1.343 diff -u -r1.343 vfs_syscalls.c --- vfs_syscalls.c 6 Apr 2004 10:05:02 -0000 1.343 +++ vfs_syscalls.c 20 Apr 2004 15:50:20 -0000 @@ -195,7 +195,7 @@ NDFREE(&nd, NDF_ONLY_PNBUF); error = vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH); vrele(nd.ni_vp); - if (error) + if (error || !mp) return (error); error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td); vn_finished_write(mp); -- Alex Lyashkov PSoft