Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp922382rwj; Sat, 29 Oct 2022 13:17:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7k7z6uhZqDSWBPomXgI4WAd2s3pjqkY29P614WKmQ15ulODcs1iXoaj+QR/hT+T7uZ6oRO X-Received: by 2002:a17:907:7d8b:b0:78e:2534:4fd3 with SMTP id oz11-20020a1709077d8b00b0078e25344fd3mr5332604ejc.141.1667074658343; Sat, 29 Oct 2022 13:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667074658; cv=none; d=google.com; s=arc-20160816; b=d5ucx2jzU74SHCV5XPDLXzFtu7nswU/uI9ytkOpU9ydeuuhIpongYwFLEm06I/sXEu CGWyz0y+hy91My8WebszmnmAezQphKnKGxWZ5Syt4MWxLEcNgt4W5q7Z9hc741ApRHdb QrPl6pnaYaS9kX0duignxLzQvOePGND8X6VZLsYB83m0DwOZebPrwwxbLzeneH5ZjAXb A1jmv2CaNMVQr2wRGz0T9JefMwmakF0iaoQ7keebWxCvAfGf4dZn3zXy8TblQRQYhxvv /0A/IhTHG4Y0H0PUN8eBVEH8c2hyFyVWbKQzsmvNIm+7jCpf9P0fHfqsoRmZ3pJ7vUoD xa+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Z5MNM9Gp83rj3UXMtx0nvDXUik0Rl01o5B2bsdQaQS4=; b=GFSzwA7/h4I7CMqPll8Vk2p/RpgBe5zUs1WMeh+bCuSWzvENhljZOC1mQt9gY6VXeV dsiFJRZ2ZJWnOu8N2VtB9H8S+8JqXfPSVrVNy+IqUx2wHNCA1cuTItY4pVNBZJMV/1vX ttKhEEzV9/tr/4/4AqZu/3d02DRpdWCSxBcRdnmvcQwNAFJrRL7aOLyx9aTDHzObdvfa CjOLB/cTPqmT7MbkZL98Q4BwSCfi7pp0TX+f+wTdSFBQEu+fRLW9uXJslnHeuuVIwQcs 4aE/TlxAuYAsfj4X4lZW74up4U43VDZ9FboIVbZ+XPlrcsKKGJ/YPAC5glsEB5Yki6wF yhPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YLn+7prP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ba8-20020a0564021ac800b00458e689f41fsi2180444edb.415.2022.10.29.13.17.06; Sat, 29 Oct 2022 13:17:38 -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=@gmail.com header.s=20210112 header.b=YLn+7prP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbiJ2T2j (ORCPT + 99 others); Sat, 29 Oct 2022 15:28:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbiJ2T2i (ORCPT ); Sat, 29 Oct 2022 15:28:38 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ADCA371A6 for ; Sat, 29 Oct 2022 12:28:37 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id y4so7599078plb.2 for ; Sat, 29 Oct 2022 12:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Z5MNM9Gp83rj3UXMtx0nvDXUik0Rl01o5B2bsdQaQS4=; b=YLn+7prPCIUJbELDwGQBO8OgEvapON9uvMBpVWTGmVvbFDBMOqOkbeuTTx6JU62CXY Y1RB6U6Zw23NnkO7uWG0keEkAlKTOHQTGLuuvV7PT+9zlfXva15U+bb2at9GZtW9ZSj5 RZ9qnRt+RGA2iFOfpQ2JI5M50wrtJF0cNpLazpaSC1nDaIm4OjWxEaNJEUAWMjW2XFcw I72VSzkuSOK9IjbFfZreixDAA6ErWuRMaeuw26LsTNZfVzVCU9omvsSbFmM40LoayPVb VinRNm49z591YDYmDsMScC8NQz6UlX5Gu9hXXmagtVrsCcxZaPWP/XdKxqTLTcmjlEWn kydA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z5MNM9Gp83rj3UXMtx0nvDXUik0Rl01o5B2bsdQaQS4=; b=1aiLqJrU9Hi74vVF9CSdIXyPLa4jLY6X811QpQUPC7lBa538bPeYFNYvH6Ki1cQQdB 2U9Hp9perv+BP0qej1YRgB+3fGJbrcBOsT5IAZbEb4/hjDq2bHoUY+sVVCVclYPPSTgN KTzw8cOMNbqdWaZn2ViArjODLw/KTel7RkMx3+Zk0BWD0V8FyCYeqNuNrdcmvEBR82o2 WeYYBO69ABDlqAQlqZDQZVAQaXM31Pu8L9oy2qqVX1GVl0w6P33iWmSHzc/UR6EoQsZR gSIclJGL/FNdR2bcCJXtwJnXPj0scU7/1G9/Qs0nTDJ7SmThg3jQIZrN5mUro/FJPFEs lt1Q== X-Gm-Message-State: ACrzQf1Xfg3THa/ISUx3KOMvsbwpN4ZAYLE8Ws2GhsAiKUcio/lfdE79 5ARAKqN13a36ZHwYQ/x615c= X-Received: by 2002:a17:902:da88:b0:187:3d6:4c6b with SMTP id j8-20020a170902da8800b0018703d64c6bmr5768876plx.85.1667071716402; Sat, 29 Oct 2022 12:28:36 -0700 (PDT) Received: from smtpclient.apple (c-24-6-216-183.hsd1.ca.comcast.net. [24.6.216.183]) by smtp.gmail.com with ESMTPSA id h13-20020a170902680d00b00174d9bbeda4sm1627756plk.197.2022.10.29.12.28.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2022 12:28:35 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: [PATCH 01/13] mm: Update ptep_get_lockless()s comment From: Nadav Amit In-Reply-To: Date: Sat, 29 Oct 2022 12:28:33 -0700 Cc: Peter Zijlstra , Jann Horn , John Hubbard , X86 ML , Matthew Wilcox , Andrew Morton , kernel list , Linux-MM , Andrea Arcangeli , "Kirill A . Shutemov" , jroedel@suse.de, ubizjak@gmail.com, Alistair Popple Content-Transfer-Encoding: quoted-printable Message-Id: References: <20221022111403.531902164@infradead.org> <20221022114424.515572025@infradead.org> <2c800ed1-d17a-def4-39e1-09281ee78d05@nvidia.com> <6C548A9A-3AF3-4EC1-B1E5-47A7FFBEB761@gmail.com> <47678198-C502-47E1-B7C8-8A12352CDA95@gmail.com> To: Linus Torvalds X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Oct 29, 2022, at 12:14 PM, Linus Torvalds = wrote: > On Sat, Oct 29, 2022 at 11:58 AM Linus Torvalds > wrote: >> Still not tested in any way, shape, or form. I decided I wanted to >> send this one before booting into this and possibly blowing up ;^) >=20 > Well, it boots, and I see no difference with your PoC code. >=20 > It didn't fail for me before, it doesn't fail for me with those = patches. >=20 > Again, the "it doesn't fail for me" is probably because I'm running it > incorrectly, although for all I know there can also be hardware > differences. Please give me some time to test it. I presume you ran it with block ram device (not tmpfs) and not on a virtual machine (which can affect = besides Intel/AMD implementation differences). But even if your patches work and the tests pass, I am not sure it means that everything is fine. I did not try to trigger a race with shrink_page_list(), and doing that might be harder than the race I tried = to create before. I need to do some tracing to understand what I was = missing in my understanding of the shrink_page_list() - assuming that I am mistaken about the buffers being potentially released. I would note that my concern about releasing the buffers is partially = driven by to issues that were reported before [1]. I am actually not sure how = they were resolved. [1] https://lore.kernel.org/all/20180103100430.GE4911@quack2.suse.cz/