[lkml]   [2000]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectPatch for /proc/mounts problems on 2.2.x

I've recently run across some problems with /proc/mounts on Linux 2.2.17
when trying to get rid of /etc/mtab in favor of /proc/mounts.

Unfortunately, I had to discover that /proc/mounts does not show all the
mounting options (usrquota, grpquota). -- Furthermore, the max. size of
/proc/mounts is limited to one page. Even worse, the current
implementation in Linux 2.2.17 and 2.2.18preX does not perform proper
bounds checking. (I've successfully triggered off an OOPS by exploiting
this on a box running Linux 2.2.17).

Patches that are basically a backport of the 2.4.x implementation of
fs/super.c:get_filesystem_info (handles /proc/mounts) can be found at:
(against Linux 2.2.17)

(against Linux 2.2.18pre17).

These patches fix the bounds-checking issue. (Alan, please consider the
patch against 2.2.18pre17 for inclusion into the 2.2.18 kernel.)

In the future we should IMHO remove the current limitations of
/proc/mounts so that the mount-command can finally get rid of having to do
all the bookkeeping in /etc/mtab itself.

For more information (especially why this would be a good thing...) please
have a look at:

Please let me know what you think about this issue.


\ DI. Christian Czezatke | email: /
\ xS+S Andreas Haumer | phone: +43-1-6060114-30 /
\ Karmarschgasse 51/2/20 | fax: +43-1-6060114-71 /
\ A-1100 Vienna/Austria | /

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:41    [W:0.300 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site