Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp792346pxj; Fri, 11 Jun 2021 11:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygHTaRnv/UovZIqJDpdyxTfqa+JEuGUw0N/N+q17lF10xrIM9xUNURiazfendm4lw01D9I X-Received: by 2002:aa7:c54c:: with SMTP id s12mr5112755edr.374.1623436529089; Fri, 11 Jun 2021 11:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623436529; cv=none; d=google.com; s=arc-20160816; b=TouSH8jaqutxM07o5MSNHDOu1mNTl/sgLwcWq0bHUNDBrUm4uQYnfiHK7kuw1sZSK0 h0PUrvQriy3G4hIBIQnnESbDaL8klpnYCB3b2ddfe9Keb40ITEjAH37wp6B98z5CzD6X kd1TnwyX3RyJ3iPselKCgEjXThHDyEJp6FMcgA1RvhRAhwrxblYHfsJMPQnFDST5pgWE VmNvph5SNzFkpbYzvniRXaBlHDtZA0WOWg+9vOsQhOrjsXt2mbcWUWK2RF7RRuGZcngq V7jbSJrik7+BmrUAmmelpgzn9QfupOZ7BuZBw07qCA6udMCD44NJFub57yOgb20bcS0G wX2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=R3/bZmc/2oRYUixC5sfqXgndBfX+63qIUoOn/uEOHzQ=; b=LNKEvnJ+8aszMuVaPh8XvgzTAxUxthrtWjV7y6dyD6cNMbnLgBY76osrX685Hs/SEc 0Cq78CEJZ9r8puDHjtW6b6TnpHp0ElaQ7X9xEqXDj9IW82FWTdhmp0wPjDLFuMEnC34z DidMbF1R2N3eqj2rJL8ZIybdgPY0jRLEIvWxvW5ABGgpdh6atYPxp3Ha5StCFq48yKNy XJUOZkgVPa/aiKRprAzPryuGZ9JTT3SI9IrsACIB0Kd3AOTNqqJAHDgmGGEIyjDr3Fsa PNQIB5r+DYCjIaO9MV5rQvJlec8P9fLse86wWuF0xQ6P6LyMtDReUAGNUxcXhJgcd5vE OQfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I2j3LT7a; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si5541700edw.27.2021.06.11.11.35.04; Fri, 11 Jun 2021 11:35:29 -0700 (PDT) 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=@google.com header.s=20161025 header.b=I2j3LT7a; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231151AbhFKSce (ORCPT + 99 others); Fri, 11 Jun 2021 14:32:34 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:34395 "EHLO mail-qt1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230457AbhFKScd (ORCPT ); Fri, 11 Jun 2021 14:32:33 -0400 Received: by mail-qt1-f173.google.com with SMTP id u20so3321859qtx.1 for ; Fri, 11 Jun 2021 11:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=R3/bZmc/2oRYUixC5sfqXgndBfX+63qIUoOn/uEOHzQ=; b=I2j3LT7aKYn+ANT5pbafCkF2sayfC0VCJvWXdkKlLVSXC6Dhf1d13YQEdH/ZbF1ScN YNPpP/ZGdnPzwLPxqEFah/IYqV3wDlEoqP+NA57tK3TeUZdaIAnrNyl0Nj800VrsU6Po 2wrtE3PWKznkohRLLAmT6Y/HHbs6BRRf9xCSA+eRUCYmACHDIyINJ6EvDoegU9i6ldA3 4KJW57r7WdzYAXydGEtPHZEAVm8bkYNKyvlIQmCYUvtthOGgWWnTL86irMDF8m/b8cNK 29vVEfbB5uauOr51nfNdVeEBvLAVAYOh6yYDr0RsspqtZXtZazEgv2IDnp8GQX1rSpq4 ksdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=R3/bZmc/2oRYUixC5sfqXgndBfX+63qIUoOn/uEOHzQ=; b=C5skSgUFnQsYjF9E2XBcuz5H5hg3EClFlxGpWbF6hGv0uKxAOhJPg4Nh1blfSBcZsa YEk5RM+nNiVd0JvbdbuVb/at8rRlyVo63szyLTsWGfiM21GaNHyT+GyK8kRNQyOkRS9O VO0H2WNAwPxS6ze45Fl6s64Jx09Ra+SoxqB61fSP4Cb8obHvLGszyDk695a+xRxb3fUB vLhPYb9bMc9I2JOMQkXbMp836vdlyt3qEuXOb1ULXg3O0oqh5rJR1DKVmXWx5By4wmEv GDMU8679Bqq5enaDtG9vM77GFEHepJbxW9yCh11JIZNd3oLv2lFkjdaV/vJuzsQ2dGDI rCDA== X-Gm-Message-State: AOAM532HGlqACuR/TIfCGu8TSQKzH7ZsKKUYTeOOCHVPyzVqg7/hparN 0AxiDX2OOMZ96WXapTvL80/MiQ== X-Received: by 2002:ac8:1113:: with SMTP id c19mr5051056qtj.348.1623436174563; Fri, 11 Jun 2021 11:29:34 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id g24sm4554521qts.60.2021.06.11.11.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 11:29:34 -0700 (PDT) Date: Fri, 11 Jun 2021 11:29:31 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.attlocal.net To: Andrew Morton cc: Hugh Dickins , "Kirill A. Shutemov" , "Kirill A. Shutemov" , Yang Shi , Wang Yugui , Matthew Wilcox , Alistair Popple , Ralph Campbell , Zi Yan , Peter Xu , Will Deacon , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/11] mm/thp: another PVMW_SYNC fix in page_vma_mapped_walk() In-Reply-To: <20210610094312.kzhhqyz4abe2yizg@box.shutemov.name> Message-ID: <3f16d6ce-44ec-6d9e-d64-d7f750dc632@google.com> References: <589b358c-febc-c88e-d4c2-7834b37fa7bf@google.com> <1bdf384c-8137-a149-2a1e-475a4791c3c@google.com> <20210610094312.kzhhqyz4abe2yizg@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jun 2021, Kirill A. Shutemov wrote: > On Wed, Jun 09, 2021 at 11:54:46PM -0700, Hugh Dickins wrote: > > Aha! Shouldn't that quick scan over pte_none()s make sure that it holds > > ptlock in the PVMW_SYNC case? That too might have been responsible for > > BUGs or WARNs in split_huge_page_to_list() or its unmap_page(), though > > I've never seen any. > > > > Fixes: ace71a19cec5 ("mm: introduce page_vma_mapped_walk()") > > Signed-off-by: Hugh Dickins > > Cc: > > Acked-by: Kirill A. Shutemov Thanks Kirill. And Wang Yugui has now reported the good news, that this afterthought patch finally fixes the unmap_page() BUGs they were hitting on 5.10. Andrew, please add a link to https://lore.kernel.org/linux-mm/20210412180659.B9E3.409509F4@e16-tech.com/ and Tested-by: Wang Yugui Thanks, Hugh