Article View: linux.kernel.netdev
Article #15012Re: (subset) [PATCH v3 0/9] mm: limit pagecache folio refcount
From: David Hildenbrand
Date: Thu, 12 Nov 2026 09:39
Date: Thu, 12 Nov 2026 09:39
47 lines
9500 bytes
9500 bytes
On Tue, 10 Nov 2026 21:35:40 +0100, David Hildenbrand (Arm) wrote:
> Note: I really would prefer doing something else right now, but this is
> rather urgent.
>
> Users can create a lot of folio references to pagecache folios, making
> it possible to overflow the refcount of large folios.
>
> While we knew that one could in theory overflow a folio's refcount, we
> mostly assumed that bad things would happen and it wouldn't go
> unnoticed.
>
> [...]
Applied, thanks!
tree: mm/core.git
branch: for-next-fixes
Applied patches will appear soon in mm-next, followed by linux-next.
Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.
It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.
[1/9] mm: limit pagecache folio refcount when mapping pages
https://git.kernel.org/mm/core/c/61351dc9
[2/9] mm: limit pagecache folio refcount when splicing into pipes
https://git.kernel.org/mm/core/c/0ff9a420
[3/9] mm/mmu_gather: flush pending references early before the folio limit
https://git.kernel.org/mm/core/c/bfbf74ba
[4/9] iommufd: fix cleanup when adding memfd folio pins fails
https://git.kernel.org/mm/core/c/6d0d782f
[5/9] mm/gup: limit pagecache folio refcount when grabbing references
https://git.kernel.org/mm/core/c/6d3ff38d
--
Cheers,
David
Technical Details
Message-ID:
<179447638951.7244.5228149003624496001.b4-ty@b4>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361658-linux-kernel-netdev=dewy.ruReferences:
<20261110-refcount_overflow_stable-v3-0-318625d63a98@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361658-linux-kernel-netdev=dewy.ru From: david@kernel.org (David Hildenbrand) Newsgroups: linux.kernel.netdev Subject: Re: (subset) [PATCH v3 0/9] mm: limit pagecache folio refcount Date: Thu, 12 Nov 2026 10:39:49 +0100 Organization: Usenet Network Message-ID: <179447638951.7244.5228149003624496001.b4-ty@b4> References: <20261110-refcount_overflow_stable-v3-0-318625d63a98@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1053664"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:IGeS0yLjOdVfxlOAInelRAbdGzQ= sha256:UMdiQbsh53O5CtQ6B4O72dlFCAtUizQZWDR87dBTbZ8= sha1:lAwFdlsC8vwV8IMhVVM+hqje9jY= sha256:Uuc5BbjDLs4Ck7zSpZJKDLi6lyfK7d5qm2jNfaIdUCc= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 497C3114195; Thu, 12 Nov 2026 12:51:43 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KjT2YNBIi00H; Thu, 12 Nov 2026 12:51:39 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-361658-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id DFF0B11418E; Thu, 12 Nov 2026 12:51:30 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 1EEBFE5E05; Thu, 12 Nov 2026 09:40:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794476405; b=oRGfLu+7uP+Gnx3YF1dHbxZkLDsnm1SfwaHDnFGnpz4QLrEJxQ3rLSioh0niIqsmGi7W v7oIS3aaGMEI23JKh4zSskOodRLxec/G4AL+10kkqBumfE050sSMCrrvpQfw47wwPuJl7 eFpjU96QMRbWIQuLgLe0m42I7/Ma2KN+P5CSUwPTFriFsMMbiikJArnH8gfz+CcfbSKxL R6EDI9Q1xS4hZB4xrxay4/Z7dvI9h8wdnFF9kWaOsAfVwLS6F5tYEqaQVEWvv5bJbnvR1 HnPzFU6aEljdaroEYgTsnCiYaT7dl80T8x1SsVcX4M7umy/WlL134/PdBbgwX6wdimA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794476405; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc: In-Reply-To:References:Subject:Message-Id:Date:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=IfhBgU9bzNjyzCbMLI08qHDpGZfOfIhIVxpnfJz9+gQ=; b=2+sIpzcUp5gyy5T4noCr7i9OfD1kHGDH5JToRIZL1OfI6YYDkPjQmar6V6mHilzZ7gGK ZH7FVS1BSoUXuKJJIOt694CjYsWJLQfVzXPN9yoNNlanuVvlR7QpBnKEjHXXbSpinyof6 jGhu9/WxTE+T8ZY6UwxvUDxmTxnwUpI6u/CPhuOCgBKhGF017A9p2RE4nGkza4EU0XLcc 8yWaJC618QDqtujZiRqRqmX+NBqLUrJEP4dGPEY4giXvHl378G0mo9gwImXNUAzTgcLWv JrNN4J8aae/6Ouf1LMaXxrVsNLRP6ifWE66gT+WopBiSfii9F29tuY/S3wEHilh8CBg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VoMrAWhy; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA59B606A88A; Thu, 12 Nov 2026 09:40:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VoMrAWhy X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794476405; b=38O1/0JD0y/b3cGrhD/w0ixgXHL54ddVlYq3SLiJ8b0zQsbuxL5/sXH0pRsO9f0Y/AWO nffuFDauq1c4S/0sVKhOrrHjFKd8TVFDSS6opB4pNMqGmlvaa6C30NiKn2iscdQkf2LH5 7uSL0GDHhn1bxjSPLUwf9ea3otKI4Y3I5FR8W8KZLBxlajjRUAeq5xkMrW/H0rsdFN2qv VU4wZe7gODDcj2I2TjaBI9NKqSfBrZqvCfSAbJI/z1azB6Wo9qiFRvntU3W5eC3YW5wF7 DHWy2U8XiZRXfVaCbizU4WDyCMxPSEcH4QbGuH+dZUIVtvP0aFZMjkCJXcjvuI6ts+g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794476405; h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=IfhBgU9bzNjyzCbMLI08qHDpGZfOfIhIVxpnfJz9+gQ=; b=vnvf7V4yKLpYkAJ8AV1sglG+jC4jQ9lRpO0nXIKEGUxyhKnOdzh58/o8jDhdBVtb4ZdX ghwg3/WpzPi9uLH+0xhqF1t/3xvcSyAfzF8SIlcWGQ/VrmUaRjKjbL6Pd3dtHCH1ioyBU 8behmcXMcujxtQFqxpqTcDbYDd1dTc5LWLsu//UfmzSi4ACiI7Bm6lId/7VTm3SHMEe9O ZbUiwTvwZIjdu9ADxGrQOnscXd2aQa9vKalNvWu3G/zJcq1A+sKmg81nlbfxQutL7nFW/ QhpiTVYcUtML5007Mc3hxZelTvtRDSyLiDj33HiFSQwolAeLCBlCRBX29luTbWygXYw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VoMrAWhy; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0076B606A321; Thu, 12 Nov 2026 09:40:04 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C635B1F00A05; Thu, 12 Nov 2026 09:39:49 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794476404; bh=IfhBgU9bzNjyzCbMLI08qHDpGZfOfIhIVxpnfJz9+gQ=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=VoMrAWhyX9Mu8dmXuJL0tzpqovAGH67dTxFbjd4TxmhmE1/c0FPVOzA9Ic0I2dr8O R1LEPqRDp5AZW1NtPA3Ct7Mk7SEKbgWIVeFl1BNL5iEUe1bTvUvtWIzoKx+CYUZmQy GE8NIXtSJJ7ZrGaRM5fNNGKitBWEN5/Q6Tq+JK0378GDgv0YZwNQ5bsIqcTjglpUxq +rRcWDYtIVXhXlC40Ldkc9s2FE3hdEDpugkRygfnLxQixI1iNmJpEI1jDUtJdy6Kj8 Vw/b/Oo7ZPcLQ5a4p4SUexF7KHm5VqcENXFZHkOCDlVpUBNHuwr/mELTYjRHRonOtj 9U2s9/qqKtsKQ== X-Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, fuse-devel@lists.linux.dev, linux-arch@vger.kernel.org, iommu@lists.linux.dev, netdev@vger.kernel.org, Chris Mason <mason@kernel.org>, stable@vger.kernel.org, Jason Gunthorpe <jgg@ziepe.ca> X-In-Reply-To: <20261110-refcount_overflow_stable-v3-0-318625d63a98@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-Mailer: b4 0.16.0