From patchwork Sun Dec 15 18:58:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13908871 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 9E8FEE7716A for ; Sun, 15 Dec 2024 18:58:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A548C6B0082; Sun, 15 Dec 2024 13:58:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A03B56B0083; Sun, 15 Dec 2024 13:58:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8B1D06B0085; Sun, 15 Dec 2024 13:58:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 6AF8B6B0082 for ; Sun, 15 Dec 2024 13:58:23 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id E6034B387D for ; Sun, 15 Dec 2024 18:58:22 +0000 (UTC) X-FDA: 82898102742.08.C57F9B6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id A96D618000A for ; Sun, 15 Dec 2024 18:58:17 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AvySvrVg; spf=pass (imf24.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=1734289082; 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=Q0yIiDxVDCGdBYUM5mFANxtXD83aZ/CL8BX3Zg1OKac=; b=fGL7wTAxbnA5y9JWfBWbO9GYKYGikCakXkDWeblAToIz7Z9H+lrVs85deahR5zT+sNmaX3 Rtr89oUutYGBRdMkITq3PuJUqjsMTvKC3HIMARLhClDfwEiy0y/HUZwdryqN2JO/M/1vjI GJgKmIkl7ZGBWIpEYXqD2WcqUqtAERg= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AvySvrVg; spf=pass (imf24.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734289082; a=rsa-sha256; cv=none; b=SgqB0G/m3HjKLgttac8hgNSfzOKj9s2xosetohgpYSIEZvPxoiPu4v0Iieuc9+DZW+UdDh VYSFDeWEQVlIzUvXk2a4X1NwRUbmLoQfnF3ifLyhilMAItVALmVjs0ym+P99k1SM6NYuOY WIU/QtYFGZpO4Yya5sPNW+au4zk52ys= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0AC5B5C4636; Sun, 15 Dec 2024 18:57:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33063C4CECE; Sun, 15 Dec 2024 18:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734289100; bh=t7qr1lAnuyn5glnbksnk2e7/3hobBFT+J4jHlhyHKLg=; h=From:To:Cc:Subject:Date:From; b=AvySvrVgjwhdXpDpeXgekyAUSuyilVxkR0ojRfy4gOOF9Rcrwmj7mU9L8TK2DwXZS C3zXCA+ee2FOPcxYBZKFWYMgf32Zxb9CeE2+SzZlU6f2mRUpws14sfLdgNSvO/RIzG 0ldqCFplWmy5l+ja/SxPHU9sqYvU1YkIXCypQTSq1gBZlaSF7N8Qpcciu8NnIIbBI8 PknK3xwYcZjnWdTV3sxTCykULvtFg9CWAGpyjq4ISAC6jXechcj28Z8f0N7gHYs8Of vP9UDo6N99Io9/0B8lVGmk4ajuKUTJ+57Vao8hwpF+sRCO61WjB1W0LNZmKqebNmnC EM2MohvN4BRBw== From: cel@kernel.org To: Hugh Dickins , Christian Brauner , Al Viro Cc: , , yukuai3@huawei.com, yangerkun@huaweicloud.com, Chuck Lever Subject: [PATCH v5 0/5] Improve simple directory offset wrap behavior Date: Sun, 15 Dec 2024 13:58:11 -0500 Message-ID: <20241215185816.1826975-1-cel@kernel.org> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Stat-Signature: xynt5wrxzbk99p11cc4btnt7xof4r4os X-Rspamd-Queue-Id: A96D618000A X-Rspam-User: X-HE-Tag: 1734289097-7148 X-HE-Meta: U2FsdGVkX18qTQMUBiap60CzzpEFEUbLd62UehqPcvw9wpdPd0fHXiKxbFLtiqCraGylYRYB7zLnQ+GJ3JPxH9B07CZCz31r7YyUL1xkIqCTiypiLAjPR72Vk6LPtmK1z1Uv41d8G+FPpZF1TuYHJ1CEgpCWQ6GGmaVppFzB2Ak6/NLdJIQFx1TzjAHA8Eq/b3HqRSH8u0jG4wmF2z+Ja/kjjmP0ooMbM/H2+zFT2RSb0478DXMnevStmvocG2XLrghlJm40OGTkM+Iiy1EYuNnxa1i/NTO9fFcuUGyDQyQYY9ALnbUkbj+QGP1C3j+otxxZlTJEAHjKZAXM5QebgI5CGIVYdDfROGUb6CJQq6YqfGjnzGC6SJADDn6csqcC08JPVPS530fVutwi9fOqnA+nrp2KeR6IOZOETnj/dqGkJ8/NnYJHKOE28hr49CZje315MsbWrlgWNHMfMxUQ85RGwWmiUMY9rurIqMKatIgDYJXRpoVppMsarWl+m1jvTzSGH8QANKStsZBOXWDQBTE2BL0jg/xRbt4XOvuVe7GZBl7z4z8+lkhdRIdT9J5ZgGygLu+8UphStBhsiuxPsUDE/jyxfAuom7GAHdvZju4nuQQUQZLY629tyaF1ztn3amvQCYJNkm6b3xyRrr7qg5XYGGsQJkZd3HekBqf8wrgjRZy87e1wPlI5W3WthsbKv8eSsFegwBwowCwY6lJK/vYC4jmVW1LCnzlFUBCZeV0bl+3HbpmVjiQ8DEDpPA1xuOMp6Gi7NfN/O+c0JIFfOQnd356C0D6+ngvA9u6iDvSW7igLDabdvD+mXkhe/T/Hy8/TOq0ueDfJZe71f0xxabNp6RfZY950TrUnG4Xbl6M3ppcdMVjHom+yVK7vjIdSeroCBfWdJleR4x0XbGiaws1xISau4I2eNEg3sa55ZlfY7hLAT8Ul6YaIqF5nDY19ocqlptQoCp7E068koe7 aGeCfLKe JbbUy5WK4KeWJ3KuTBQz8+bFQYpB8m4+EgrBuOBYp9uh62a3KzL5ErbqYP9nFEMugOtfxfx0lj0fYVdZSfz5j625exjkVNQtLhV2MlVyG0exjOuR1mGCnpCVnrVuUMIFTlzd89tpHWRrtMdtcKRy6gzJFTEHjVVSk5GSX9fRtCKI7+r9rrwh/4Z0wqTNVSd3UnQZ75eglKE9Oy/uldfHA3pIyz/0yaDDLBiX3ZsxeReKHZS5s7zH91FJ//a0REpWQ5Z1a 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 v4: - Refactor and rename find_next_sibling_locked() This series (against v6.13-rc2) 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, 81 insertions(+), 87 deletions(-)