Subject: kern/33642: panic: free dquot isn't
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Lasse Kliemann <lasse-send-pr-2006@plastictree.net>
List: netbsd-bugs
Date: 06/03/2006 15:50:00
>Number:         33642
>Category:       kern
>Synopsis:       Sometimes, creating new users and then chowning directories for them, leads to a panic.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 03 15:50:00 +0000 2006
>Originator:     lasse-send-pr-2006@plastictree.net
>Release:        NetBSD 3.0_STABLE, CVS update from May, 3. 2006
>Environment:
NetBSD m-043 3.0_STABLE NetBSD 3.0_STABLE (STARGAZER) #0: Thu May  4 01:02:12 CEST 2006  netbsd@m-043:/bulk/netbsd/src/sys/arch/i386/compile/STARGAZER i386
Architecture: i386
Machine: i386
>Description:
Sometimes, a sequence of commands like the following leads to a panic:

# groupadd test
# useradd -g test -m test
# mkdir /bulk/home/test
# chown test.test /bulk/home/test


panic: free dquot isn't
Stopped in pid 22336.1 (chown) at netbsd:cpu_Debugger+0x4: leave


Mounted partitions:

# mount
/dev/wd0a on / type ffs (noatime, soft dependencies, local)
/dev/raid0f on /var type ffs (noatime, soft dependencies, local)
/dev/raid0e on /usr type ffs (noatime, soft dependencies, local)
/dev/raid0g on /bulk type ffs (noatime, soft dependencies, local, with quotas)
/dev/raid1e on /home type ffs (noatime, soft dependencies, local, with quotas)
kernfs on /kern type kernfs (local)

>How-To-Repeat:

Difficult. Just repeating the above sequence does not always 
lead to a panic. Because this ought to be a production 
machine, I have not conducted extensive tests. I can do so, if 
it is required.

>Fix:

Unknown