Whamcloud - gitweb
tune2fs: fix dereference of freed memory after journal replay
authorTheodore Ts'o <tytso@mit.edu>
Sun, 19 Aug 2018 20:46:04 +0000 (16:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 21 Aug 2018 05:22:18 +0000 (01:22 -0400)
This can be found by running the test t_replay_and_set under valgrind.

Reported-by: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c

index 723f7ae..b8cddfa 100644 (file)
@@ -3051,6 +3051,7 @@ _("Warning: The journal is dirty. You may wish to replay the journal like:\n\n"
                                ext2fs_close_free(&fs);
                        exit(1);
                }
+               sb = fs->super;
        }
 #endif