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 770BC40243B; Tue, 25 Aug 2026 13:39:54 +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=1787665195; cv=none; b=iWZamNHuxg6j2ObvcRA2N+fRvCghvCQ0MxEGcQNM1VFA38aVX53z+fzx714mJ7xD+p4ihzAbhMsfdiViNgdQ50ndA8efrmqUflNdNWokNldIJV0eES3VLlOppQAalsfQPPHNHoDd2Uw5l/Kw9QckFHBDn9updAawXoShyzrK8LE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787665195; c=relaxed/simple; bh=iTyZjP1wreZmAq2kKhShH7xJ1H6om6YCYfSuj3LoBaQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ygsn0Hvc/hA+h6pWW/CrCFoujpqWgwOeGf3uwfY8Y9iAarFCTuFD9J+2eZlVjtuiSOazbeC4XCc6zqOPllU0FALyPABJwnMxBtkyNxNxJ/GUWkfLS3F7K02ovW6RERMY9RCTYsS3lNqPC5ErYMiNlJPz5zN3iA72Xush2sekaP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QyuDvQ2R; 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="QyuDvQ2R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 999231F000E9; Tue, 25 Aug 2026 13:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787665194; bh=ux1vJtAzdejhtdGPoSHLhkMzP8LV4OF/AnxilRhvwO4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QyuDvQ2RGWsOeOLDoXgHThiNz+EIda7gK4tyxaPDVtJSY7yeiL3JWm9gdGas6skl2 xQN/qgx+TUn7GfmUIiB8d9u2G+s1VTCho221XuOe6H3f7GshycvAtTgnF6tS07MZuF WugHr2aMjymoBpJ/lhoWPRtDQyxj3j7VBXUmWvNQ= 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 6.18 31/94] ext4: fix incorrect function call when initializing s_resgid Date: Tue, 25 Aug 2026 15:25:27 +0200 Message-ID: <20260825132543.127454692@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260825132541.887883084@linuxfoundation.org> References: <20260825132541.887883084@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 6.18-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 @@ -5291,7 +5291,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;