From patchwork Fri Dec 20 15:33:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13916887 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93B26E77188 for ; Fri, 20 Dec 2024 15:33:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9710E6B0082; Fri, 20 Dec 2024 10:33:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 920796B0083; Fri, 20 Dec 2024 10:33:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C05F6B0088; Fri, 20 Dec 2024 10:33:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 5F7F76B0082 for ; Fri, 20 Dec 2024 10:33:22 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DBC111C7B9F for ; Fri, 20 Dec 2024 15:33:21 +0000 (UTC) X-FDA: 82915730646.05.47B614D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf07.hostedemail.com (Postfix) with ESMTP id 3236240019 for ; Fri, 20 Dec 2024 15:32:27 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mlUzhc6m; spf=pass (imf07.hostedemail.com: domain of cel@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cel@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734708777; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=voTBI+10I8gpf3HJekjgnCwWFkIlnR2YjBJCSXx+uCk=; b=4p2DaraVgmYVu1dLXCsO/RWJkcxt/46WjmPCvVmn0nEagrBY8er7b8Q9M8TEgpmGpOzmvs O8KLvd3LjdZD9IRjd9EROFsyxD+V3Wv2zGq63Zz4A7qDadnpMOLhFwnhSnGQgFEHFaqn70 4snXVK1TZYadDpnxbebLWFuoKD8VNrQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734708777; a=rsa-sha256; cv=none; b=qGadOqZ3+pcnGYh/6/5+LaGV1aKr2wx1aw+LCUq1QDOMRcQQ+aRaGTG70c1QJFlc+fyRGN Y8CSfb8ViLFyAnj3damDkSkXstxwfdLORe1iTPZ61PtTihpz0WP8pkyVcg8HhE5NFsvquY pge4/mMN6+S647uc+ztUJNgvQjvCyXw= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mlUzhc6m; spf=pass (imf07.hostedemail.com: domain of cel@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cel@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id BEAA75C628D; Fri, 20 Dec 2024 15:32:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A86F6C4CED3; Fri, 20 Dec 2024 15:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734708797; bh=uKpdjPl/prEWmgIxsZT3Fna9IFkvWwQid/TKaFC1+gk=; h=From:To:Cc:Subject:Date:From; b=mlUzhc6mB+m1G8Q4irZgSegZI3kwD+Jv3zKQ29Z7WSQEntCKaaooo01B0WP3QoC2E 05kMoj5KlN+LM4HGT7psxX3CVnBboUX/C0j4CBef72VgIILMWYqFAm8Qb1w+HhkzHZ 1keGAowkYTGL9lveG48rXehevtqP0MRNKVFFwQ6wjjcwPrB6bGDDPkRdaWNlOg1YCq KdpxljRYAs28TGS/n5e7HVOSW5U/kbtrklSH83/nc3KbaJvAVEw0ktb4w6Fi67YAgg XPpLPLHcfHivipImhf+sYqHqbttHBhC73qLpueFaghtInlm3Y89cb9L6FqmxJ4Osph Ky3qC5pOev4Tw== From: cel@kernel.org To: Hugh Dickins , Christian Brauner , Al Viro Cc: , , yukuai3@huawei.com, yangerkun@huaweicloud.com, Chuck Lever Subject: [PATCH v6 0/5] Improve simple directory offset wrap behavior Date: Fri, 20 Dec 2024 10:33:09 -0500 Message-ID: <20241220153314.5237-1-cel@kernel.org> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 3236240019 X-Stat-Signature: ziutncm6ibhgb7pnj8kwzd36ra37mm93 X-Rspam-User: X-HE-Tag: 1734708747-24299 X-HE-Meta: U2FsdGVkX1/JgKhUj86JFcvwLVfqwJjObg1wph9oMgq2Fq4nC+wRhU435cNO0gvK44Ol2zox28Iyk3Rjyn3qLwn1/rkBHmIL85rAuMpT1w69H1QIuuAJSfu0YmQmcl7Rf0FpTMu7UrChhLQp4rClPX0BYVbMtbnCCvvodzVJh+vGQNMwRGVEid0LzTRqs8/mu/jj2yvk6lvFYkSwjMho2SyLFBBYfYuNblWeIHCwoaW32HaHBgh+HcsDNqzLzvTpIaB/mJITYPGTeRvA4KjQd99bZpVUT78F6fUQ2/7aGakvRx/6Pn6r5Y8rul2UDo16g5cltfT4MgTrelMhL6+3yvLbpRU7ji+C+tYpYV2XC5sL7kGwf3Sn4gEeJRFvtaOpA2G0Q/reIvvgn52l6QBucKg8rpm1kx27O24WoRCQ7OA5MfTZmjdFAqyNNpVZKGaiAY66GHnctx8/8WIVdwHKpBVyE9jPM5iMDNn4vKtzeK522HfoPacM9Gd/tYVGTiOyHxCb6hMlVClUxd6YNqhvmkYfepISM0gWg8vrPeZFSH/8g7rE8nRaMTnWpYpsdh7BUYCwJlYtfrJRLT3renm1eVRM0qBh/ZSMPT4vC+2O2H6pbt9nO0oMVX/vCfPUjoPHMUqiEUEoC0n15ONayiGkntsEytvO/faC0LuNJr3LQlifgqAC3uajO1MI7eWv9XD9ZtH4p8eOiy8fDdHEgxtlZYdfZXT39bI1smXtJAY9xlGGppziFtW02I6pzcazKhDZ3v4t+iMoTkr3s2VJSebv1kHM3oSB+Kqq2PzqSwjVBz1ZzGdSDG5KnQrEOtQ/ISt9ikHLvB7ygfcs5KV7frrKxoUvK3Mqyt4yQw8Y5Qp967JyKy3MZEySCaJ3fdz5auGDgDmgBPZgGGNFy0NOc3y5Sg8Z/IMLiVQJivbGbka+HITLZwP8MhiqzLOmjq/PVPkbziJSgopXpYOQ/hcpk4d r/vrU8ju seVMip9FZeUo+IBx/sgLHdQ+b6lRq27VZhWrgcxCt2NJYEyeryNLjq5j/Il2Fjba9+VawqhIHMuf3DkDQDfG8za/dYG1WeKJcdfWsM+IWTrQ84rbodWCFLdcRpkFsi4559FOBE6gNZK1MizX1Nyfy7WLCgYx9MkQ5+BYYsewb1UGqwdvHfSn7SuBUHZnVv+IE2uCXqN3yOcKiSUf9rD6bNkA+mTjFqc5e9bGijSdA0RDaaN5v6/wkkUfdtlGRNFBw+4cU X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Chuck Lever The purpose of this series is to construct a set of upstream fixes that can be backported to v6.6 to address CVE-2024-46701. Changes since v5: - Improve error flow in simple_offset_add() This series (against v6.13-rc3) has been pushed to: https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/log/?h=tmpfs-fixes Chuck Lever (5): libfs: Return ENOSPC when the directory offset range is exhausted Revert "libfs: Add simple_offset_empty()" Revert "libfs: fix infinite directory reads for offset dir" libfs: Replace simple_offset end-of-directory detection libfs: Use d_children list to iterate simple_offset directories fs/libfs.c | 163 ++++++++++++++++++++++----------------------- include/linux/fs.h | 1 - mm/shmem.c | 4 +- 3 files changed, 80 insertions(+), 88 deletions(-)