Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2372814imw; Wed, 6 Jul 2022 05:02:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uBpVSln2fL3NxTngv8SYBmOjFQ+sUa2A0YnK+uv9+xS24Vu+nMIDKB2+QsQP7v8S9uSC6g X-Received: by 2002:a17:903:22c2:b0:16a:3039:adb1 with SMTP id y2-20020a17090322c200b0016a3039adb1mr45997028plg.28.1657108933639; Wed, 06 Jul 2022 05:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657108933; cv=none; d=google.com; s=arc-20160816; b=XuEAcdx/9DpOhxlNIeQaBm+aaTAD2+iqMlOOzV5i4eZ1vMsqtagQkrrPmskJw9lREY Xzear/i+vqzTEOd7aIJ3ML0RRyUTgn6mPPHlrZNLvWqvP+uFckHMbp38Z4ZPO+9WYvq3 LBZO1OJr6/OFQlTMWdX06RG14TxLMN4ZaqpCnHKIjTqGBd4OeQtyrVEmlToPkMzCvh/f XV29rNKRSDRwcRjjui560/8IVCHhui0gyYT/CS2ulX77i2/bBVX6EFg6YnZEhL2/yjmG 4nfRCYtm+SnJ6dG0PHArHF5XfVs7FXgav539HV9a4U2rlN7n52L+hGyfHf13a8cDyYYY TOeg== 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=u3K7uOeuh7mEX+Zsyv2C/EWLv2TDeDzpA0dohceHO1o=; b=tA54HJy2NPDPlt3EZAzZKsCLvjlupRmjJXH3/hQx78xuA2Go4ux9jNHxcQFbOaCOyb OZ+2stQOXrHNRmw5C+lAwj0fcUqJSrWXZ6Si9Ttxv11x3N5Emxj0JdlPr3Zpe5+J6rNm j8+Ui1tIInVJm3L4+V8DnSHiJZESjmXqLrIhMrMILch+i4VUY/ZYNUtqlwQQRvql4XqP kb4XHiG4Kbjynf7r6aJWIN1cwzEy0sbbKg1D606A8lbs0wG9vKwoCXbNjnLVFkqf+u4c 5LqCco2k6O+Iazm/2l9X8NhOGmmcRi1q9H5QQTJGvARu0D9r6M0kAe9kyMbNE2bxd8qj /IUA== 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 b9-20020a170902d50900b0016163a204cfsi3258670plg.334.2022.07.06.05.02.01; Wed, 06 Jul 2022 05:02:13 -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 S232467AbiGFLxg (ORCPT + 99 others); Wed, 6 Jul 2022 07:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbiGFLxf (ORCPT ); Wed, 6 Jul 2022 07:53:35 -0400 Received: from outbound-smtp52.blacknight.com (outbound-smtp52.blacknight.com [46.22.136.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3272427B16 for ; Wed, 6 Jul 2022 04:53:32 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp52.blacknight.com (Postfix) with ESMTPS id 84D23FABE8 for ; Wed, 6 Jul 2022 12:53:31 +0100 (IST) Received: (qmail 574 invoked from network); 6 Jul 2022 11:53:31 -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 11:53:31 -0000 Date: Wed, 6 Jul 2022 12:53:29 +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: <20220706115328.GE27531@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: <20220706095535.GD27531@techsingularity.net> 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: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? > I tried reproducing this on a 2-socket machine with Xeon Gold Gold 5218R CPUs. It was necessary to set timeouts in both vm/settings and kselftest/runner.sh to avoid timeouts. Testing with a standard config on my original 5.19-rc3 baseline and the baseline b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 both passed. I tried your kernel config with i915 disabled (would not build) and necessary storage drivers and network drivers enabled (for boot and access). The kernel log shows a bunch of warnings related to USBAN during boot and during some of the tests but otherwise compaction_test completed successfully as well as the other VM tests. Is this always reproducible? -- Mel Gorman SUSE Labs