Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1167399pxf; Fri, 12 Mar 2021 03:39:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJygwL5TegzmeGsxeQlrkjtkDyAxW7XiTfjUyN+S7Qc/b08m4mqxzxskLx+wxfrVGNdh1YLU X-Received: by 2002:aa7:cf17:: with SMTP id a23mr13977227edy.30.1615549178660; Fri, 12 Mar 2021 03:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615549178; cv=none; d=google.com; s=arc-20160816; b=0Za/RtrmK3j/aj6wLKj1apbjDqw1AZrqK8//ORO2IDvzJMw3YoigDP0x85g+liOgxy DmURep7RvhE3tUfQpw7kdc+Zf7NdpT8hfcEZaYVPDKOqscauA5EVTGg3RIHxfWS6Pu2W 6TTirXgdKaQXnA5UmldqgL2rEJ0p/nZlMIhH6BY01TBojW4XF7qgTgbF25JIuAknlEMB KkSLbmTibXSpqupBF1fy1Xogd1xyeaF52cnOwAKlr3Ope0iy1WJ8o77mOLFL2+X2l6zQ zdvLPEBOAiqQxcVI3fk6G92NOdq+oa7kPJPCSTKTFcjkJRrcJP7IeMdKbW1L8vGwt+xK jKZg== 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 :ironport-sdr:ironport-sdr; bh=VwTLdgcaGSYLm98nQ7/Pj0InZP8mjptWBJJEikK76Ts=; b=VuAStrUhgCzjoWgj+pKbD6oIQYKVQF/PuNEwPw1kfUotNTjcQqr9/iTxrdiGl9Oafl qZOiop/VttXPZkw/qVan/U4H4uyUAdIA84+kyL/Wugr/BHS1L3nmTFM0NpEXolOxGmXB cNm2aSiv5zZQYOJqXXdRNerSfKkqpqo3K//loXwrroGXfWXoo4qsq+mbYY5xNlq/QRbD gE3JlNdfWLmU2Jw9F6GDLFaPP378t9Kt6bZEoezP/GpwSNq0eqD39JWX68zTgeOV8T// Wo1iQUjYoE2c1zZz+MalKYdRgxuIY+W5KJJPauc26p0JcP9FQFr/z/0wiakoCuJBJeAT SAqA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si3795414ejs.58.2021.03.12.03.39.16; Fri, 12 Mar 2021 03:39:38 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231594AbhCLGaz (ORCPT + 99 others); Fri, 12 Mar 2021 01:30:55 -0500 Received: from mga18.intel.com ([134.134.136.126]:45510 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231544AbhCLGai (ORCPT ); Fri, 12 Mar 2021 01:30:38 -0500 IronPort-SDR: ZMpMqxuXhYPozrrWPTuLRmpSG2sSNpUrEHSanUIPw3t4Sk0eGjx8O8Q/c7YjAgXHy39pu/2Jdw 6/sC21qterLw== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="176381654" X-IronPort-AV: E=Sophos;i="5.81,242,1610438400"; d="scan'208";a="176381654" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 22:30:37 -0800 IronPort-SDR: Co3t1pgsRLHMkBiBltp/iyMwsnvZq+XrKmqVVH6NmbGcSkmcNfcKn1KISXa8+2D8dUMfYMWCRp yfFFdTIv10Jw== X-IronPort-AV: E=Sophos;i="5.81,242,1610438400"; d="scan'208";a="410904374" Received: from xsang-optiplex-9020.sh.intel.com (HELO xsang-OptiPlex-9020) ([10.239.159.140]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 22:30:34 -0800 Date: Fri, 12 Mar 2021 14:27:55 +0800 From: Oliver Sang To: Ira Weiny Cc: Chaitanya Kulkarni , David Sterba , Andrew Morton , "hch@infradead.org" , Christoph Hellwig , LKML , "lkp@lists.01.org" , "lkp@intel.com" , Xing Zhengjun Subject: Re: [mm/highmem] 61b205f579: WARNING:at_mm/highmem.c:#__kmap_local_sched_out Message-ID: <20210312062755.GA5022@xsang-OptiPlex-9020> References: <20210304083825.GB17830@xsang-OptiPlex-9020> <20210311160220.GS3014244@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311160220.GS3014244@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ira, On Thu, Mar 11, 2021 at 08:02:20AM -0800, Ira Weiny wrote: > On Tue, Mar 09, 2021 at 08:53:04PM +0000, Chaitanya Kulkarni wrote: > > Ira, > > > > On 3/4/21 00:23, kernel test robot wrote: > > > Greeting, > > > > > > FYI, we noticed the following commit (built with gcc-9): > > > > > > commit: 61b205f579911a11f0b576f73275eca2aed0d108 ("mm/highmem: Convert memcpy_[to|from]_page() to kmap_local_page()") > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > > > > > > > > in testcase: trinity > > > version: trinity-static-i386-x86_64-f93256fb_2019-08-28 > > > with following parameters: > > > > > > runtime: 300s > > > > > > test-description: Trinity is a linux system call fuzz tester. > > > test-url: http://codemonkey.org.uk/projects/trinity/ > > > > > > > > > on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 8G > > > > > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > > Is the fix for this been posted yet ? > > No. I've been unable to reproduce it yet. just FYI the issue does not always happen but the rate on 61b205f579 is not low, while we didn't observe it happen on parent commit. bb90d4bc7b6a536b 61b205f579911a11f0b576f7327 ---------------- --------------------------- fail:runs %reproduction fail:runs | | | :38 16% 6:38 dmesg.EIP:__kmap_local_sched_in :38 16% 6:38 dmesg.EIP:__kmap_local_sched_out :38 16% 6:38 dmesg.WARNING:at_mm/highmem.c:#__kmap_local_sched_in :38 16% 6:38 dmesg.WARNING:at_mm/highmem.c:#__kmap_local_sched_out also please permit me to quote our internal analysis by Zhengjun (cced) (Thanks a lot, Zhengjun) "the commit has the potential to cause the issue. It replaces " kmap_atomic" to " kmap_local_page". Most of the two API is the same, except for " kmap_atomic" disable preemption and cannot sleep. I check the issue happened when there is a preemption, in FBC " kmap_local_page", the preemption is enabled, the issue may happen." " > > Ira > > > > > (asking since I didn't see the fix and my mailer is dropping emails from > > lkml).