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@xxxxxxxxx/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@xxxxxxxxx> 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@xxxxxxxxxx> :::::: CC: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://01.org/lkp