From nobody@FreeBSD.ORG  Fri Jun  9 16:16:39 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id ECAE737B72B; Fri,  9 Jun 2000 16:16:38 -0700 (PDT)
Message-Id: <20000609231638.ECAE737B72B@hub.freebsd.org>
Date: Fri,  9 Jun 2000 16:16:38 -0700 (PDT)
From: lgodsey@md5.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: 4.0-STABLE panics w/ softupdates and quota when user goes over inode limit
X-Send-Pr-Version: www-1.0

>Number:         19162
>Category:       kern
>Synopsis:       4.0-STABLE panics w/ softupdates and quota when user goes over inode limit
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 09 16:20:00 PDT 2000
>Closed-Date:    Thu Jan 17 08:12:05 PST 2002
>Last-Modified:  Thu Jan 17 08:39:39 PST 2002
>Originator:     Lanny Godsey
>Release:        4.0-STABLE
>Organization:
Fidalgo Networking
>Environment:
FreeBSD xxxxxxx.fidalgo.net 4.0-STABLE FreeBSD 4.0-STABLE #0: Thu Jun  8 16:00:35 PDT 2000     toor@xxxxxx.fidalgo.net:/usr/src/sys/compile/SHAW  i386
>Description:
With softupdates and quota enabled, any user going over their inode limit will cause a kernel panic
>How-To-Repeat:
enable softupdates & quota in kernel, set a user on /home to have X # inode limit, su user, and touch a few files till the user is over inode limit.. PANIC!
>Fix:
unknown.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: asmodai 
State-Changed-When: Sun Jun 11 03:23:12 PDT 2000 
State-Changed-Why:  
I informed Kirk McKusick about this PR and he is investigating this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19162 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: asmodai 
State-Changed-When: Tue Jun 20 22:18:41 PDT 2000 
State-Changed-Why:  
Mr McKusick commited a fix a few days ago, could you test this and verify 
if it works for your situation? 


Responsible-Changed-From-To: freebsd-bugs->asmodai 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Tue Jun 20 22:18:41 PDT 2000 
Responsible-Changed-Why:  
I'm monitoring/working on this with Kirk.  So I'll keep close tabs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19162 

From: Koos de Haan <sdehaan@caiw.nl>
To: freebsd-gnats-submit@FreeBSD.org, lgodsey@md5.com
Cc:  
Subject: Re: kern/19162: 4.0-STABLE panics w/ softupdates and quota when
 user goes over inode limit
Date: Thu, 14 Sep 2000 08:14:50 +0200

 Hi ,
 
 It seems that there is stil a problem in handling inode quota's on FreeBSD stable 4.1
 I have a mailserver with a /home filesystem where the homedirectory's of the users are. 
 I use the latest 4.1 stable sources.
 
 I wanted some quota's on the max size of the mailbox and the max number of files used (its maildir format so thats the number of emails) by a user.
 
 There is no problem when the max size is exceeded. The system returns the email with a 'Quota exceeded' warning. However when some user exceeds the max number of inodes, the system panic's
 
 I tried also to create a file as a user and than the system also panics as described.
 
 As a second test i tried it without softupdates on the /home partition. Than the  system works as it should be. 
 
 It seems that there is a problem in using softupdates and inode quota's. 
 Hopefully this will help solve the problem.
 
 
 Kindly regards,
 
 
 Koos de Haan
 
 
 Mount :
 
 /dev/da0s1a on / (ufs, local, soft-updates)
 /dev/da0s1e on /usr (ufs, local, soft-updates)
 /dev/da0s1f on /usr/local (ufs, local, soft-updates)
 /dev/da0s1g on /home (ufs, local, with quotas, soft-updates)
 procfs on /proc (procfs, local)
 mfs:30 on /tmp (mfs, asynchronous, local, nodev, nosuid)
 /dev/da1s1e on /var (ufs, local, soft-updates)
 /dev/da1s1f on /var/spool/postfix (ufs, local, soft-updates)
 
 
 
 Panic :
 
 panic: worklist_remove: not in list
 Debugger("panic")
 db> trace
 Debugger(c02ad623) at Debugger+0x34
 panic(c02c2edf,e1cbdc4c,c024330d,c2d90180,c2d87300) at panic+0x70
 worklist_remove(c2d90180) at worklist_remove+0x2d
 check_inode_unwritten(c2d90180) at check_inode_unwritten+0x61
 softdep_freefile(e1cc1680,2741d04,8180,45,e1cbddb0)at softdep_freefile+0x6f
 ffs_vfree(e1cc1680,2741d04,8180,e1cbde00,e1cbde14) at ffs_vfree+0x28
 ufs_makeinode(8180,e1cc1740,e1cbdee0,e1cbdef4) at ufs_makeinode+0xd7
 ufs_create(e1cbde00,e1cbde74,c01900c8,e1cbde00,0) at ufs_create+0x28
 ufs_vnoperate(e1cbde00,0,e1cbdf80,c2d8dd00,e1c98f60) at ufs_vnoperate+0x15
 vn_open(e1cbdecc,a02,180,e1c98f60,3) at vn_open+0x10c
 open(e1c98f60,e1cbdf80,a01,8075708,8073c08) at open+0xb5
 syscall2(2f,2f,2f,8073c08,8075708) at syscall2+0x1f1
 Xint0x80_syscall() at Xint0x80_syscall+0x25
 db>
  
 -
 --
 
 Kabelfoon BV
 Industriestraat 30, Postbus 45, 2670 AA  NAALDWIJK
 Telefoon: 0174-615430 Fax: 0174-623860
 Helpdesk: 0900-5224357 (44ct/min)
 Abonnementen: 0800-5223666
 e-mail info@kabelfoon.nl voor informatie, kabelfoon@kabelfoon.nl voor abonnementszaken, help@kabelfoon.nl voor de helpdesk
 Homepage : http://www.kabelfoon.nl/
 
Responsible-Changed-From-To: asmodai->freebsd-bugs 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Wed Jun 20 06:10:20 PDT 2001 
Responsible-Changed-Why:  
I don't have the time currently to chase this up further. 
Any filesystem people who want to tackle this? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19162 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Thu Jan 17 08:12:05 PST 2002 
State-Changed-Why:  
Automatic feedback timeout.  If additional feedback that warrants 
the re-opening of this PR is available but not included in the 
audit trail, please include the feedback in a reply to this message 
(preserving the Subject line) and ask that the PR be re-opened. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19162 
>Unformatted:
