* [Bug 48431] New: ext4_fill_super() reports success even if ext4_mb_init() fails
@ 2012-10-05 12:19 bugzilla-daemon
2012-10-05 14:16 ` [Bug 48431] [PATCH]ext4_fill_super() " bugzilla-daemon
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2012-10-05 12:19 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=48431
Summary: ext4_fill_super() reports success even if
ext4_mb_init() fails
Product: File System
Version: 2.5
Kernel Version: 3.6
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: fs_ext4@kernel-bugs.osdl.org
ReportedBy: eugene.shatokhin@rosalab.ru
Regression: No
Created an attachment (id=82361)
--> (https://bugzilla.kernel.org/attachment.cgi?id=82361)
The patch to fix the problem
If ext4_mb_init() called from ext4_fill_super() (fs/ext4/super.c:3980 in the
current ext4 git tree) fails and returns error code, ext4_fill_super() still
returns 0.
This happens because the return value of ext4_mb_init() is not assigned to
'ret' in the error path. So the previous value of 'ret' (0) is returned from
ext4_fill_super().
This problem leads to a kernel oops in mount_fs() when the latter tries to
access the struct dentry that the mount() callback returns ("sb = root->d_sb;"
in fs/super.c:1180).
The problem has been revealed with the help of the fault simulation facilities
provided by KEDR Framework.
Attached is a trivial patch that fixes the problem.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 48431] [PATCH]ext4_fill_super() reports success even if ext4_mb_init() fails
2012-10-05 12:19 [Bug 48431] New: ext4_fill_super() reports success even if ext4_mb_init() fails bugzilla-daemon
@ 2012-10-05 14:16 ` bugzilla-daemon
2012-12-22 9:29 ` bugzilla-daemon
2013-01-02 17:00 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2012-10-05 14:16 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=48431
Alan <alan@lxorguk.ukuu.org.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alan@lxorguk.ukuu.org.uk
Summary|ext4_fill_super() reports |[PATCH]ext4_fill_super()
|success even if |reports success even if
|ext4_mb_init() fails |ext4_mb_init() fails
--- Comment #1 from Alan <alan@lxorguk.ukuu.org.uk> 2012-10-05 14:15:59 ---
Patches should be sent with a Signed-off-by: line to the relevant list (See
Documentation/SubmittingPatches)
In this case linux-ext4@vger.kernel.org
You don't need to be subscribed to submit to it.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 48431] [PATCH]ext4_fill_super() reports success even if ext4_mb_init() fails
2012-10-05 12:19 [Bug 48431] New: ext4_fill_super() reports success even if ext4_mb_init() fails bugzilla-daemon
2012-10-05 14:16 ` [Bug 48431] [PATCH]ext4_fill_super() " bugzilla-daemon
@ 2012-12-22 9:29 ` bugzilla-daemon
2013-01-02 17:00 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2012-12-22 9:29 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=48431
Florian Mickler <florian@mickler.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |florian@mickler.org
--- Comment #2 from Florian Mickler <florian@mickler.org> 2012-12-22 09:29:55 ---
A patch referencing this bug report has been merged in Linux v3.8-rc1:
commit 07aa2ea13814ea60d12f7330b6d5ccfdb0c3ba4d
Author: Lukas Czerner <lczerner@redhat.com>
Date: Thu Nov 8 15:16:54 2012 -0500
ext4: fix error handling in ext4_fill_super()
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 48431] [PATCH]ext4_fill_super() reports success even if ext4_mb_init() fails
2012-10-05 12:19 [Bug 48431] New: ext4_fill_super() reports success even if ext4_mb_init() fails bugzilla-daemon
2012-10-05 14:16 ` [Bug 48431] [PATCH]ext4_fill_super() " bugzilla-daemon
2012-12-22 9:29 ` bugzilla-daemon
@ 2013-01-02 17:00 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2013-01-02 17:00 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=48431
Alan <alan@lxorguk.ukuu.org.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |CODE_FIX
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-02 17:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05 12:19 [Bug 48431] New: ext4_fill_super() reports success even if ext4_mb_init() fails bugzilla-daemon
2012-10-05 14:16 ` [Bug 48431] [PATCH]ext4_fill_super() " bugzilla-daemon
2012-12-22 9:29 ` bugzilla-daemon
2013-01-02 17:00 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).