+24
−25
Loading
mainline inclusion from mainline-v6.9-rc1 commit 8208c41c43ad5e9b63dce6c45a73e326109ca658 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAD03M CVE: CVE-2024-40972 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8208c41c43ad5e9b63dce6c45a73e326109ca658 -------------------------------- When allocating EA inode, quota accounting is done just before ext4_xattr_inode_lookup_create(). Logically these two operations belong together so just fold quota accounting into ext4_xattr_inode_lookup_create(). We also make ext4_xattr_inode_lookup_create() return the looked up / created inode to convert the function to a more standard calling convention. Signed-off-by:Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20240209112107.10585-1-jack@suse.cz Signed-off-by:
Theodore Ts'o <tytso@mit.edu> Conflicts: fs/ext4/xattr.c [context differences] Signed-off-by:
Yifan Qiao <qiaoyifan4@huawei.com>