Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7482610rwi; Mon, 24 Oct 2022 15:33:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yh7IVs6F0YuM/f3gwq7DWbR0JVqfUP+XSmzsNNiN0S+v98Jopbecg0CR2oBb07uscw7ak X-Received: by 2002:aa7:dd57:0:b0:453:2d35:70bb with SMTP id o23-20020aa7dd57000000b004532d3570bbmr33124934edw.26.1666650799942; Mon, 24 Oct 2022 15:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666650799; cv=none; d=google.com; s=arc-20160816; b=VgGJixDhXABcP/Ogl5Jf4Arhd1lNydrik9W1wcE+a1C2oUTB382uNoWadBcXUK4I5c f3e0RcvIMih/rndDmgnsCMgh/nBixyGv2y4SUVnFXoMUwlNZUMg2eMpferPXElkTBcK3 G2IjCD5FIW2USyq/TwJK7280hwzlCbl+Qa48iAyuII4aTeq6cGhz7iR1lA1hW/L06IHt dh89QngsRF/baKcaoNN83dQoSjAOqeFJjU3DtURzcmfl2KGAlHr3mbhMBilzlq/WO9Gn qdUktxW3S7CN8ZV5pr0jSAcHhYXvOFQK8rAYj4yp9t9CrLlndpHm0cKt3c+rZXdfkL5j s5vQ== 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=nUgSwI+I3I6ArrFTquHdy3o7OpO0gtexbNIMHahi/Oo=; b=kBkryec3pUaSik0SNic9DW5QXkjg/hikPakVGaaarQVk6cPx5rdaCFpOUuuQIADW5i aKO+nwIiJQf6AHPlbX9mi9Gpku7ijXDYXmavzRYCKr/GsmsIUFRcG5NptYXTO07LeC/q hu+654U3laKFIO++DapaBoUxbn1VwPIA0kw3AnkPwM+Mrph4RaRQzM7BkgkQ8+Gscls5 PRvnq4AW+ej2yl8cL21vTUat2kNbabzRHKS3tdRH6YB37TUnS79GxIZ2vWUkXQadyQD7 13OjFCF5sslYeCjElJuVgjpoWTBz2LU8xTDEfxp+uE2YdhcRyAQpw34T0AqylLyz32SC zR4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EyRs4jkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bh23-20020a170906a0d700b00782c6ab6f01si821131ejb.410.2022.10.24.15.32.55; Mon, 24 Oct 2022 15:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EyRs4jkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbiJXWUv (ORCPT + 99 others); Mon, 24 Oct 2022 18:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiJXWUa (ORCPT ); Mon, 24 Oct 2022 18:20:30 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F0F311847 for ; Mon, 24 Oct 2022 13:37:39 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id cr19so6389007qtb.0 for ; Mon, 24 Oct 2022 13:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nUgSwI+I3I6ArrFTquHdy3o7OpO0gtexbNIMHahi/Oo=; b=EyRs4jkVenQIvpIYDwwLo47kLr08xw8PDrq5+q8jiegP9yQLqJoi9Ln2BcHSwyvUoP 1oq/ujU391/cpQKLPuwqVJc9PSl3TxpmBd2JBhSdAz1891+sPdmTs06Gq1I6b7YPP9OS Rff14GyUNde4IZH7Ol7GRcWSdqXrCimtwiJZc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nUgSwI+I3I6ArrFTquHdy3o7OpO0gtexbNIMHahi/Oo=; b=2wF3KtGpomgZEWTX+aDB5m9R7u3909wWlnWwfHsRnHzxgZA++xHE94TtFUhUQFr53E BuahQstUD7y9jA6n4BbK7Xf2KU6AFqm7QzdqN8v17tk5w/MeGr1Pa2ms2jjpcRXJOLS4 fzznHDQ84Wvo0wZFaSfXyGjPfkruV4N3tAHM284J2lfonbuS2xT9Lag+ty9JlsNl2t/8 ZQADWrj660R1HdsuQF/GZe3aUeBr/BofVUTRnFsIN/NZ49SoUQpemp/uMaf1oiWzRvpt w1CxJJc1ANeoRbLBMveQC8DRmUJZXR/XS6YTWGOmiqRk5PcTnRnxi51VUyw4kpEUA2Jn 5b8g== X-Gm-Message-State: ACrzQf0vcIsdCSTyDnjS9VHiFSoiCFLwObOu6cM0ZeAKYNbb9a8qtIse J3gjN96tUsI3PKZE8BiULAAig+AiSB+Y5Q== X-Received: by 2002:ac8:5f52:0:b0:39c:cb1c:9310 with SMTP id y18-20020ac85f52000000b0039ccb1c9310mr29144571qta.177.1666643802561; Mon, 24 Oct 2022 13:36:42 -0700 (PDT) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id dt47-20020a05620a47af00b006ee96d82188sm672326qkb.1.2022.10.24.13.36.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 13:36:40 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id 185so1787008ybc.3 for ; Mon, 24 Oct 2022 13:36:40 -0700 (PDT) X-Received: by 2002:a25:bb44:0:b0:6bb:a336:7762 with SMTP id b4-20020a25bb44000000b006bba3367762mr29619641ybk.501.1666643799980; Mon, 24 Oct 2022 13:36:39 -0700 (PDT) MIME-Version: 1.0 References: <20221022111403.531902164@infradead.org> <20221022114424.515572025@infradead.org> <2c800ed1-d17a-def4-39e1-09281ee78d05@nvidia.com> In-Reply-To: From: Linus Torvalds Date: Mon, 24 Oct 2022 13:36:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/13] mm: Update ptep_get_lockless()s comment To: Jann Horn Cc: Peter Zijlstra , John Hubbard , x86@kernel.org, willy@infradead.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, aarcange@redhat.com, kirill.shutemov@linux.intel.com, jroedel@suse.de, ubizjak@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 24, 2022 at 1:24 PM Jann Horn wrote: > > That's why GUP-fast re-checks the PTE after it has grabbed a reference > to the page. Bah. I should have known that. We got that through the PPC version that never had the whole IPI serialization thing (just the RCU freeing). I haven't looked at that code in much too long. Actually, by "much too long" I really mean "thankfully I haven't needed to" ;) Linus