Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3252617pxj; Tue, 1 Jun 2021 00:42:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsVAw0ENcmS2zJM4Kt+Te6Lq2vNwhDebK2AyQ7tW/Ru4lgQefyHKz2I/UHNjQYMBOFIJF4 X-Received: by 2002:a02:900b:: with SMTP id w11mr24245899jaf.5.1622533347160; Tue, 01 Jun 2021 00:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622533347; cv=none; d=google.com; s=arc-20160816; b=Wg7DBpRG49nh2N5KALwpPPlALippjSESSYR14ZiuwQ5nAscwL58DFkx4ZCfugzFV9u m3G4DJEDmWEl0eiHpbwqdp/pbge/FQi9WCjvX9QGyEtCGWmaDfb+Ah6cqwfwf3U+WzRB dECBJ/UdzEXSD2bT6v05TI3a9p31neq/DICaZtgxmH5ptmnCxG8UP4cvRKIcPxNI18uQ +ZmzWzgPSC03gobYaZnXodtS+DM/WAxpjSO2iAHVETRSu8kmy5IF9vIxreUDt1vOOnws p5pjVPgvWrWMPjslE7a7RPfrKrlA+J7F9itgJd1mkslCSWEt8FFBedQHvhyXoZcK7cIk 40DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=Pr1dogb2hhjVOwbkgIiWfu0YAuMoqxLdY7YfUv+oFLw=; b=YI3V1vtcH0jHyy2QM4cpv6viuxkiRu/JdKrdJvjpIPeZiNuBST4l7+v+K/pB3IE/zN 5QcInJFrvk4wy4y5LW3DH8KzsoLX7p77WquHzvyOTLyq+QxCcDajHM2azxZa8C9ZAih+ 71Eigl//IgTC1qOBdQ5apb0OXId9pyaelEEJS/Rqf8BVcXcrjr1QOs9EejqQjR/0xBM3 0RZ/hrR4NytY1L7dvbbBg9cjA4X6i7iLLyvBsw8XEJXb70U+lVkRl6XYW02PSAf7Pjg5 B+1ylClJjJGZfH/C9Phevi2ZAephNTw3DL3nhHzzUdln+VQFqZeAfwM+x8edv+5eD8F/ 5gQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-18-ed; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-18-rsa header.b=rsaGoHtW; 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=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si19252378ilm.156.2021.06.01.00.42.12; Tue, 01 Jun 2021 00:42:27 -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=neutral (no key) header.i=@lespinasse.org header.s=srv-18-ed; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-18-rsa header.b=rsaGoHtW; 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=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232917AbhFAHnT (ORCPT + 99 others); Tue, 1 Jun 2021 03:43:19 -0400 Received: from server.lespinasse.org ([63.205.204.226]:48667 "EHLO server.lespinasse.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbhFAHnS (ORCPT ); Tue, 1 Jun 2021 03:43:18 -0400 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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