BUG in fs/ext2/super.c

From: Andreas Gruenbacher (a.gruenbacher@bestbits.at)
Date: Tue Jun 20 2000 - 02:28:50 EST


Al,

there really is a BUG in fs/ext2/super.c, reported before on 3 June:
parse_options() is called with a pointer to uninitialized new_mount_opt
in line 660. This results is ARBITRARY MOUNT OPTIONS after a remount.

Thanks for fixing.

The micro-patch is against 2.4.0-test1-ac22-classzone.

--- linux/fs/ext2/super.c.bug Tue Jun 20 09:18:02 2000
+++ linux/fs/ext2/super.c Tue Jun 20 09:18:39 2000
@@ -651,7 +651,7 @@
        struct ext2_super_block * es;
        unsigned short resuid = sb->u.ext2_sb.s_resuid;
        unsigned short resgid = sb->u.ext2_sb.s_resgid;
- unsigned long new_mount_opt;
+ unsigned long new_mount_opt = 0;
        unsigned long tmp;
 
        /*

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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:19 EST