+ ocfs2-fix-panic-on-kfreexattr-name.patch added to -mm tree
Subject: + ocfs2-fix-panic-on-kfreexattr-name.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 28 Mar 2014 14:13:13 -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().
---
fs/ocfs2/namei.c | 2 -- 1 file changed, 2 deletions(-)
fs/ocfs2/namei.c renamed from fs/ocfs2/namei.c~ocfs2-fix-panic-on-kfreexattr-name +0 -2
@@ -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