Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp49792pxb; Tue, 12 Jan 2021 19:43:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9H4e7eZKkUiQy4FtooAkMor2ZOmtZ13CVVfirlqprGq0/rQGhkXDuSUE7fGawCCFdBsBT X-Received: by 2002:a17:906:19c3:: with SMTP id h3mr79702ejd.429.1610509386447; Tue, 12 Jan 2021 19:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610509386; cv=none; d=google.com; s=arc-20160816; b=lDUCFE9JWx8XmE3riHvBIf3XCMZmfoe7+Ik53mn52uOzRmBGZMgdOph44/+0e5apxa mX8DPqsLULzYVtwILBa+OGli1YsKbLQ2h4A4CgQwnuLayFl4vSc1Z0JWf34aV6btst4n fWA98/l/8UQbgTn6QSS8cp6xrypoMz8WAaPwAbTIbZjmioScrgxkuuwJyg7qokXC3I5e AFpf7bHXSVi7/ilJmcjinVH7h/LmSaQXlUgDgNLFnaskVgkpGMkYdqe8f57rmvQf+GjU QMere53KdGMN97gol0BPrqI2CH0PiJxPIhBz0WwHItQTuZ6nYfWHSY9yJ0qkFR+tYIaD ZP6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w3tovUNebVBqHYYgXcIOq46Z2/klSN5vOx1yoh735kU=; b=iU51t0hsSMUVPtjzArnEghI3VS9xwgQFzMZTYUslNTI40CNs948nwDBUiFZLnA8n09 V3X+uOlyoytO5rjvuS370Hkr4Odc6Qra4x8TCSYq397+cmAKZUEUIYol1uGWoscTUkK+ LCRyAx/RbKfyQSSPQvlFsyHW3Ij6VPQ3pAEw4CGJAuMHlZ4Z8v74Pj8AftC2TtWSB4FD jDSMGmm1vnpeO/92GnOu4Uti1P8WD8VjPd1LUSAVX3seExjZtziVBzApGusUFY3Rc3eR J8pw6JZPQv3d74pZ9iubIvr0QaJrie9ER09mVqS9ISLe0rf1DTItu4y/wPPOrOVnp6XV taAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QAaSJkf8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq18si337667ejb.693.2021.01.12.19.42.42; Tue, 12 Jan 2021 19:43:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QAaSJkf8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728550AbhAMCoT (ORCPT + 99 others); Tue, 12 Jan 2021 21:44:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728202AbhAMCoS (ORCPT ); Tue, 12 Jan 2021 21:44:18 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9557C061794 for ; Tue, 12 Jan 2021 18:43:37 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id n8so871881ljg.3 for ; Tue, 12 Jan 2021 18:43:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w3tovUNebVBqHYYgXcIOq46Z2/klSN5vOx1yoh735kU=; b=QAaSJkf8F8mhoT7ZED6SP0E85gkAUCHQnHtc+4RuECGaQMi5xzzzxQxQ0t5dUNsByp dyR0V1ZYxfPMUSKf8swLBXg1ar2NOk19ssjieWnvNPLDXb0uIEf+0GA+gqNUSnr+C7HP /d8xA7pSS6lEq1tHDU2OqWlkja0fwX376MthA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w3tovUNebVBqHYYgXcIOq46Z2/klSN5vOx1yoh735kU=; b=MS6P+yeyQWLx6bpOzLyAjxdFUODJ+uw4KJ5Dk579b5lW2Iacvcz0p8IccY1WIWV/0o wkdJFhp9PjfyHx9jWc7Ch6UV7Q4wmlLUdk/j7z+4YoHjladgCGxO18JxFOcsNC2tc8nQ zH7u2NuQJroFdhmUWT8gBE88agFKEWYqUUtaVx55nrj3gyAo11Y+4z7xVFvPrizyDcgT An6DnhDPCKtoV5gGRzxhS1664YK6VGO1mqFCJMLhG50CZj1t4MKQ7x3LqKRCQERnAirE B7u7SvTKiKcDCpuoZ7pt1LhASj9RdrrdHlaF6f9QatPG+2f0ww20JFhFwjvdzXLj+UwB Dbgw== X-Gm-Message-State: AOAM533/tEPXpzbTuco/nOJz5yVLgJUpcaWvun1Rc3twcqoK74aox18W Rqe1c+ddh5OZWCGRtfZ/uhm8ObpqUYowkQ== X-Received: by 2002:a05:651c:2049:: with SMTP id t9mr1007944ljo.58.1610505815658; Tue, 12 Jan 2021 18:43:35 -0800 (PST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id f9sm55446lft.114.2021.01.12.18.43.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jan 2021 18:43:34 -0800 (PST) Received: by mail-lj1-f180.google.com with SMTP id u21so893050lja.0 for ; Tue, 12 Jan 2021 18:43:34 -0800 (PST) X-Received: by 2002:a2e:9ad7:: with SMTP id p23mr936040ljj.465.1610505813763; Tue, 12 Jan 2021 18:43:33 -0800 (PST) MIME-Version: 1.0 References: <20210110004435.26382-1-aarcange@redhat.com> <45806a5a-65c2-67ce-fc92-dc8c2144d766@nvidia.com> <20210113021619.GL35215@casper.infradead.org> In-Reply-To: <20210113021619.GL35215@casper.infradead.org> From: Linus Torvalds Date: Tue, 12 Jan 2021 18:43:17 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse To: Matthew Wilcox 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 6:16 PM Matthew Wilcox wrote: > > 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. Right you are. Yeah, scratch the "we could make it absolute on 1", and we do need the PIN count elevation. Linus