Subject: + ocfs2-fix-panic-on-kfreexattr-name.patch added to -mm tree
To:
[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 28 Mar 2014 14:58:01 -0700
The patch titled
Subject: ocfs2: fix panic on kfree(xattr->name)
has been added to the -mm tree. Its filename is
ocfs2-fix-panic-on-kfreexattr-name.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-fix-panic-on-kfreexattr-name.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-fix-panic-on-kfreexattr-name.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Tetsuo Handa <[email protected]>
Subject: ocfs2: fix panic on kfree(xattr->name)
Commit 9548906b 'xattr: Constify ->name member of "struct xattr".' missed that
ocfs2 is calling kfree(xattr->name). As a result, kernel panic occurs upon
calling kfree(xattr->name) because xattr->name refers static constant names.
This patch removes kfree(xattr->name) from ocfs2_mknod() and ocfs2_symlink().
Signed-off-by: Tetsuo Handa <[email protected]>
Reported-by: Tariq Saeed <[email protected]>
Tested-by: Tariq Saeed <[email protected]>
Reviewed-by: Srinivas Eeda <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: <[email protected]> [3.12+]
Signed-off-by: Andrew Morton <[email protected]>
---
fs/ocfs2/namei.c | 2 --
1 file changed, 2 deletions(-)
diff -puN fs/ocfs2/namei.c~ocfs2-fix-panic-on-kfreexattr-name fs/ocfs2/namei.c
--- a/fs/ocfs2/namei.c~ocfs2-fix-panic-on-kfreexattr-name
+++ a/fs/ocfs2/namei.c
@@ -450,7 +450,6 @@ leave:
brelse(new_fe_bh);
brelse(parent_fe_bh);
- kfree(si.name);
kfree(si.value);
ocfs2_free_dir_lookup_result(&lookup);
@@ -1949,7 +1948,6 @@ bail:
brelse(new_fe_bh);
brelse(parent_fe_bh);
- kfree(si.name);
kfree(si.value);
ocfs2_free_dir_lookup_result(&lookup);
if (inode_ac)
_
Patches currently in -mm which might be from [email protected]
are
kthread-ensure-locality-of-task_struct-allocations.patch
ocfs2-fix-panic-on-kfreexattr-name.patch
lib-vsprintf-add-%pt-format-specifier.patch
linux-next.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html