[PATCH 2/2] ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
Zhihao Cheng
chengzhihao1 at huawei.com
Fri Dec 22 00:38:11 PST 2023
在 2023/12/22 14:22, Eric Biggers 写道:
> fscrypt_free_inode() should be called unconditionally, because
> fscrypt_free_inode() already checks for IS_ENCRYPTED().
>
> Also, please add 'Cc:stable at vger.kernel.org' to your commit message.
>
> Also, please addlinux-fscrypt at vger.kernel.org to the recipients of this patch.
>
> Anyway, thanks for catching this bug! It's annoying that make_bad_inode()
> changes the inode's type from a symlink to a regular file; normally an inode's
> type can never change. Your fix looks fine, though. Thanks!
Thanks for suggestions, I will modify them in v2.
More information about the linux-mtd
mailing list