From: akpm@linux-foundation.org Subject: [merged] 9p-fix-a-potential-acl-leak.patch removed from -mm tree Date: Thu, 23 Feb 2017 13:12:04 -0800 Message-ID: <58af5024.MIJs8tL0n/WR5wj4%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:39292 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751201AbdBWVMR (ORCPT ); Thu, 23 Feb 2017 16:12:17 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: xiyou.wangcong@gmail.com, ericvh@gmail.com, groug@kaod.org, jack@suse.cz, lucho@ionkov.net, rminnich@sandia.gov, salyzyn@android.com, mm-commits@vger.kernel.org The patch titled Subject: 9p: fix a potential acl leak has been removed from the -mm tree. Its filename was 9p-fix-a-potential-acl-leak.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Cong Wang Subject: 9p: fix a potential acl leak posix_acl_update_mode() could possibly clear 'acl', if so we leak the memory pointed by 'acl'. Save this pointer before calling posix_acl_update_mode() and release the memory if 'acl' really gets cleared. Link: http://lkml.kernel.org/r/1486678332-2430-1-git-send-email-xiyou.wangcong@gmail.com Signed-off-by: Cong Wang Reported-by: Mark Salyzyn Reviewed-by: Jan Kara Reviewed-by: Greg Kurz Cc: Eric Van Hensbergen Cc: Ron Minnich Cc: Latchesar Ionkov Signed-off-by: Andrew Morton --- fs/9p/acl.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN fs/9p/acl.c~9p-fix-a-potential-acl-leak fs/9p/acl.c --- a/fs/9p/acl.c~9p-fix-a-potential-acl-leak +++ a/fs/9p/acl.c @@ -277,6 +277,7 @@ static int v9fs_xattr_set_acl(const stru case ACL_TYPE_ACCESS: if (acl) { struct iattr iattr; + struct posix_acl *old_acl = acl; retval = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); if (retval) @@ -287,6 +288,7 @@ static int v9fs_xattr_set_acl(const stru * by the mode bits. So don't * update ACL. */ + posix_acl_release(old_acl); value = NULL; size = 0; } _ Patches currently in -mm which might be from xiyou.wangcong@gmail.com are