[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LRH.2.00.1007161138280.17085@tundra.namei.org>
Date: Fri, 16 Jul 2010 11:38:43 +1000 (EST)
From: James Morris <jmorris@...ei.org>
To: Tvrtko Ursulin <tvrtko.ursulin@...hos.com>
cc: "greg@...ah.com" <greg@...ah.com>,
Al Viro <viro@...iv.linux.org.uk>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-security-module@...r.kernel.org
Subject: Re: [PATCH][securityfs][2.6.34] Drop dentry reference count when
mknod fails
On Thu, 15 Jul 2010, Tvrtko Ursulin wrote:
>
> lookup_one_len increments dentry reference count which is not decremented
> when the create operation fails. This can cause a kernel BUG at
> fs/dcache.c:676 at unmount time. Also error code returned when new_inode()
> fails was replaced with more appropriate -ENOMEM.
>
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@...hos.com>
Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next
--
James Morris
<jmorris@...ei.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists