linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 14920/15002] kernel/stacktrace.c:257: undefined reference to `arch_stack_walk_shadow'
@ 2022-04-03 16:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-03 16:30 UTC (permalink / raw)
  To: Andrey Konovalov; +Cc: kbuild-all, Linux Memory Management List, Andrew Morton

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e5071887cd2296a7704dbcd10c1cedf0f11cdbd5
commit: e63b15ad51960e4e7970612849391859be30d63f [14920/15002] arm64: implement stack_trace_save_shadow
config: arm64-randconfig-r001-20220403 (https://download.01.org/0day-ci/archive/20220404/202204040017.8SAcMMXQ-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e63b15ad51960e4e7970612849391859be30d63f
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout e63b15ad51960e4e7970612849391859be30d63f
        # 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

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   aarch64-linux-ld: Unexpected GOT/PLT entries detected!
   aarch64-linux-ld: Unexpected run-time procedure linkages detected!
   aarch64-linux-ld: kernel/stacktrace.o: in function `stack_trace_save_shadow':
>> kernel/stacktrace.c:257: undefined reference to `arch_stack_walk_shadow'


vim +257 kernel/stacktrace.c

214d8ca6ee854f Thomas Gleixner  2019-04-25  239  
b7a35b298cc083 Andrey Konovalov 2022-04-01  240  #ifdef CONFIG_HAVE_SHADOW_STACKTRACE
b7a35b298cc083 Andrey Konovalov 2022-04-01  241  /**
b7a35b298cc083 Andrey Konovalov 2022-04-01  242   * stack_trace_save_shadow - Save a stack trace based on shadow call stack
b7a35b298cc083 Andrey Konovalov 2022-04-01  243   * @store:	Pointer to the storage array
b7a35b298cc083 Andrey Konovalov 2022-04-01  244   * @size:	Size of the storage array
b7a35b298cc083 Andrey Konovalov 2022-04-01  245   * @skipnr:	Number of entries to skip at the start of the stack trace
b7a35b298cc083 Andrey Konovalov 2022-04-01  246   *
b7a35b298cc083 Andrey Konovalov 2022-04-01  247   * Return: Number of trace entries stored.
b7a35b298cc083 Andrey Konovalov 2022-04-01  248   */
b7a35b298cc083 Andrey Konovalov 2022-04-01  249  int stack_trace_save_shadow(unsigned long *store, unsigned int size,
b7a35b298cc083 Andrey Konovalov 2022-04-01  250  			    unsigned int skipnr)
b7a35b298cc083 Andrey Konovalov 2022-04-01  251  {
b7a35b298cc083 Andrey Konovalov 2022-04-01  252  	/*
b7a35b298cc083 Andrey Konovalov 2022-04-01  253  	 * Do not use stack_trace_consume_fn to avoid making a function
b7a35b298cc083 Andrey Konovalov 2022-04-01  254  	 * call for each collected frame to improve performance.
b7a35b298cc083 Andrey Konovalov 2022-04-01  255  	 * Skip + 1 frame to skip stack_trace_save_shadow.
b7a35b298cc083 Andrey Konovalov 2022-04-01  256  	 */
b7a35b298cc083 Andrey Konovalov 2022-04-01 @257  	return arch_stack_walk_shadow(store, size, skipnr + 1);
b7a35b298cc083 Andrey Konovalov 2022-04-01  258  }
b7a35b298cc083 Andrey Konovalov 2022-04-01  259  #endif
b7a35b298cc083 Andrey Konovalov 2022-04-01  260  

:::::: The code at line 257 was first introduced by commit
:::::: b7a35b298cc08375e900a9cf99147d3dcdd95843 stacktrace: add interface based on shadow call stack

:::::: TO: Andrey Konovalov <andreyknvl@google.com>
:::::: CC: Stephen Rothwell <sfr@canb.auug.org.au>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-03 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 16:30 [linux-next:master 14920/15002] kernel/stacktrace.c:257: undefined reference to `arch_stack_walk_shadow' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox