From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 398F4425CD6; Tue, 31 Mar 2026 16:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975306; cv=none; b=M6dc/nXRgOE11/heqkabxKIaKztgqD2VCTri2brzE0DOx1flpxm0u2fMxuS0dr24NajsE8lu/s6Y73PbvGCvWlhZkHUhnaY6lRrGme+IEGRJzQRP9Kutm4JQJE9AXb5EguJEPP1SuV7h0a4yqCEF7nGr47ZlICLydxAqFSBTnHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975306; c=relaxed/simple; bh=lWEBO6/nyA6ZGD6qzzxxi3h+KS6b9S/q80ik1lcBLFI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qukvIPQb+LzttR0McgNpD/VW9T95cE2nmPTq2Yxub0yB/AzpqoMCFUbmof7AL0wLtFgcIIq73hCW/NgT1c9iiRejd3a1jIEXHNUDqwKQlajWXzhGdl8VEN24AhK73ly7Ki/vskcUFADxvxfzeSAiBZ0NtwdBvNzLHkeBQDGsj68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M23hV9xq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="M23hV9xq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7E40C19423; Tue, 31 Mar 2026 16:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774975306; bh=lWEBO6/nyA6ZGD6qzzxxi3h+KS6b9S/q80ik1lcBLFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M23hV9xq1H+wt3fEOlpbETjLvfTEKrMqoLF24CCtT+XRxcXNyU1Z0jJNP0JuLBSXQ zD98Qcre077IFQlPHyNWk97pNFhqgx0EYapPdvgv0l5yCiJL1FXYmUf25Jbvcd9ctu gu+Tal5G4FlGnUFsObC3EDqpOppbEkXAw9QZKzRg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Amir Goldstein Subject: [PATCH 6.19 244/342] ovl: fix wrong detection of 32bit inode numbers Date: Tue, 31 Mar 2026 18:21:17 +0200 Message-ID: <20260331161807.943845392@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161758.909578033@linuxfoundation.org> References: <20260331161758.909578033@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Amir Goldstein commit 53a7c171e9dd833f0a96b545adcb89bd57387239 upstream. The implicit FILEID_INO32_GEN encoder was changed to be explicit, so we need to fix the detection. When mounting overlayfs with upperdir and lowerdir on different ext4 filesystems, the expected kmsg log is: overlayfs: "xino" feature enabled using 32 upper inode bits. But instead, since the regressing commit, the kmsg log was: overlayfs: "xino" feature enabled using 2 upper inode bits. Fixes: e21fc2038c1b9 ("exportfs: make ->encode_fh() a mandatory method for NFS export") Cc: stable@vger.kernel.org # v6.7+ Signed-off-by: Amir Goldstein Signed-off-by: Greg Kroah-Hartman --- fs/overlayfs/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/fs/overlayfs/util.c +++ b/fs/overlayfs/util.c @@ -85,7 +85,10 @@ int ovl_can_decode_fh(struct super_block if (!exportfs_can_decode_fh(sb->s_export_op)) return 0; - return sb->s_export_op->encode_fh ? -1 : FILEID_INO32_GEN; + if (sb->s_export_op->encode_fh == generic_encode_ino32_fh) + return FILEID_INO32_GEN; + + return -1; } struct dentry *ovl_indexdir(struct super_block *sb)