public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] integrity: fix IMA inode leak
@ 2009-06-06 20:18 Hugh Dickins
  2009-06-06 21:18 ` Linus Torvalds
  2009-06-07  6:07 ` Mimi Zohar
  0 siblings, 2 replies; 13+ messages in thread
From: Hugh Dickins @ 2009-06-06 20:18 UTC (permalink / raw)
  To: Mimi Zohar
  Cc: Linus Torvalds, Andrew Morton, Mimi Zohar, Serge Hallyn,
	James Morris, Al Viro, linux-kernel

CONFIG_IMA=y inode activity leaks iint_cache and radix_tree_node objects
until the system runs out of memory.  Nowhere is calling ima_inode_free()
a.k.a. ima_iint_delete().  Fix that by calling it from destroy_inode().

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
---

 fs/inode.c |    1 +
 1 file changed, 1 insertion(+)

--- 2.6.30-rc8/fs/inode.c	2009-05-16 10:26:15.000000000 +0100
+++ linux/fs/inode.c	2009-06-06 17:41:21.000000000 +0100
@@ -219,6 +219,7 @@ static struct inode *alloc_inode(struct
 void destroy_inode(struct inode *inode)
 {
 	BUG_ON(inode_has_buffers(inode));
+	ima_inode_free(inode);
 	security_inode_free(inode);
 	if (inode->i_sb->s_op->destroy_inode)
 		inode->i_sb->s_op->destroy_inode(inode);

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-06-09  3:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-06 20:18 [PATCH] integrity: fix IMA inode leak Hugh Dickins
2009-06-06 21:18 ` Linus Torvalds
2009-06-06 21:35   ` Linus Torvalds
2009-06-06 22:29     ` Hugh Dickins
2009-06-07  6:08   ` Mimi Zohar
2009-06-07 23:09     ` Linus Torvalds
2009-06-08 12:28       ` Mimi Zohar
2009-06-08 16:15         ` Linus Torvalds
2009-06-08 18:44           ` Mimi Zohar
2009-06-08 23:16             ` James Morris
2009-06-09  2:56               ` Mimi Zohar
2009-06-09  3:42                 ` Casey Schaufler
2009-06-07  6:07 ` Mimi Zohar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox