Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2568902imw; Wed, 6 Jul 2022 08:09:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzOv3rCnbjqxrKkoVKEACNI5JEfXn+SDKmk1SihnJeCFUItAEP4fhCWGwgo2tlqMmxckc8 X-Received: by 2002:a05:6402:2804:b0:439:83c2:8be2 with SMTP id h4-20020a056402280400b0043983c28be2mr39581870ede.292.1657120158757; Wed, 06 Jul 2022 08:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657120158; cv=none; d=google.com; s=arc-20160816; b=MxDgVRYex0miguqqi49lhbkNWe0wVM9eS4X7trOZy5aYCM1IePR7VCMRdnEApv5QE7 CupswJHdUdkTQV8vswUAW8G5gGePzLifR9ebAqLvr8LX867l1GhoQOskBaNY2ZPnf8hI wFIK5xG1ybmRFUndPuNoZjOWLSCenZtvZcdS+OZWEU05ikvYEXiPCDrqlshEX0jOAR7E DsOyJTqBvVJLu1duj3yqlJbTBrhUMTNQlRIT53xBUKqu8BADpTvJ+Efx1oxbD3ey4FOJ 49qec6NRAV2s8TqQr3EsKQ0EhcNmXhve8hl57/RtGmYuKQPJKArLDTEpP7tJVlHWLB6X hxJQ== 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; bh=Q0zGV9Dk0uFAOHhb35k9OJOFivr7ocnuHKIti8LsRyY=; b=cX5Xi2PVPbNbNUb8hxG1XqK69wpQ0M9IygW7v8d0o774lNzjsufazAdUfGvTrO0hxT jb6i8PMoPAbzLRuqz6cbHRzF2aL/DLEnIcm516zgDsQeXi1iPzZHG7blPcqDHe9LY6MO 1DJfR3gsB92NEoJbsi5c9aypCa4hX2I5jve1KWyP1mPc1eYwY3o/iRwnO+W84Z2DW8rp QtruVv5xWFxM0T1fk6x3MHEH0ivIli42i9QIkMSlJ9UHYCrgbLowsPeX1Lc4t0WOCK5U Pglf8uJ4CB4hH1W7nMJ9wxcIQPRZGjM32M+bYGkE9SaSfzOS1pE+k9lHVSWYUUXbOR33 A48g== ARC-Authentication-Results: i=1; mx.google.com; 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 hc39-20020a17090716a700b00711da366315si1161883ejc.717.2022.07.06.08.08.53; Wed, 06 Jul 2022 08:09:18 -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; 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 S232789AbiGFOxc (ORCPT + 99 others); Wed, 6 Jul 2022 10:53:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233543AbiGFOx3 (ORCPT ); Wed, 6 Jul 2022 10:53:29 -0400 Received: from outbound-smtp30.blacknight.com (outbound-smtp30.blacknight.com [81.17.249.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A7D4A1B0 for ; Wed, 6 Jul 2022 07:53:28 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp30.blacknight.com (Postfix) with ESMTPS id ABF94BAB38 for ; Wed, 6 Jul 2022 15:53:26 +0100 (IST) Received: (qmail 22138 invoked from network); 6 Jul 2022 14:53:26 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 6 Jul 2022 14:53:26 -0000 Date: Wed, 6 Jul 2022 15:53:24 +0100 From: Mel Gorman To: Oliver Sang Cc: Andrew Morton , 0day robot , LKML , linux-mm@kvack.org, lkp@lists.01.org, Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , Hugh Dickins Subject: Re: [mm/page_alloc] 2bd8eec68f: BUG:sleeping_function_called_from_invalid_context_at_mm/gup.c Message-ID: <20220706145324.GH27531@techsingularity.net> References: <20220613125622.18628-8-mgorman@techsingularity.net> <20220703132209.875b823d1cb7169a8d51d56d@linux-foundation.org> <20220706095535.GD27531@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Jul 06, 2022 at 10:25:30PM +0800, Oliver Sang wrote: > hi, Mel Gorman, > > On Wed, Jul 06, 2022 at 10:55:35AM +0100, Mel Gorman wrote: > > On Tue, Jul 05, 2022 at 09:51:25PM +0800, Oliver Sang wrote: > > > Hi Andrew Morton, > > > > > > On Sun, Jul 03, 2022 at 01:22:09PM -0700, Andrew Morton wrote: > > > > On Sun, 3 Jul 2022 17:44:30 +0800 kernel test robot wrote: > > > > > > > > > FYI, we noticed the following commit (built with gcc-11): > > > > > > > > > > commit: 2bd8eec68f740608db5ea58ecff06965228764cb ("[PATCH 7/7] mm/page_alloc: Replace local_lock with normal spinlock") > > > > > url: https://github.com/intel-lab-lkp/linux/commits/Mel-Gorman/Drain-remote-per-cpu-directly/20220613-230139 > > > > > base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 > > > > > patch link: https://lore.kernel.org/lkml/20220613125622.18628-8-mgorman@techsingularity.net > > > > > > > > > > > > > Did this test include the followup patch > > > > mm-page_alloc-replace-local_lock-with-normal-spinlock-fix.patch? > > > > > > no, we just fetched original patch set and test upon it. > > > > > > now we applied the patch you pointed to us upon 2bd8eec68f and found the issue > > > still exist. > > > (attached dmesg FYI) > > > > > > > Thanks Oliver. > > > > The trace is odd in that it hits in GUP when the page allocator is no > > longer active and the context is a syscall. First, is this definitely > > the first patch the problem occurs? > > > > Second, it's possible for IRQs to be enabled and an IRQ delivered before > > preemption is enabled. It's not clear why that would be a problem other > > than lacking symmetry or how it could result in the reported BUG but > > might as well rule it out. This is build tested only > > do you want us test below patch? > if so, should we apply it upon the patch > "mm/page_alloc: Replace local_lock with normal spinlock" > or > "mm/page_alloc: replace local_lock with normal spinlock -fix"? > On top of "mm/page_alloc: replace local_lock with normal spinlock -fix" please. The -fix patch is cosmetic but it'd still be better to test on top. Thanks! -- Mel Gorman SUSE Labs