From patchwork Fri Jan 24 19:19:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13949871 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 75ACCCA64; Fri, 24 Jan 2025 19:19:50 +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=1737746390; cv=none; b=uos/b5Ssnb1jkYdR4uFdU1YUbYLldA2jmrsjShf0mvZppa9hkm/xNW4f9yq5gYzHVxGiOZs8dKN6TXPvLc/LOn7mSG23eka4cTE+ghn4E6CMLCVjwFr2gl8o5bZLZFBYPoJ5KzgCTBkG6x9R6559/efbRb+l+Hvd7qMR0+SA+mM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737746390; c=relaxed/simple; bh=uxWfJQcKZSJZwKoLlWXgT8zlZHeq5O98kmC9kyGjAzo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nyd0oys9FZMYlvA348stXveJD+OjzAnJdWLbZuRaIgOfFFGsHdWZfw+CSJYy0PQ6ClnRcEzB54XmtZWu7MOWZk7hEZIE1YL1U3i/0WZXgd0jmnqxNwlX8N3e2bFXdCiqNSug1ZGpB1IC9viiNUfgtq+FK99me2i4QzBBCUSHXU4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UE1LPkkK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UE1LPkkK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0979C4CED2; Fri, 24 Jan 2025 19:19:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737746389; bh=uxWfJQcKZSJZwKoLlWXgT8zlZHeq5O98kmC9kyGjAzo=; h=From:To:Cc:Subject:Date:From; b=UE1LPkkKb0Q1Qk6D/Vp+DFAJ+5MMmwI3EDN/BDgZvhSX1BLJ8RgLJmykKoT5qfQ0h 4Aismz1x/y6/X9o4Z7kQ0sVJICEalQ9THifnedsAi1ww+KHraGwpNZ8h2Ri9BMM0ri tBUg2BDjQv3F5PxorHBb88qk92f1ZKt7MzY1iwPkBXt5ew1pO5ZWJ+ZKiqkwNcTQpo QCLG/C7bpbUxXMpF4yvNCDBLA0j01QhhGUtWYd1U1hbDZGmCJvysjrtzTLO8svgXG9 JL7BawxnlLrG4Q3MfyiNg5+jfl2+098dQHq8MGX5dz+8ReaeJFvWU24DaYDx3fU1PW ov1xjdwxzqdJQ== From: cel@kernel.org To: Hugh Dickins , Andrew Morten , Christian Brauner , Al Viro , Greg Kroah-Hartman , Sasha Levin Cc: , , , yukuai3@huawei.com, yangerkun@huawei.com, Chuck Lever Subject: [RFC PATCH v6.6 00/10] Address CVE-2024-46701 Date: Fri, 24 Jan 2025 14:19:35 -0500 Message-ID: <20250124191946.22308-1-cel@kernel.org> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chuck Lever This series backports several upstream fixes to origin/linux-6.6.y in order to address CVE-2024-46701: https://nvd.nist.gov/vuln/detail/CVE-2024-46701 As applied to origin/linux-6.6.y, this series passes fstests and the git regression suite. Before officially requesting that stable@ merge this series, I'd like to provide an opportunity for community review of the backport patches. You can also find them them in the "nfsd-6.6.y" branch in https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git Chuck Lever (10): libfs: Re-arrange locking in offset_iterate_dir() libfs: Define a minimum directory offset libfs: Add simple_offset_empty() libfs: Fix simple_offset_rename_exchange() libfs: Add simple_offset_rename() API shmem: Fix shmem_rename2() libfs: Return ENOSPC when the directory offset range is exhausted Revert "libfs: Add simple_offset_empty()" libfs: Replace simple_offset end-of-directory detection libfs: Use d_children list to iterate simple_offset directories fs/libfs.c | 177 +++++++++++++++++++++++++++++++++------------ include/linux/fs.h | 2 + mm/shmem.c | 3 +- 3 files changed, 134 insertions(+), 48 deletions(-)