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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C873C43334 for ; Tue, 12 Jul 2022 05:04:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 83BA5940048; Tue, 12 Jul 2022 01:04:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E9ED940033; Tue, 12 Jul 2022 01:04:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B2F9940048; Tue, 12 Jul 2022 01:04:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 5A32A940033 for ; Tue, 12 Jul 2022 01:04:30 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 1B5E780425 for ; Tue, 12 Jul 2022 05:04:30 +0000 (UTC) X-FDA: 79677257100.01.B613EF2 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf14.hostedemail.com (Postfix) with ESMTP id 20902100061 for ; Tue, 12 Jul 2022 05:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657602269; x=1689138269; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=74peq7EUXo2TFcTffXqHvB5ZkF60WM+edxb+BhUXwQY=; b=kPuWCJIyycLTMJM7hPxOxKznm29uJfbcjVpQ3GEvwfWXc9lctB/SntJ/ JC+b5rM6VAQ4R8yJPr5arZHTMgc8W2+A14s8IAcF8BRcFyCeAVMP6El1h 0yjljw7ovowScQEI1CQroOuSgvKYKHpF2ZPmIuwNHEqO2GPSy9Gjr8kGG 0u5ZzN9B7Yex2G1BwbBXI8t4TXF4HHE+fPDQkL6dLT6DKy5WBvJBx+COx 3rFBzWT4wAC8Bmw46CXjp0r0mffH34pl/tAlrlvnexwrD13Yjy9106jgh G/GmNjansm4NbUXcTirY5V/ZiJJwmeLPJDIFwrVDl8u/iKn0h3GV3PRXZ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10405"; a="310452806" X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="310452806" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 22:04:27 -0700 X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="922059873" Received: from xsang-optiplex-9020.sh.intel.com (HELO xsang-OptiPlex-9020) ([10.239.159.143]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 22:04:24 -0700 Date: Tue, 12 Jul 2022 13:04:21 +0800 From: Oliver Sang To: Mel Gorman Cc: Vlastimil Babka , Andrew Morton , 0day robot , LKML , linux-mm@kvack.org, lkp@lists.01.org, Nicolas Saenz Julienne , Marcelo Tosatti , Michal Hocko , Hugh Dickins Subject: Re: [mm/page_alloc] 2bd8eec68f: BUG:sleeping_function_called_from_invalid_context_at_mm/gup.c Message-ID: References: <20220613125622.18628-8-mgorman@techsingularity.net> <20220703132209.875b823d1cb7169a8d51d56d@linux-foundation.org> <1d3a26ac-89b3-0211-f8f2-5165ffa732fd@suse.cz> <20220708105603.GI27531@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220708105603.GI27531@techsingularity.net> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657602269; a=rsa-sha256; cv=none; b=1tXqZmr7sVe5ncZ+xB9JB1b5LRDtti2RUKy++LQV7G49jtYnQyGMoKBkRaBNaPEUI5OBLP xO10LHVyQEhvDekXuWMql8uklqsi+7gnK3CwLtE85XtIPQMcdDpRm4U4qdS0hAkpAReyi1 MXPmZptiihVf/JPydd3nvnbApEcgyH0= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=kPuWCJIy; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf14.hostedemail.com: domain of oliver.sang@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=oliver.sang@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657602269; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=eCuLHmveDsAi+h2hXqNQXkL2dL/e7F4BCThTSYVPCEY=; b=GsKHCZ7FKPWiZo1rV9xdKs53zsEUgAw41S7XZyWG1LxqDun2VvpN2hgkn0ghwaW61pCdHC FUomsDaxPHUkE1j2qGSpbxCMhkYc05RC4XC0QR2+Gu6qACk61h0tY+zOy0VlmRgd8Ornan MpONgzO6PHVok1B4LwLLRoClaxB/y1E= Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=kPuWCJIy; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf14.hostedemail.com: domain of oliver.sang@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=oliver.sang@intel.com X-Stat-Signature: hgkqh3xqz131nc4gae8hwqw957p3cyon X-Rspamd-Queue-Id: 20902100061 X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1657602268-815163 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: Hi Mel Gorman, Hi Vlastimil Babka, thanks a lot for information! normally we would discard a report if we found there is a new version for a patch set. however, for this one, we failed to fetch v5 from mailing list. sorry if any inconvenience. On Fri, Jul 08, 2022 at 11:56:03AM +0100, Mel Gorman wrote: > On Thu, Jul 07, 2022 at 11:55:35PM +0200, Vlastimil Babka wrote: > > On 7/5/22 15:51, 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. > > > > It appears you fetched v4, not v5. I noticed it from the threading of your > > report that was threaded in the v4 thread, and also the github url: above. > > In v4, pcpu_spin_trylock_irqsave() was missing an unpin, and indeed it's > > missing in the github branch you were testing: > > > > Thanks Vlastimil! This is my fault, I failed to verify that the code in > my tree, Andrew's tree and what Oliver tested were the same so no wonder I > could not find where the missing unpin was. I've gone through mm-unstable > commits be42c869b8e..4143c9b5266 and can confirm that they are now identical > to my own tree which includes Andrew's fix for the smatch warning that > Dan reported. > > # git diff HEAD^..mm-pcpspinnoirq-v6r1-mmunstable | wc -l > 0 > > The only difference between my tree and Andrew's is that there is a head > commit for "mm/page_alloc: Do not disable IRQs for per-cpu allocations" > which has been put on hold for now. > > -- > Mel Gorman > SUSE Labs