Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp238956ybt; Thu, 9 Jul 2020 21:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX/HzUxUt+fBhbmvs6KugCOt7X8JguauT//68MXXWaWVXodWKoq+VRWrSOCpPWOouCJzfy X-Received: by 2002:a05:6402:363:: with SMTP id s3mr62823617edw.238.1594354726146; Thu, 09 Jul 2020 21:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594354726; cv=none; d=google.com; s=arc-20160816; b=YUf8KAST/oneJMSXbO/z5on84e0f2AioeJDq1aTpse/PX+N7PtC9wg1iGpVqBHsecu MbJ3AKZllfP5n1KFBskrLeJt6mPWBaGd5YJDMyV/QWZY4GhyCBf2gBYUPKaJf80Q1+Dq 6ZPickjvq/r+41LySgwu3CjTm30EwaYgtcJ+mkftPYoiJVlpY3Gq1NWx48rCmMvo8rYU vY5ZnZER3f3UFALTlG1UkrpVLkio0V4RvzXKps2II7S4xqGSOzS+owHcETqEKMgqpOwk eVCPrVxnyaXJhabbOgAuy5ny/jBtCDtuEy7fOihW+GPdO8wkg55/jarbz3MRnh2d3Sb5 /4jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GOMunx3lII6WiFhmgXs6T+sFqTi8oTyhM5FPcahBiiw=; b=NHSsi64ssYeZ8vl3L9E6rWqqB2zLcR7t4Kf1gU0/jNFfLQmhwEjL+hpmiYTx83YoT5 srLXpWHjOlKDav2jIUcPcfwMg5TrXbihrtckUCA/WPdWvYSehvryFG05SRdhqwQA6Ori Yr1PkaMFK+p8r4zBqW5fimO2W43K1xGqFqBzBvkXv1YNL2YTFY2Wv1ghKRfNTnPpKyFl LRMUSOeJsLt5bSGuXQAmnh/uT5k0klhy12z4RxEdj6n6cOwjGEjOtXygfOq3YhZhXaPd XSZKha32QmZFnd5fatZZJ4CIVez+swVKrZ9DlMqlZMpN5XgOqlqe2AV1MAzl38S/6Whv TXHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x2EauDhp; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si3016262ejj.300.2020.07.09.21.18.23; Thu, 09 Jul 2020 21:18:46 -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=pass header.i=@linaro.org header.s=google header.b=x2EauDhp; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726787AbgGJERu (ORCPT + 99 others); Fri, 10 Jul 2020 00:17:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgGJERt (ORCPT ); Fri, 10 Jul 2020 00:17:49 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F30EC08C5DC for ; Thu, 9 Jul 2020 21:17:49 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id h22so4860303lji.9 for ; Thu, 09 Jul 2020 21:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GOMunx3lII6WiFhmgXs6T+sFqTi8oTyhM5FPcahBiiw=; b=x2EauDhpkHLZTqe4KZEHA12Eg/+hjjsWaGtUf76DIl22j4xWvuSNhdrb1CmJN7sFKA ZI9hXDk3LNKTzhj+MSOjESmm/PRUTbRsky5OwjMhbVOqeU46NMBofU93TgMavaTNJrff 8ZqcFxYWALq3owf6BE5DpDkQZwxurRUvMZbJ+VlWKXYoAERkOQ35aLZigtpQe/3sGot5 Lk0M6l199ufPUj1B9V3PO4CGbukEkl/oLLHeGM3yM9Yfi3RZ5cfqssnLWjOEQW0cKNrJ 4hXgsG8d4wWT8i9pv2epuJcGwmog4GXGw7nqOkK99uljD1qt+f5KUsWr4TC2ivxVVgTf VIOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GOMunx3lII6WiFhmgXs6T+sFqTi8oTyhM5FPcahBiiw=; b=IZyoOrDIwUlGnB3kZN+Q3Y7yasZHEqrNqjqOndnWIT9KudjFovduB4bY7A0PgOBZHr EajF8bf5Cg4HUkBWAmBFYHXc/cClU/gcckPvK3PX78GdVAyWf/oHtP1oPbi4CgcTYzvX PO3E8iTYZHw+G+dRfsfXsGDhiDxjk79lK2ZLS6x9g80iEnHgbMVHOrMFWWsP8b5zEDEY vfbivTSYDvzQoRaWZgZ7vlIiC+RmUWXJF0HBcwuJYFrrq4Kj5lvreINt05JKs42O3fgC +QsTB8t4YH33cLZAdy6jn8DY3tiYQgcuYfCVDgj2SLYnPLUyOYTw9zp0SQpSpDe+Zzss buaA== X-Gm-Message-State: AOAM5307H2pOMfVdG2uH1egiOHaXCG0YNWQ+WnY4czf4cWsv5nQiC0IO D6T2PpQPHT6KJ+oZEW6dwu5HghJS3qXTM1sSMv7R+w== X-Received: by 2002:a2e:9089:: with SMTP id l9mr31662918ljg.431.1594354667432; Thu, 09 Jul 2020 21:17:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Fri, 10 Jul 2020 09:47:35 +0530 Message-ID: Subject: Re: WARNING: at mm/mremap.c:211 move_page_tables in i386 To: Arnd Bergmann Cc: linux- stable , open list , linux-mm , Andrew Morton , Roman Gushchin , Michal Hocko , lkft-triage@lists.linaro.org, Chris Down , Linus Torvalds , Michel Lespinasse , Fan_Yang@sjtu.edu.cn, bgeffon@google.com, Anshuman Khandual , Will Deacon , Catalin Marinas , pugaowei@gmail.com, =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Joel Fernandes , Greg Kroah-Hartman , Mel Gorman , Hugh Dickins , Al Viro , Tejun Heo , Sasha Levin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Jul 2020 at 13:55, Arnd Bergmann wrote: > > On Thu, Jul 9, 2020 at 7:28 AM Naresh Kamboju wrote: > > > > While running LTP mm test suite on i386 or qemu_i386 this kernel warning > > has been noticed from stable 5.4 to stable 5.7 branches and mainline 5.8.0-rc4 > > and linux next. > > Are you able to correlate this with any particular test case in LTP, or does > it happen for random processes? > > In the log you linked to, it happens once for ksm05.c and multiple times for > thp01.c, sources here: > > https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/mem/ksm/ksm05.c > https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/mem/thp/thp01.c > > Is it always these tests that trigger the warning, or sometimes others? These two test cases are causing this warning multiple times on i386. > > When you say it happens with linux-5.4 stable, does that mean you don't see > it with older versions? What is the last known working version? I do not notice on stable-4.19 and below versions. Sorry i did not get the known working commit id or version. It started happening from stable-rc 5.0 first release. I have evidence [1] showing it on 5.0.1 > > I also see that you give the virtual machine 16GB of RAM, but as you are > running a 32-bit kernel without PAE, only 2.3GB end up being available, > and some other LTP tests in the log run out of memory. > > You could check if the behavior changes if you give the kernel less memory, > e.g. 768MB (lowmem only), or enable CONFIG_X86_PAE to let it use the > entire 16GB. Warning is still happening after enabling PAE config. But the oom-killer messages are gone. Thank you. CONFIG_HIGHMEM=y CONFIG_X86_PAE=y full test log oom-killer messages are gone and kernel warning is still there, https://lkft.validation.linaro.org/scheduler/job/1552606#L10357 build location: https://builds.tuxbuild.com/puilcMcGVwzFMN5fDUhY4g/ [1] https://qa-reports.linaro.org/lkft/linux-stable-rc-5.0-oe/build/v5.0.1/testrun/1324990/suite/ltp-mm-tests/test/ksm02/log --- [ 775.646689] WARNING: CPU: 3 PID: 10858 at /srv/oe/build/tmp-lkft-glibc/work-shared/intel-core2-32/kernel-source/mm/mremap.c:211 move_page_tables+0x553/0x570 [ 775.647006] Modules linked in: fuse [ 775.647006] CPU: 3 PID: 10858 Comm: true Not tainted 5.0.1 #1 [ 775.647006] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 775.647006] EIP: move_page_tables+0x553/0x570 - Naresh