From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4332C4708F for ; Tue, 1 Jun 2021 07:41:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 478846124B for ; Tue, 1 Jun 2021 07:41:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 478846124B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=lespinasse.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B357D6B006C; Tue, 1 Jun 2021 03:41:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AE5A66B006E; Tue, 1 Jun 2021 03:41:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 95ECA8D0002; Tue, 1 Jun 2021 03:41:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0194.hostedemail.com [216.40.44.194]) by kanga.kvack.org (Postfix) with ESMTP id 5C4476B006C for ; Tue, 1 Jun 2021 03:41:40 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id E674C7588 for ; Tue, 1 Jun 2021 07:41:39 +0000 (UTC) X-FDA: 78204360318.21.252EAA0 Received: from server.lespinasse.org (server.lespinasse.org [63.205.204.226]) by imf26.hostedemail.com (Postfix) with ESMTP id 2C4374202A07 for ; Tue, 1 Jun 2021 07:41:33 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-18-ed; t=1622533297; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=Pr1dogb2hhjVOwbkgIiWfu0YAuMoqxLdY7YfUv+oFLw=; b=Ov3ls7rVLNHWPnI1vs/cZijyudcYLW0N+4ltvG5YBaGdhCM9M3p7XtxrRxZb6QaWfxsC0 HGqydB92/Ha5RSjBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-18-rsa; t=1622533297; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=Pr1dogb2hhjVOwbkgIiWfu0YAuMoqxLdY7YfUv+oFLw=; b=rsaGoHtWqZD2TnXEGwqSRp5R8uNAVwpF58WMJCLETn0ZemeSG5xX1NuZ7wYvS9vRX/5qW gEguumXaUPolKBs0sKgHOZWgRdCxbZgZr6QaSTnYIN3L7kX+fa5y2HWHSlGRh3/RitOJ6d0 E3b7NY6IvAi/es7MNsV4TTsnVrdnyZef6mr4xMdn9LKprb+mZnEPUlu8JEsOJE3B2z2GRTR wTIFXB4akEyGNwtUE0FtEJQsLiMgJUF6HzXloxbt1TI/aSHxO+TAWl8M9UNBhcQXcbn7weH xY106YkOKHIZihXqg67s16al+Bk27i8lxFkjmBlVe362L+Zr+IkESAM7gG9A== Received: by server.lespinasse.org (Postfix, from userid 1000) id A48C8160564; Tue, 1 Jun 2021 00:41:37 -0700 (PDT) Date: Tue, 1 Jun 2021 00:41:37 -0700 From: Michel Lespinasse To: Suren Baghdasaryan Cc: "Paul E . McKenney" , Michel Lespinasse , Linux-MM , Linux-Kernel , Laurent Dufour , Peter Zijlstra , Michal Hocko , Matthew Wilcox , Rik van Riel , Andrew Morton , Joel Fernandes , Andy Lutomirski Subject: Re: [PATCH 00/29] Speculative page faults (anon vmas only) Message-ID: <20210601074137.GC13530@lespinasse.org> References: <20210430195232.30491-1-michel@lespinasse.org> <20210430224649.GA29203@lespinasse.org> <20210503181118.GA21048@lespinasse.org> <20210517175750.GJ4441@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 2C4374202A07 Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=lespinasse.org header.s=srv-18-ed header.b=Ov3ls7rV; dkim=pass header.d=lespinasse.org header.s=srv-18-rsa header.b=rsaGoHtW; spf=pass (imf26.hostedemail.com: domain of michel@lespinasse.org designates 63.205.204.226 as permitted sender) smtp.mailfrom=michel@lespinasse.org; dmarc=pass (policy=none) header.from=lespinasse.org X-Rspamd-Server: rspam04 X-Stat-Signature: tg5u753od8cshhft1ie4xjzsdpicyuhq X-HE-Tag: 1622533293-580358 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, May 20, 2021 at 03:10:24PM -0700, Suren Baghdasaryan wrote: > Hi Paul, > I promised you to look into this but somehow forgot to reply, sorry > about that. The issue is the new "#include " in mm.h > which causes page_pgdat() usage before it is defined: > > mm.h includes mm_types.h > mm_types.h includes vmstat.h > vmstat.h uses page_pgdat() > mm.h defines page_pgdat() > > Not sure if this is the best way to fix it but this worked fine for me: > > --- > include/linux/mmap_lock.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/include/linux/mmap_lock.h b/include/linux/mmap_lock.h > index 98f24a9910a9..13d4a706c0eb 100644 > --- a/include/linux/mmap_lock.h > +++ b/include/linux/mmap_lock.h > @@ -7,7 +7,7 @@ > #include > #include > #include > -#include > +#include Thanks for looking into this. I have to say, C's handling of header files is one of my least favourite features, it tends to be very unmaintainable when there are multiple configs involved :/ I haven't spent any time trying to reproduce the issue yet. Paul, could you send your .config file to give me a starting point ? Or maybe Suren already figured out what combination of config options triggers the issue ? Thanks, -- Michel "walken" Lespinasse