[Devel] [PATCH hci-8.2 4/8] ms/ext4: fix incorrect function call when initializing s_resgid
Denis V. Lunev
den at openvz.org
Thu Nov 19 15:03:21 MSK 2026
From: Jiazi Liu <jiazi.liu1984 at gmail.com>
In __ext4_fill_super(), s_resgid is initialized by calling
ext4_get_resuid() instead of ext4_get_resgid(), resulting in the
reserved GID being set to the same value as the reserved UID rather
than the value stored in the superblock.
Fixes: 12c84dd4d308 ("ext4: add support for 32-bit default reserved uid and gid values")
Cc: stable at vger.kernel.org
Signed-off-by: Jiazi Liu <liujiazi at amazon.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list at gmail.com>
Link: https://patch.msgid.link/20260727104103.28916-1-liujiazi@amazon.com
Signed-off-by: Theodore Ts'o <tytso at mit.edu>
(cherry picked from commit c87abbab6147dcc5aa1fd8f2a61734d58d8b99ec)
https://virtuozzo.atlassian.net/browse/VSTOR-155988
Feature: fix ms/ext4
Signed-off-by: Denis V. Lunev <den at openvz.org>
---
fs/ext4/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index a6581dee49ed..e930db91876b 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -5367,7 +5367,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
ext4_set_def_opts(sb, es);
sbi->s_resuid = make_kuid(&init_user_ns, ext4_get_resuid(es));
- sbi->s_resgid = make_kgid(&init_user_ns, ext4_get_resuid(es));
+ sbi->s_resgid = make_kgid(&init_user_ns, ext4_get_resgid(es));
sbi->s_commit_interval = JBD2_DEFAULT_MAX_COMMIT_AGE * HZ;
sbi->s_min_batch_time = EXT4_DEF_MIN_BATCH_TIME;
sbi->s_max_batch_time = EXT4_DEF_MAX_BATCH_TIME;
--
2.55.0
More information about the Devel
mailing list