FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

LinkBack Thread Tools
Old 09-26-2012, 01:35 PM
Herton Ronaldo Krzesinski
Default ext4: fix crash when accessing /proc/mounts concurrently

The crash was caused by a variable being erronously declared static in

In addition to /proc/mounts, the problem can also be easily replicated
by accessing /proc/fs/ext4/<partition>/options in parallel:

$ cat /proc/fs/ext4/<partition>/options > options.txt

... and then running the following command in two different terminals:

$ while diff /proc/fs/ext4/<partition>/options options.txt; do true; done

This is also the cause of the following a crash while running xfstests
#234, as reported in the following bug reports:


Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Brad Figg <brad.figg@canonical.com>
Cc: stable@vger.kernel.org
BugLink: https://bugs.launchpad.net/bugs/1053019
(cherry picked from commit 04b6f64bf52bd6d0b8dcd912e8fec8d672d44d4a,
at git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev)
fs/ext4/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index afeddd7..51d24ea 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1752,7 +1752,7 @@ static inline void ext4_show_quota_options(struct seq_file *seq,

static const char *token2str(int token)
- static const struct match_token *t;
+ const struct match_token *t;

for (t = tokens; t->token != Opt_err; t++)
if (t->token == token && !strchr(t->pattern, '='))

kernel-team mailing list

Thread Tools

All times are GMT. The time now is 04:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org