Bug 62740 - get_anon_super() can leak unnamed devices
get_anon_super() can leak unnamed devices
Status: CLOSED RAWHIDE
Product: Red Hat Public Beta
Classification: Retired
Component: kernel (Show other bugs)
skipjack-beta1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Arjan van de Ven
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-04-04 22:04 EST by Paul Menage
Modified: 2007-04-18 12:41 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-04-04 22:04:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Paul Menage 2002-04-04 22:04:27 EST
Description of Problem:

In fs/super.c:get_anon_super(), if the compare() function ever returns success,
the new super block is destroyed, but the newly allocated unnamed device doesn't
get released.

Version-Release number of selected component (if applicable):

2.4.18-0.4, 2.4.18-0.12

Steps to reproduce:

mkdir /tmp/pts
while true; do
  mount -t devpts devpts /tmp/pts
  umount /tmp/pts
done

Soon gives "Mount table full" errors

This seems to be fixed in 2.5.x by a reorganisation of the super-block
allocation code.
Comment 1 Arjan van de Ven 2002-04-05 11:40:15 EST
fix backported; will appear in rawhide soon.
thanks for reporting this!
Comment 2 Pete Zaitcev 2002-04-09 16:05:24 EDT
HEAD 2.4.18-0.19

Note You need to log in before you can comment on or make changes to this bug.