+22
−25
Loading
mainline inclusion from mainline-v5.19-rc1 commit 2256e901 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9QR71 CVE: CVE-2024-35956 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2256e901f5bddc56e24089c96f27b77da932dfcc -------------------------------- When btrfs_qgroup_inherit(), btrfs_alloc_tree_block, or btrfs_insert_root() fail in create_subvol(), we return without freeing anon_dev. Reorganize the error handling in create_subvol() to fix this. Reviewed-by:Sweet Tea Dorminy <sweettea-kernel@dorminy.me> Signed-off-by:
Omar Sandoval <osandov@fb.com> Reviewed-by:
David Sterba <dsterba@suse.com> Signed-off-by:
David Sterba <dsterba@suse.com> Conflicts: fs/btrfs/ioctl.c [fix context diff] Signed-off-by:
Ye Bin <yebin10@huawei.com>