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 96A07C433EF for ; Wed, 2 Feb 2022 13:51:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0D85F8D00FD; Wed, 2 Feb 2022 08:51:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 088448D00FA; Wed, 2 Feb 2022 08:51:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E92398D00FD; Wed, 2 Feb 2022 08:51:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0161.hostedemail.com [216.40.44.161]) by kanga.kvack.org (Postfix) with ESMTP id DC1668D00FA for ; Wed, 2 Feb 2022 08:51:05 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8001F8125394 for ; Wed, 2 Feb 2022 13:51:05 +0000 (UTC) X-FDA: 79097976090.23.A0D9A16 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf29.hostedemail.com (Postfix) with ESMTP id 0EE84120003 for ; Wed, 2 Feb 2022 13:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643809864; x=1675345864; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=K3DNqJv0+Yh88D8/dlbQEwER3t48zPciIGeCaPwX9uA=; b=RUlYhVTHpEKpR92y6WkUgNfBbRzq2lq0TWb/lhEOtHQbevfw2GMZdai+ DEkUXa1YQMF6hbEJnF35Nr6YygsNKtsUgBo4kzfvvVc6kVTTQMKJCX/5L aJPR8t2cftE6cdJnmQvTxGJTC0nZ0wGtJfvkSsSZz3IAIhmjhZWX9f6iA 00b+VYB+D8kx7XbqMY9PeTlTDQ8Bvi+KeFbmuHhHtl3C4CsV5aE5PbqmP WL+9DZ5GtJ19vDRvKiKdQB9s9BxEt1L7cV10axQ6lWVZQ5bIrr41+FNXL Ljk31CJxFOxeQOu1Q0BAPw3X+XCgcyK4pPlACsS0RGIFkZRD1C+/y2H9F g==; X-IronPort-AV: E=McAfee;i="6200,9189,10245"; a="231487082" X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="231487082" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 05:51:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="534855601" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 02 Feb 2022 05:50:59 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nFG2E-000Uek-Jm; Wed, 02 Feb 2022 13:50:58 +0000 Date: Wed, 2 Feb 2022 21:50:20 +0800 From: kernel test robot To: Christophe Leroy , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Andrew Morton Cc: llvm@lists.linux.dev, 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 1/4] mm/kasan: Add CONFIG_KASAN_SOFTWARE Message-ID: <202202022149.BRH60mXN-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 0EE84120003 X-Stat-Signature: 4fofwcxoxunqyzpyebtoqbpny1dftx5q X-Rspam-User: nil Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RUlYhVTH; spf=none (imf29.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1643809863-673576 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: x86_64-randconfig-a013-20220131 (https://download.01.org/0day-ci/archive/20220202/202202022149.BRH60mXN-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579) 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/29c1001f88c380ea391fa5520f2ddcce35e35681 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 29c1001f88c380ea391fa5520f2ddcce35e35681 # 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=x86_64 SHELL=/bin/bash 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/x86/boot/compressed/cmdline.c:2: In file included from arch/x86/boot/compressed/misc.h:32: In file included from include/linux/acpi.h:14: In file included from include/linux/resource_ext.h:11: In file included from include/linux/slab.h:136: >> include/linux/kasan.h:56:41: error: use of undeclared identifier 'KASAN_SHADOW_SCALE_SHIFT' return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT) ^ >> include/linux/kasan.h:57:5: error: use of undeclared identifier 'KASAN_SHADOW_OFFSET' + KASAN_SHADOW_OFFSET; ^ 2 errors generated. -- In file included from arch/x86/boot/compressed/pgtable_64.c:2: In file included from arch/x86/boot/compressed/misc.h:32: In file included from include/linux/acpi.h:14: In file included from include/linux/resource_ext.h:11: In file included from include/linux/slab.h:136: >> include/linux/kasan.h:56:41: error: use of undeclared identifier 'KASAN_SHADOW_SCALE_SHIFT' return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT) ^ >> include/linux/kasan.h:57:5: error: use of undeclared identifier 'KASAN_SHADOW_OFFSET' + KASAN_SHADOW_OFFSET; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:97:25: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:4: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds] set->sig[1] | set->sig[0]) == 0; ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:100:11: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds] return (set->sig[1] | set->sig[0]) == 0; ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:113:11: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:113:27: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:5: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds] (set1->sig[2] == set2->sig[2]) && ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/x86/boot/compressed/pgtable_64.c:3: In file included from include/linux/efi.h:19: In file included from include/linux/proc_fs.h:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: vim +/KASAN_SHADOW_SCALE_SHIFT +56 include/linux/kasan.h 69786cdb379bbc Andrey Ryabinin 2015-08-13 50 9577dd74864877 Andrey Konovalov 2018-12-28 51 int kasan_populate_early_shadow(const void *shadow_start, 69786cdb379bbc Andrey Ryabinin 2015-08-13 52 const void *shadow_end); 69786cdb379bbc Andrey Ryabinin 2015-08-13 53 0b24becc810dc3 Andrey Ryabinin 2015-02-13 54 static inline void *kasan_mem_to_shadow(const void *addr) 0b24becc810dc3 Andrey Ryabinin 2015-02-13 55 { 0b24becc810dc3 Andrey Ryabinin 2015-02-13 @56 return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT) 0b24becc810dc3 Andrey Ryabinin 2015-02-13 @57 + KASAN_SHADOW_OFFSET; 0b24becc810dc3 Andrey Ryabinin 2015-02-13 58 } 0b24becc810dc3 Andrey Ryabinin 2015-02-13 59 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org