Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3579644pxb; Mon, 21 Feb 2022 00:55:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF8tX/w3caHMK62l6rpxNvHZoe3qdCkoYKGT7HC+CU+DS8knZj9ZrXE/z+PsHQ4/5c0UHy X-Received: by 2002:a17:906:716:b0:6cd:290d:d17c with SMTP id y22-20020a170906071600b006cd290dd17cmr15423425ejb.125.1645433721562; Mon, 21 Feb 2022 00:55:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645433721; cv=none; d=google.com; s=arc-20160816; b=Vu2qtrztLfy6UITE6lUYugKln3kXprmw76T2Qgd3qTXWWl9qr+x1BpV9CAaEFw1Vue aYztakg1MLQMOLpGusnOAtlzXIq4FKVuDazDtxEzFAft1HxNyr31v8vkpyT8K4yaC5fp 1CFyEApa23a3QKv4UuDYq2NC0n4cm2QsaWwncX6FX5AtN6M83H9O/WALwunLu/NH83nA C2Gtggy4/KmLESLglqA0CVpuuuBBwDj6NpceV+0nQd6NAYR3MV/iTcWmt8yZoCIIcRip Kp9Zospashr0lcslTRKXAW/IAJMyaNyjvJn8vJAbm0/bi6ReuROXwcT6Q5gkxkvaH20D l+jA== 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 :dkim-signature; bh=KnxQX1cd9L11GGzGq7uJ41MkKMuIN8AaOa4y2Q1EhEc=; b=c1En4kn6fFRCX6Z1zL1CrsKh0ouENALfasFR8EnSYpAwYL+BJSgqZpoJqVZXNzHYbq 79sT6+mQHRarzmLKFuGtq+YC4oA4l3VVE2+zPyxwv9meSyTElK/9PwOxH/ZKXeH8XgsE AHM4wVkcF/ruPLtDH0IE3f5+VOrUbSTVeE5PEk/+M0HzMj65QQq2q2nXPwZkeRnkQHP7 B1ZzwSj4pPjOoepf+tLisH6LTXTl1g5jOM5OeZAtEhIAmFZgVwV27ObB41WzBsHNWOf6 NgWHlEE1RW6XJFWORDDpeRSqnq3xXc6wbbdFL421PrcNxFemT3dnfOxzkROqMCZYJCPa 6Mdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kNQit1J5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id et19si6989130ejc.842.2022.02.21.00.54.58; Mon, 21 Feb 2022 00:55:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kNQit1J5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232701AbiBTR4S (ORCPT + 99 others); Sun, 20 Feb 2022 12:56:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231613AbiBTR4P (ORCPT ); Sun, 20 Feb 2022 12:56:15 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D93CA532C6 for ; Sun, 20 Feb 2022 09:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645379749; x=1676915749; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=InSw3Uyo9gVpWR3B5ntUZxtaVXeszMm6nW3C6kITxuo=; b=kNQit1J5oZIHbawAIWGo7rkQLfCNiaQg+toyl4y3OPOg6SKKC549/s51 aem2OyWlrZ0fKuLzIDU9awS7h8XL9MjeDMtLQrAk2eP9j/Q60zgjd2lxn 2OEDzsOmmuxzbflqTmAKuGgsXRGBHc9zOM4vKIT5l/frqWlRSABEWkyJu FOM3L11kT+1764FECaEQ8H1cP6aZjyhoRHauM0zNNNnrQLhWhxeeXD4Lz pstO145mFMl29hoFF1ZNX+xWOTrHfwWK0ef96BQKaVRn/Y5/McXYzut1H gi3eWqvwlHSgtIEjRKIoRtfO/qZ1Az6hVXTDYEQ8fo1KGBOmTzycfU51U g==; X-IronPort-AV: E=McAfee;i="6200,9189,10264"; a="231360876" X-IronPort-AV: E=Sophos;i="5.88,383,1635231600"; d="scan'208";a="231360876" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2022 09:55:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,383,1635231600"; d="scan'208";a="636422461" Received: from lkp-server01.sh.intel.com (HELO da3212ac2f54) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 20 Feb 2022 09:55:45 -0800 Received: from kbuild by da3212ac2f54 with local (Exim 4.92) (envelope-from ) id 1nLqQz-0000Xm-5R; Sun, 20 Feb 2022 17:55:45 +0000 Date: Mon, 21 Feb 2022 01:55:40 +0800 From: kernel test robot To: Alexandre Ghiti , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Aleksandr Nogikh , Nick Hu , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org Subject: Re: [PATCH -fixes 1/4] riscv: Fix is_linear_mapping with recent move of KASAN region Message-ID: <202202210123.ilPycxXe-lkp@intel.com> References: <20220218133513.1762929-2-alexandre.ghiti@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218133513.1762929-2-alexandre.ghiti@canonical.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.17-rc4 next-20220217] [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] url: https://github.com/0day-ci/linux/commits/Alexandre-Ghiti/Fixes-KASAN-and-other-along-the-way/20220220-181628 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4f12b742eb2b3a850ac8be7dc4ed52976fc6cb0b config: riscv-nommu_virt_defconfig (https://download.01.org/0day-ci/archive/20220221/202202210123.ilPycxXe-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/de8a909a9eabf9066802a3396b7009cbf4fa4369 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Alexandre-Ghiti/Fixes-KASAN-and-other-along-the-way/20220220-181628 git checkout de8a909a9eabf9066802a3396b7009cbf4fa4369 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/riscv/kernel/asm-offsets.c:10: >> include/linux/mm.h:837:22: error: use of undeclared identifier 'KERN_VIRT_SIZE'; did you mean 'KERN_VERSION'? struct page *page = virt_to_page(x); ^ arch/riscv/include/asm/page.h:165:42: note: expanded from macro 'virt_to_page' #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr))) ^ arch/riscv/include/asm/page.h:162:41: note: expanded from macro 'virt_to_pfn' #define virt_to_pfn(vaddr) (phys_to_pfn(__pa(vaddr))) ^ arch/riscv/include/asm/page.h:156:18: note: expanded from macro '__pa' #define __pa(x) __virt_to_phys((unsigned long)(x)) ^ arch/riscv/include/asm/page.h:151:27: note: expanded from macro '__virt_to_phys' #define __virt_to_phys(x) __va_to_pa_nodebug(x) ^ arch/riscv/include/asm/page.h:143:2: note: expanded from macro '__va_to_pa_nodebug' is_linear_mapping(_x) ? \ ^ arch/riscv/include/asm/page.h:122:75: note: expanded from macro 'is_linear_mapping' ((x) >= PAGE_OFFSET && (!IS_ENABLED(CONFIG_64BIT) || (x) < PAGE_OFFSET + KERN_VIRT_SIZE)) ^ include/uapi/linux/sysctl.h:88:2: note: 'KERN_VERSION' declared here KERN_VERSION=4, /* string: compile time info */ ^ In file included from arch/riscv/kernel/asm-offsets.c:10: include/linux/mm.h:844:22: error: use of undeclared identifier 'KERN_VIRT_SIZE'; did you mean 'KERN_VERSION'? struct page *page = virt_to_page(x); ^ arch/riscv/include/asm/page.h:165:42: note: expanded from macro 'virt_to_page' #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr))) ^ arch/riscv/include/asm/page.h:162:41: note: expanded from macro 'virt_to_pfn' #define virt_to_pfn(vaddr) (phys_to_pfn(__pa(vaddr))) ^ arch/riscv/include/asm/page.h:156:18: note: expanded from macro '__pa' #define __pa(x) __virt_to_phys((unsigned long)(x)) ^ arch/riscv/include/asm/page.h:151:27: note: expanded from macro '__virt_to_phys' #define __virt_to_phys(x) __va_to_pa_nodebug(x) ^ arch/riscv/include/asm/page.h:143:2: note: expanded from macro '__va_to_pa_nodebug' is_linear_mapping(_x) ? \ ^ arch/riscv/include/asm/page.h:122:75: note: expanded from macro 'is_linear_mapping' ((x) >= PAGE_OFFSET && (!IS_ENABLED(CONFIG_64BIT) || (x) < PAGE_OFFSET + KERN_VIRT_SIZE)) ^ include/uapi/linux/sysctl.h:88:2: note: 'KERN_VERSION' declared here KERN_VERSION=4, /* string: compile time info */ ^ 2 errors generated. make[2]: *** [scripts/Makefile.build:121: arch/riscv/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1191: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +837 include/linux/mm.h 70b50f94f1644e Andrea Arcangeli 2011-11-02 834 b49af68ff9fc5d Christoph Lameter 2007-05-06 835 static inline struct page *virt_to_head_page(const void *x) b49af68ff9fc5d Christoph Lameter 2007-05-06 836 { b49af68ff9fc5d Christoph Lameter 2007-05-06 @837 struct page *page = virt_to_page(x); ccaafd7fd039ae Joonsoo Kim 2015-02-10 838 1d798ca3f16437 Kirill A. Shutemov 2015-11-06 839 return compound_head(page); b49af68ff9fc5d Christoph Lameter 2007-05-06 840 } b49af68ff9fc5d Christoph Lameter 2007-05-06 841 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org