Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

integrity: fix IMA inode leak

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Hugh Dickins and committed by
Linus Torvalds
f07502da 81ee1bad

+1
+1
fs/inode.c
··· 219 219 void destroy_inode(struct inode *inode) 220 220 { 221 221 BUG_ON(inode_has_buffers(inode)); 222 + ima_inode_free(inode); 222 223 security_inode_free(inode); 223 224 if (inode->i_sb->s_op->destroy_inode) 224 225 inode->i_sb->s_op->destroy_inode(inode);