lkml.org 
[lkml]   [2000]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectBUG in fs/ext2/super.c
Al and all,

there is a bug in fs/ext2/super.c, which I've reported to Al Viro before
(-test1) with no reaction. Could someone _please_ verify that issue and
convice Al Viro this needs fixing. Thanks.

Problem: parse_options() is called with a pointer to uninitialized
new_mount_opt
in line 660. This may result is arbitrary mount options after a remount
of an ext2 filesystem.

Thise patch is against 2.4.0-test4.


--- fs/ext2/super.c.bug Wed Jul 19 20:02:37 2000
+++ fs/ext2/super.c Wed Jul 19 20:15:54 2000
@@ -657,6 +657,7 @@
/*
* Allow the "check" option to be passed as a remount option.
*/
+ new_mount_opt = sb->u.ext2_sb.s_mount_opt;
if (!parse_options (data, &tmp, &resuid, &resgid,
&new_mount_opt))
return -EINVAL;

Regards,
Andreas

------------------------------------------------------------------------
Andreas Gruenbacher, a.gruenbacher@computer.org
Contact information: http://www.bestbits.at/~ag/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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