Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1720218pxb; Fri, 25 Mar 2022 04:27:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZvMO4kwQDm42IumzNAm3CovG/JX39dp8uXSeLFQ12l4ig+8uMaWbUwcw/PnlkZjpJ9x02 X-Received: by 2002:aa7:cac4:0:b0:418:85b7:adec with SMTP id l4-20020aa7cac4000000b0041885b7adecmr12515053edt.231.1648207658493; Fri, 25 Mar 2022 04:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648207658; cv=none; d=google.com; s=arc-20160816; b=bsKxACIofn5oGW4MR9wFH89rD3y9Ydsnxy1jL5kEQuMCCbgORdZgTKokgMESrhTsjg aHWzr2n1Wd+r0nRb8TZ8K6s0W8TwLyrkKjgdJpuv3J+GfizWO77mS6Q8aWLkiWWAslcg P2phnIoQcamvvhLsDhlvBeO2zNLWyufIWRONoYW7P/w/2XX+feTUy7SLWrbyFtC1jsh7 yNyAzOoUwOUghKKEbqJUjCJaEJ3RKJzFNTxcqB6SdBteiTHxXrz0rxz/DKB138oTI2TQ 5Jcx/UgtNtz0YTjLan9QH6SofgJszqFuwK9qY6h4M8Y+wG0ljZ6QkhILidQBiWWu6qP0 l5EA== 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=/zWMY6HYC/XgmFESg8bwwM43d5rLHP5RwYF+eVjQnN0=; b=mUiVNZ+S5tk0K/1KsCDKyFLnfGojDBVKJltZCgxOMhxJlopySf3JRaL73Nsg+wKEKG yJv5Q19t88aG6TWcUZtqq2DNYEUaypFVpgYRrY2qYSqNk+PRr490xf0RgVq2vcwnHSac t7WrH8I3RcsDDEVzB3r2rQMe2VbT3IeIQX5HjAr0WtpqvdO9hOROW9yk87Qb0Tr9Re6a Dboezvp0IQnq0LGa4ZRxRd+XYQOJTIZAtqmqUt3IfnCjBZyI6wE7yP88330l+BadC1mb TQW1q9MKf7j5nSwZBoJQuOFpNwJsGPI0Q9gaaVLFkjUjCJs3obWGsaQ6BBXCOldZ7TVv CZmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=k1SSlupW; 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 b13-20020aa7c6cd000000b0041907911396si2382090eds.1.2022.03.25.04.27.12; Fri, 25 Mar 2022 04:27:38 -0700 (PDT) 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=k1SSlupW; 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 S1348971AbiCXIhy (ORCPT + 99 others); Thu, 24 Mar 2022 04:37:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348966AbiCXIhx (ORCPT ); Thu, 24 Mar 2022 04:37:53 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D56C29BBA8 for ; Thu, 24 Mar 2022 01:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648110981; x=1679646981; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bnfZUWLIjm8t9Ixn8cJIDpc7URz+/YF2WueALdlqm1U=; b=k1SSlupWT9yAIK78CDBdoLaCdzyVqNNWtpgDdMf9N6Axu4VS0OEJqvcK QEikKmIFNEsRCCpdcpzwfeL3D+VjJtuod9g3ifWMOyOZ6gnVQvDlTCoij Y8juApivGicG2dwTcu0aMFk9ytzWl6qDzoc0nG7O1mbELWdU/eVm0kRf+ W3SuQU63hQ1FpT6J7jGiey8kIe3eqrA6bm6Y2qazDgrRN9hnInR/w4w+1 vXbIyw9okpQ41uQ5qQPl76c6boRuwuoK1zs3SslzbJXIsp52DhmZZ/UJo j6VIvSN7CqBiSjiAHgl+GQhCoPEYUMYtY8MtBpzNPZScY93smEbJmu50c w==; X-IronPort-AV: E=McAfee;i="6200,9189,10295"; a="238261295" X-IronPort-AV: E=Sophos;i="5.90,206,1643702400"; d="scan'208";a="238261295" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2022 01:36:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,206,1643702400"; d="scan'208";a="516089850" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 24 Mar 2022 01:36:17 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nXIx6-000KsI-9F; Thu, 24 Mar 2022 08:36:16 +0000 Date: Thu, 24 Mar 2022 16:35:40 +0800 From: kernel test robot To: andrey.konovalov@linux.dev, Marco Elver , Alexander Potapenko , Catalin Marinas , Will Deacon , Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrey Konovalov , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Mark Rutland , Vincenzo Frascino , Sami Tolvanen , Peter Collingbourne , Evgenii Stepanov , Florian Mayer , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] arm64: implement stack_trace_save_shadow Message-ID: <202203241622.fKuBI2l5-lkp@intel.com> References: <0bb72ea8fa88ef9ae3508c23d993952a0ae6f0f9.1648049113.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0bb72ea8fa88ef9ae3508c23d993952a0ae6f0f9.1648049113.git.andreyknvl@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-5.6 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, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20220323] [cannot apply to arm64/for-next/core hnaz-mm/master linus/master v5.17 v5.17-rc8 v5.17-rc7 v5.17] [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/andrey-konovalov-linux-dev/kasan-arm64-scs-stacktrace-collect-stack-traces-from-Shadow-Call-Stack/20220323-233436 base: b61581ae229d8eb9f21f8753be3f4011f7692384 config: arm64-defconfig (https://download.01.org/0day-ci/archive/20220324/202203241622.fKuBI2l5-lkp@intel.com/config) compiler: aarch64-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/322e934f3c0bb04b4afb32207ba142153f1dd84e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review andrey-konovalov-linux-dev/kasan-arm64-scs-stacktrace-collect-stack-traces-from-Shadow-Call-Stack/20220323-233436 git checkout 322e934f3c0bb04b4afb32207ba142153f1dd84e # 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=arm64 SHELL=/bin/bash arch/arm64/kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): arch/arm64/kernel/stacktrace.c: In function 'arch_stack_walk_shadow': arch/arm64/kernel/stacktrace.c:289:20: error: implicit declaration of function 'task_scs'; did you mean 'task_lock'? [-Werror=implicit-function-declaration] 289 | scs_base = task_scs(current); | ^~~~~~~~ | task_lock >> arch/arm64/kernel/stacktrace.c:289:18: warning: assignment to 'long unsigned int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 289 | scs_base = task_scs(current); | ^ cc1: some warnings being treated as errors vim +289 arch/arm64/kernel/stacktrace.c 260 261 noinline notrace int arch_stack_walk_shadow(unsigned long *store, 262 unsigned int size, 263 unsigned int skipnr) 264 { 265 unsigned long *scs_top, *scs_base, *scs_next; 266 unsigned int len = 0, part; 267 268 preempt_disable(); 269 270 /* Get the SCS pointer. */ 271 asm volatile("mov %0, x18" : "=&r" (scs_top)); 272 273 /* The top SCS slot is empty. */ 274 scs_top -= 1; 275 276 /* Handle SDEI and hardirq frames. */ 277 for (part = 0; part < ARRAY_SIZE(scs_parts); part++) { 278 scs_next = *this_cpu_ptr(scs_parts[part].saved); 279 if (scs_next) { 280 scs_base = *this_cpu_ptr(scs_parts[part].base); 281 if (walk_shadow_stack_part(scs_top, scs_base, store, 282 size, &skipnr, &len)) 283 goto out; 284 scs_top = scs_next; 285 } 286 } 287 288 /* Handle task and softirq frames. */ > 289 scs_base = task_scs(current); -- 0-DAY CI Kernel Test Service https://01.org/lkp