lkml.org 
[lkml]   [2000]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH, 2.4pre5test6] Re: BUG in fs/ext2/super.c
Hi,

On Fri, Jul 21, 2000 at 12:36:38PM +0200, Andreas Gruenbacher wrote:
>
> 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.

Agreed. Patch [attached] builds, boots and still appears to do
remounts correctly. :)

Cheers,
Stephen
--- fs/ext2/super.c.~1~ Thu Jul 27 12:20:25 2000
+++ fs/ext2/super.c Thu Jul 27 18:51:47 2000
@@ -653,6 +653,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;
\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.097 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site