]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: fix iloc.bh leak in ext4_xattr_inode_update_ref
authorYang Erkun <yangerkun@huawei.com>
Sat, 13 Dec 2025 05:57:06 +0000 (13:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:28 +0000 (10:27 +0100)
commit0b06cde92f2f960f4ebe3c988c69f2711f2a24dc
tree61030490e0198db1c0cf2c41b3d8f20e98d1bb63
parented61badfc2bc859250886b3e3e3b12ab75017973
ext4: fix iloc.bh leak in ext4_xattr_inode_update_ref

commit d250bdf531d9cd4096fedbb9f172bb2ca660c868 upstream.

The error branch for ext4_xattr_inode_update_ref forget to release the
refcount for iloc.bh. Find this when review code.

Fixes: 57295e835408 ("ext4: guard against EA inode refcount underflow in xattr update")
Signed-off-by: Yang Erkun <yangerkun@huawei.com>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20251213055706.3417529-1-yangerkun@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/xattr.c