Bug 62740 - get_anon_super() can leak unnamed devices
Summary: get_anon_super() can leak unnamed devices
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: kernel
Version: skipjack-beta1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-05 03:04 UTC by Paul Menage
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-04-05 03:04:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Paul Menage 2002-04-05 03:04:27 UTC
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 16:40:15 UTC
fix backported; will appear in rawhide soon.
thanks for reporting this!

Comment 2 Pete Zaitcev 2002-04-09 20:05:24 UTC
HEAD 2.4.18-0.19



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