From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C9F9481672; Tue, 25 Aug 2026 13:34:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787664864; cv=none; b=Ivg1EsnX8wp5E5juIYTfG3X9WUs5pZQQpa4Q0RnkJj3h3aJ86GUaDLzpuDsxzfniV0+hAS8JSGmv5PhIs/B98YDXOO4U4z1dK/p1EdRzKrrU5NqmHHd8SPfpjby7MDCaUelM6XFPVpzdXJemlPkx2Qt4qQ+JY4et032zQGrHMO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787664864; c=relaxed/simple; bh=RRK2MHzcdwT+uAeOYMh4soAAQNdGEJtAuqbAgiG8N2c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K2wxO8qUvWpQpvYBf05jAX+MgNzWFMNr0W/lvq0ZgQYb7FhEW/lsbImv30U0hrtpTUaPwe1sjbBTgGCwd9OOJVBW0BPn3U6ylLj506nC/BSFMreX1BZc15ExhHvtNE2AQM15vhq2U0SqlELDbyQJdtC9GHxCfT18YiiE4bu4riI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qgKB255b; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qgKB255b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC4D61F000E9; Tue, 25 Aug 2026 13:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787664863; bh=nYTTHNJZVYVtGBYa46pnPJ+e6B8/gqIj9v8sTUqLtsA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=qgKB255bQCLa4gEEWajSGCGq2Ztrr4FOsm6K9orEcXid59JKlIfmjyxIU60ap2WuC 1WoAZGqjFjlgK95t6hweZAZWieM4hSX+BToj/OwLmLez3iXFI6ZoYy/0uJE9UrP6XN +YXqgZon/6r91bobrxanK6SO77vD8pj03sUX4mrk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jiazi Liu , "Ritesh Harjani (IBM)" , Theodore Tso Subject: [PATCH 7.1 030/101] ext4: fix incorrect function call when initializing s_resgid Date: Tue, 25 Aug 2026 15:25:08 +0200 Message-ID: <20260825132543.196472558@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260825132541.986300899@linuxfoundation.org> References: <20260825132541.986300899@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jiazi Liu commit c87abbab6147dcc5aa1fd8f2a61734d58d8b99ec upstream. 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@vger.kernel.org Signed-off-by: Jiazi Liu Reviewed-by: Ritesh Harjani (IBM) Link: https://patch.msgid.link/20260727104103.28916-1-liujiazi@amazon.com Signed-off-by: Theodore Ts'o Signed-off-by: Greg Kroah-Hartman --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5365,7 +5365,7 @@ static int __ext4_fill_super(struct fs_c 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;