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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33BDDC433EF for ; Wed, 2 Feb 2022 12:49:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7D3816B027E; Wed, 2 Feb 2022 07:49:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 783886B027F; Wed, 2 Feb 2022 07:49:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 623C86B0280; Wed, 2 Feb 2022 07:49:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0124.hostedemail.com [216.40.44.124]) by kanga.kvack.org (Postfix) with ESMTP id 501AA6B027E for ; Wed, 2 Feb 2022 07:49:02 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 110D8181C9B90 for ; Wed, 2 Feb 2022 12:49:02 +0000 (UTC) X-FDA: 79097819724.21.2764818 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf11.hostedemail.com (Postfix) with ESMTP id 146F040003 for ; Wed, 2 Feb 2022 12:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643806141; x=1675342141; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9R23Y71WY2/eFfRHa+sSGWQwsQOjWv/VYmz5SxLVrzM=; b=Xl4ka6bORe8qSG1Cnx2uRtdvB9sQ91MZOmnmQHgLCowXbi5E0Su9xBrI 4AweuFPBsX6iPHXBSr6i+KMDhYqRh9qgG+aKklFe9qm+0l4/36W2/jaND 2/CtcJqwilxrmqJAlNsqrsx+A4zBbYElRnWAo5qHCST+1cK2Yu1Vv0wra aoYHgkjb0Sfo55nvTsUkRbowX/6hKosOJ+xbA6lmghTxrIX0G2QVm13iJ oUwrsz0Am1iPpMFXH0WakRRcHp8BkObUOHsrpoCoRQLPzGQ1BKtezjwFi 3nUVL9E4iIn+bn5GPkRf9qrGhgqg75uAosxkCw8/ktD7EJpU2gDTUu/2s Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10245"; a="227875261" X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="227875261" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 04:48:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="480094065" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 02 Feb 2022 04:48:56 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nFF4B-000UaO-M6; Wed, 02 Feb 2022 12:48:55 +0000 Date: Wed, 2 Feb 2022 20:48:49 +0800 From: kernel test robot To: Christophe Leroy , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List , Christophe Leroy , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" , "kasan-dev@googlegroups.com" Subject: Re: [PATCH 2/4] mm/kasan: Move kasan_pXX_table() and kasan_early_shadow_page_entry() Message-ID: <202202022041.mkJKLdPP-lkp@intel.com> References: <3fe9bf0867b2ffc7cd43fe7040ee18d245641ec1.1643791473.git.christophe.leroy@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3fe9bf0867b2ffc7cd43fe7040ee18d245641ec1.1643791473.git.christophe.leroy@csgroup.eu> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 146F040003 X-Rspam-User: nil Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Xl4ka6bO; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf11.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.136) smtp.mailfrom=lkp@intel.com X-Stat-Signature: fjc5omgmm9ffiunztuiwm7xnz6obgcqz X-Rspamd-Server: rspam08 X-HE-Tag: 1643806140-325915 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: Hi Christophe, I love your patch! Yet something to improve: [auto build test ERROR on tip/sched/core] [also build test ERROR on linus/master v5.17-rc2] [cannot apply to hnaz-mm/master next-20220202] [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/Christophe-Leroy/mm-kasan-Add-CONFIG_KASAN_SOFTWARE/20220202-164612 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ec2444530612a886b406e2830d7f314d1a07d4bb config: riscv-randconfig-r042-20220130 (https://download.01.org/0day-ci/archive/20220202/202202022041.mkJKLdPP-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/23eabd57613c3b304c1c54f1133ef5376cf5731d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Christophe-Leroy/mm-kasan-Add-CONFIG_KASAN_SOFTWARE/20220202-164612 git checkout 23eabd57613c3b304c1c54f1133ef5376cf5731d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash kernel/ 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 include/linux/slab.h:136, from kernel/fork.c:16: >> include/linux/kasan.h:102:36: error: unknown type name 'p4d_t'; did you mean 'pgd_t'? 102 | static inline bool kasan_pud_table(p4d_t p4d) | ^~~~~ | pgd_t >> include/linux/kasan.h:113:36: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 113 | static inline bool kasan_pmd_table(pud_t pud) | ^~~~~ | pgd_t >> include/linux/kasan.h:130:36: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 130 | static inline bool kasan_pte_table(pmd_t pmd) | ^~~~~ | pgd_t kernel/fork.c:162:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes] 162 | void __weak arch_release_task_struct(struct task_struct *tsk) | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/fork.c:764:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes] 764 | void __init __weak arch_task_cache_init(void) { } | ^~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/slab.h:136, from kernel/resource.c:17: >> include/linux/kasan.h:102:36: error: unknown type name 'p4d_t'; did you mean 'pgd_t'? 102 | static inline bool kasan_pud_table(p4d_t p4d) | ^~~~~ | pgd_t >> include/linux/kasan.h:113:36: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 113 | static inline bool kasan_pmd_table(pud_t pud) | ^~~~~ | pgd_t >> include/linux/kasan.h:130:36: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 130 | static inline bool kasan_pte_table(pmd_t pmd) | ^~~~~ | pgd_t -- In file included from include/linux/slab.h:136, from include/linux/resource_ext.h:11, from include/linux/acpi.h:14, from kernel/irq/irqdomain.c:5: >> include/linux/kasan.h:102:36: error: unknown type name 'p4d_t'; did you mean 'pgd_t'? 102 | static inline bool kasan_pud_table(p4d_t p4d) | ^~~~~ | pgd_t >> include/linux/kasan.h:113:36: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 113 | static inline bool kasan_pmd_table(pud_t pud) | ^~~~~ | pgd_t >> include/linux/kasan.h:130:36: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 130 | static inline bool kasan_pte_table(pmd_t pmd) | ^~~~~ | pgd_t kernel/irq/irqdomain.c:1918:13: warning: no previous prototype for 'irq_domain_debugfs_init' [-Wmissing-prototypes] 1918 | void __init irq_domain_debugfs_init(struct dentry *root) | ^~~~~~~~~~~~~~~~~~~~~~~ vim +102 include/linux/kasan.h 84 85 #if defined(CONFIG_KASAN_SOFTWARE) && CONFIG_PGTABLE_LEVELS > 4 86 static inline bool kasan_p4d_table(pgd_t pgd) 87 { 88 return pgd_page(pgd) == virt_to_page(lm_alias(kasan_early_shadow_p4d)); 89 } 90 #else 91 static inline bool kasan_p4d_table(pgd_t pgd) 92 { 93 return false; 94 } 95 #endif 96 #if defined(CONFIG_KASAN_SOFTWARE) && CONFIG_PGTABLE_LEVELS > 3 97 static inline bool kasan_pud_table(p4d_t p4d) 98 { 99 return p4d_page(p4d) == virt_to_page(lm_alias(kasan_early_shadow_pud)); 100 } 101 #else > 102 static inline bool kasan_pud_table(p4d_t p4d) 103 { 104 return false; 105 } 106 #endif 107 #if defined(CONFIG_KASAN_SOFTWARE) && CONFIG_PGTABLE_LEVELS > 2 108 static inline bool kasan_pmd_table(pud_t pud) 109 { 110 return pud_page(pud) == virt_to_page(lm_alias(kasan_early_shadow_pmd)); 111 } 112 #else > 113 static inline bool kasan_pmd_table(pud_t pud) 114 { 115 return false; 116 } 117 #endif 118 119 #ifdef CONFIG_KASAN_SOFTWARE 120 static inline bool kasan_pte_table(pmd_t pmd) 121 { 122 return pmd_page(pmd) == virt_to_page(lm_alias(kasan_early_shadow_pte)); 123 } 124 125 static inline bool kasan_early_shadow_page_entry(pte_t pte) 126 { 127 return pte_page(pte) == virt_to_page(lm_alias(kasan_early_shadow_page)); 128 } 129 #else > 130 static inline bool kasan_pte_table(pmd_t pmd) 131 { 132 return false; 133 } 134 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org