[PATCH] ubifs: Fix inode leak in xattr code

Artem Bityutskiy dedekind1 at gmail.com
Mon May 15 07:53:54 PDT 2017

On Mon, 2017-05-15 at 16:20 +0200, Richard Weinberger wrote:
> To solve this problem, set i_nlink for all xattr inodes to 0, such
> that
> the iput() in the UBIFS xattr code makes the temporary inode vanish
> immediately.

What if there is iget right after iput? With this patch, will we need
to go all the way to the slow media instead of just getting having the
inode from the inode cache?

More information about the linux-mtd mailing list