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=-10.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 E0009C07E96 for ; Mon, 12 Jul 2021 03:20:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 91CDA6101C for ; Mon, 12 Jul 2021 03:20:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91CDA6101C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BA2E46B0095; Sun, 11 Jul 2021 23:20:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B7AB86B0098; Sun, 11 Jul 2021 23:20:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A0E566B0099; Sun, 11 Jul 2021 23:20:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0086.hostedemail.com [216.40.44.86]) by kanga.kvack.org (Postfix) with ESMTP id 80FAE6B0095 for ; Sun, 11 Jul 2021 23:20:35 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 9B7B9182EE037 for ; Mon, 12 Jul 2021 03:20:34 +0000 (UTC) X-FDA: 78352483188.25.72DAE49 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf29.hostedemail.com (Postfix) with ESMTP id D52F6900024A for ; Mon, 12 Jul 2021 03:20:33 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 873986D; Sun, 11 Jul 2021 20:20:32 -0700 (PDT) Received: from [10.163.65.188] (unknown [10.163.65.188]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 93B653F694; Sun, 11 Jul 2021 20:20:29 -0700 (PDT) Subject: Re: [PATCH] mm/debug_vm_pgtable: Fix corrupted PG_arch_1 by set_pmd_at() To: kernel test robot , Gavin Shan , linux-mm@kvack.org Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, shan.gavin@gmail.com References: <20210702103225.51448-1-gshan@redhat.com> <202107080820.IwV1NKBI-lkp@intel.com> From: Anshuman Khandual Message-ID: <0a232c69-ae9f-8431-22c7-74513f87c018@arm.com> Date: Mon, 12 Jul 2021 08:51:17 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <202107080820.IwV1NKBI-lkp@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: D52F6900024A X-Stat-Signature: u1s1ncbxbim3wckdcqn3sy9btzk4kzgu Authentication-Results: imf29.hostedemail.com; dkim=none; spf=pass (imf29.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com; dmarc=pass (policy=none) header.from=arm.com X-HE-Tag: 1626060033-59998 Content-Transfer-Encoding: quoted-printable 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 7/8/21 6:05 AM, kernel test robot wrote: > Hi Gavin, >=20 > Thank you for the patch! Yet something to improve: >=20 > [auto build test ERROR on linus/master] > [cannot apply to hnaz-linux-mm/master linux/master v5.13 next-20210707] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] >=20 > url: https://github.com/0day-ci/linux/commits/Gavin-Shan/mm-debug_vm= _pgtable-Fix-corrupted-PG_arch_1-by-set_pmd_at/20210702-183310 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.= git 3dbdb38e286903ec220aaf1fb29a8d94297da246 > config: x86_64-allyesconfig (attached as .config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > reproduce (this is a W=3D1 build): > # https://github.com/0day-ci/linux/commit/414db1c0feb54b545b3df= 56bc19ffff27580deb5 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Gavin-Shan/mm-debug_vm_pgtable= -Fix-corrupted-PG_arch_1-by-set_pmd_at/20210702-183310 > git checkout 414db1c0feb54b545b3df56bc19ffff27580deb5 > # save the attached .config to linux build tree > make W=3D1 ARCH=3Dx86_64=20 >=20 > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot >=20 > All errors (new ones prefixed by >>): >=20 > In file included from arch/x86/include/asm/page.h:76, > from arch/x86/include/asm/thread_info.h:12, > from include/linux/thread_info.h:59, > from arch/x86/include/asm/preempt.h:7, > from include/linux/preempt.h:78, > from include/linux/spinlock.h:51, > from include/linux/mmzone.h:8, > from include/linux/gfp.h:6, > from mm/debug_vm_pgtable.c:13: > mm/debug_vm_pgtable.c: In function 'pud_advanced_tests': >>> include/asm-generic/memory_model.h:25:37: error: invalid operands to = binary + (have 'struct page *' and 'struct page *') Hello Gavin, So this problem has been fixed in the other series (which now includes this patch) you have posted ? - Anshuman > 25 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) > | ^ > include/asm-generic/memory_model.h:53:21: note: in expansion of macr= o '__pfn_to_page' > 53 | #define pfn_to_page __pfn_to_page > | ^~~~~~~~~~~~~ > mm/debug_vm_pgtable.c:347:22: note: in expansion of macro 'pfn_to_pa= ge' > 347 | struct page *page =3D pfn_to_page(page); > | ^~~~~~~~~~~ >=20 > Kconfig warnings: (for reference only) > WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES > Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM > Selected by > - SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP &&= NET_SWITCHDEV && HAS_IOMEM >=20 >=20 > vim +25 include/asm-generic/memory_model.h >=20 > 8f6aac419bd590 Christoph Lameter 2007-10-16 23 =20 > af901ca181d92a Andr=E9 Goddard Rosa 2009-11-14 24 /* memmap is virtua= lly contiguous. */ > 8f6aac419bd590 Christoph Lameter 2007-10-16 @25 #define __pfn_to_page= (pfn) (vmemmap + (pfn)) > 32272a26974d20 Martin Schwidefsky 2008-12-25 26 #define __page_to_pfn= (page) (unsigned long)((page) - vmemmap) > 8f6aac419bd590 Christoph Lameter 2007-10-16 27 =20 >=20 > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >=20