From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ACE7C433DB for ; Wed, 13 Jan 2021 02:17:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1B5CF230FC for ; Wed, 13 Jan 2021 02:17:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B5CF230FC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 468738D0008; Tue, 12 Jan 2021 21:17:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 419A38D0007; Tue, 12 Jan 2021 21:17:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2BB068D0008; Tue, 12 Jan 2021 21:17:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0054.hostedemail.com [216.40.44.54]) by kanga.kvack.org (Postfix) with ESMTP id 10DB48D0007 for ; Tue, 12 Jan 2021 21:17:17 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D6486824556B for ; Wed, 13 Jan 2021 02:17:16 +0000 (UTC) X-FDA: 77699139672.12.hand69_05082f22751a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id B90041802B9D5 for ; Wed, 13 Jan 2021 02:17:16 +0000 (UTC) X-HE-Tag: hand69_05082f22751a X-Filterd-Recvd-Size: 3678 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf20.hostedemail.com (Postfix) with ESMTP for ; Wed, 13 Jan 2021 02:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EmSAjnSYAp9xXMovzqYhVDc85JMGVHpfKia1pHTJ+EI=; b=plJ5Ka5h+hRN7qsXCo+IkoizbM 1WIqT+1XMnOZ3E6Zj5Uf/CvzDBRcA4sXIlVNIpSBmS/lJMuB1BKGfkTzAZjewq4zMG35oUjfuqKdr SdcWyDmF7zFD6IvMvAUgPAolJgax8qArixwRf1DwQ/vwHWaWA26B+5P7DpKCjJlJy7Ny2GVYKQe0l x7RY6T7LkT2/2dRMGE5ma1iZtljqMwjM+SakE4U/20LRO/BFWF+8NOJa+yRKZXtU1Nqfsi9cjO/6H x7Nh733IeD4n095VJ+0kUM23Qge30bZYAEi4VpihYrJUWwjHTthsR/HWvQU6andbXrZL9liNjFJYi GXt76XYQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kzVhr-005g2N-49; Wed, 13 Jan 2021 02:16:23 +0000 Date: Wed, 13 Jan 2021 02:16:19 +0000 From: Matthew Wilcox To: Linus Torvalds Cc: John Hubbard , Andrea Arcangeli , Andrew Morton , Linux-MM , Linux Kernel Mailing List , Yu Zhao , Andy Lutomirski , Peter Xu , Pavel Emelyanov , Mike Kravetz , Mike Rapoport , Minchan Kim , Will Deacon , Peter Zijlstra , Hugh Dickins , "Kirill A. Shutemov" , Oleg Nesterov , Jann Horn , Kees Cook , Leon Romanovsky , Jason Gunthorpe , Jan Kara , Kirill Tkhai , Nadav Amit , Jens Axboe Subject: Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse Message-ID: <20210113021619.GL35215@casper.infradead.org> References: <20210110004435.26382-1-aarcange@redhat.com> <45806a5a-65c2-67ce-fc92-dc8c2144d766@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: On Mon, Jan 11, 2021 at 02:18:13PM -0800, Linus Torvalds wrote: > The whole "optimistic page references throigh page cache" etc are > complete non-issues, because the whole point is that we already know > it's not a page cache page. There is simply no other way to reach that > page than through GUP. The thing about the speculative page cache references is that they can temporarily bump a refcount on a page which _used_ to be in the page cache and has now been reallocated as some other kind of page. Now, this is obviously rare, so if it's only a performance question, it'll be fine. If there's a correctness issue with copying pages that would otherwise not have been copied, then it's a problem.