Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1347985pxb; Sat, 9 Jan 2021 16:59:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAcOOOvHDBjeFprP95Wez59pcxnuerCwWqUJtfwB1mjBlwhx4p02nD9Mwn6j9hOew4cVqO X-Received: by 2002:aa7:c2d8:: with SMTP id m24mr9810014edp.300.1610240358314; Sat, 09 Jan 2021 16:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610240358; cv=none; d=google.com; s=arc-20160816; b=GtgkAZ45/NkgkholexNj/AS074trjUGgMajlRJEbiqmukCv0qG5WfKOLGsCe4Qk7zQ nne73owOIKX49N3ZlxNswXQQQx9eztTr6rV2uIlTluPOGPWQ+sBv4c197Q9MJ0pHroRo 1GCvAfpgSoyeBmWu3P6/194KDRbXI/NIZbcvesakIYD+GruTjfHsXUghSmDg558sH/YW kd1REPel1/wExwXHwe9Y+dvM+SQwpxabZtNlKOPdytZO/gEPswo0smdCut7RbUqhdk6/ 0pgjGQiqQDW+aIg7ZjVA3Z9etHM29rMINL+LtODhEhYhqFGclazkQKPApUZz9ygFcLPR 0VAw== 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=Y1TK5R1FLhqUZHzbZyE7M4Dp0Iue9KfHCBqgmZJIg4A=; b=HFIFpMoUGCbKd8vOvzb845NfNomPvKljicer7A9etnAvo29nQb28b9dWXHI+6GRuX1 GYNrRs80JtK8dn0VOj5leNZuoXrqtO8Dvi1MNRfqi4ZW6BWNhd2BCko4TNQaPZpKf4Yi aKTH5Cx+pVjSXT0/Uv07b9cAaExhji7/Jf1yeb8KJ5pSH+hLnzOiHui4Oii6pmkgLxPg 34+NqQoXMg6mJE6JTiRmTT9aLroP+W4nvEy1aXpry2EyHCZFqKd7hJ8Z0mic94hH5+vU UrExy8PgqnRrcIidHlIUytHbWQ0M4/PPTsV4btKLNE6pjZYb7qNsqjUVye4Z3g+G1WI5 UIHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AVQ2wT4R; 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 y13si5152928ejw.564.2021.01.09.16.58.44; Sat, 09 Jan 2021 16:59:18 -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=AVQ2wT4R; 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 S1726238AbhAJA4v (ORCPT + 99 others); Sat, 9 Jan 2021 19:56:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbhAJA4u (ORCPT ); Sat, 9 Jan 2021 19:56:50 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEDDAC061786 for ; Sat, 9 Jan 2021 16:56:09 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id x20so32191214lfe.12 for ; Sat, 09 Jan 2021 16:56:09 -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=Y1TK5R1FLhqUZHzbZyE7M4Dp0Iue9KfHCBqgmZJIg4A=; b=AVQ2wT4R/pilMT7+jZVuipht74IAH3YCX14vesrft3syqoEeGPIytKbWZxWcF3FWPs 1zXY9kXUAb1gRWJ1Lp6xuWksyVJrsBomCAf4x2GwcLUYGGYpE07qDPb5zIqZySfZ3mOB gQNwVUSISMUSiKt1kdVoXFc4Jh0OsdEPYLhjY= 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=Y1TK5R1FLhqUZHzbZyE7M4Dp0Iue9KfHCBqgmZJIg4A=; b=n/rKYLV2bXSoIqkncs/KXG2YvixSMUY0wsSKieJYgOo0d+hCiIlrQRFAGSiNfU9uY1 duDJdNsfKdU2VsU949s6T1DG7CCbapGsg1YQ6NW1jDp0gGj03YaywiBJK56ToqBmjvDe 6bJbEJBbMhS3Os70S26GUR9gzGmGpiG/z+IvfGtqnkT6lBpMaKEQnCEuCsbI+yu688BF Ibl7nMwcAcfCozCpUkpBhUowZ9TsvL3n6vfWZ8Dref8PZsJdK1EPGojRiNyMCDWVAawA bkiQTgI9kuBa4R8EmEu+Z/euWhgAloJeGVZoUrbB4ucjnbgEkXL2nWvp/eLuviNEaVBT 1dlw== X-Gm-Message-State: AOAM533LEmb5Xla7EloYYGIJFPh1C+0lL0op+8eS1+NX1WZakq6Wj6RY vk8t196kto73woLiWLjS0HzEv9+sBjGnBg== X-Received: by 2002:a19:716:: with SMTP id 22mr4296654lfh.390.1610240167754; Sat, 09 Jan 2021 16:56:07 -0800 (PST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id k18sm2805445ljb.80.2021.01.09.16.56.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Jan 2021 16:56:06 -0800 (PST) Received: by mail-lf1-f46.google.com with SMTP id x20so32191084lfe.12 for ; Sat, 09 Jan 2021 16:56:05 -0800 (PST) X-Received: by 2002:a19:8557:: with SMTP id h84mr4187473lfd.201.1610240165669; Sat, 09 Jan 2021 16:56:05 -0800 (PST) MIME-Version: 1.0 References: <20210110004435.26382-1-aarcange@redhat.com> In-Reply-To: <20210110004435.26382-1-aarcange@redhat.com> From: Linus Torvalds Date: Sat, 9 Jan 2021 16:55:49 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse To: Andrea Arcangeli Cc: 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" , Matthew Wilcox , Oleg Nesterov , Jann Horn , Kees Cook , John Hubbard , 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 Sat, Jan 9, 2021 at 4:44 PM Andrea Arcangeli wrote: > > Once we agree that COW page reuse requires full accuracy, [...] You have completely and utterly ignored every single argument against that. Instead, you just continue to push your agenda. The thing is, GUP works fine. COW works fine. The thing that is broken is clear_refs. Yet you try to now "fix" the two fine cases, because you don't want to fix clear_refs. What part of "clear_refs is the _least_ important of the three cases" are you not willing to understand? Linus