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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1293C433DF for ; Fri, 10 Jul 2020 04:17:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5808020767 for ; Fri, 10 Jul 2020 04:17:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="x2EauDhp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5808020767 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 932AF6B0002; Fri, 10 Jul 2020 00:17:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 895A96B0005; Fri, 10 Jul 2020 00:17:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7356D6B0006; Fri, 10 Jul 2020 00:17:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0113.hostedemail.com [216.40.44.113]) by kanga.kvack.org (Postfix) with ESMTP id 5722E6B0002 for ; Fri, 10 Jul 2020 00:17:50 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id EA5B0180ACEF0 for ; Fri, 10 Jul 2020 04:17:49 +0000 (UTC) X-FDA: 77020857858.13.value19_220907326ecb Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id B87C418140B75 for ; Fri, 10 Jul 2020 04:17:49 +0000 (UTC) X-HE-Tag: value19_220907326ecb X-Filterd-Recvd-Size: 6088 Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Fri, 10 Jul 2020 04:17:49 +0000 (UTC) Received: by mail-lj1-f195.google.com with SMTP id e4so4884773ljn.4 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=fXEkaNi1nmzR/ds+tDeL+7fl8N/IjyLamqj/0GuCS/s/vL2dHphmZ3kbSKK5ynEKOF vp4DksxBTSEs1yK7P5c3KD0ISZEw1AIwMGsxFvk24Ksjg7wlnUsT7OgXnAnM1RYo8Wuz FCEwx+dMd8RxmdGZeqOds9w66LxfgWzmeKa5IH8DC1Dh5Z0t8vUlMbisDEOX4rQDxnKd qq/0ru1N9hsFsVbKf+LKwktD0rZtdD5Boh5KWz6omiRpNoHi5g0SZiiEDxvoF2b+P5HK O6nQ1N6UJ/cIH6mjq7v0PR5GemUaYbUm58GkZ7duVdlCd/zqs8vMfYaHgtum4TZWBiD7 tutA== X-Gm-Message-State: AOAM532Jl3SSyyuz6FOrx8OtoVx2AVjXH28d8LmEL3QEE2PojYO9i+Cm N0PCC5AMCIWUaq5SqscpfrfsnPiCcnZwirdlLrqfFg== X-Google-Smtp-Source: ABdhPJzJ5G9NeGhYRGYXrilWZEb+Io/ok8iNRSWg6aJugFsWnWQO5XiLBdPCFqnu9yYcQ3qL/dVPmgppJtVodiO8leM= 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" X-Rspamd-Queue-Id: B87C418140B75 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 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: 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