Re: undefined reference to `ftrace_likely_update'
From: Kees Cook
Date: Tue May 30 2023 - 19:40:40 EST
On Mon, May 22, 2023 at 01:01:30PM +0800, kernel test robot wrote:
> Hi Kees,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 44c026a73be8038f03dbdeef028b642880cf1511
> commit: 54d9469bc515dc5fcbc20eecbe19cea868b70d68 fortify: Add run-time WARN for cross-field memcpy()
The warning below does not seem to be due to this commit.
> date: 9 months ago
> config: s390-randconfig-r025-20230521
> compiler: s390-linux-gcc (GCC) 12.1.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/torvalds/linux.git/commit/?id=54d9469bc515dc5fcbc20eecbe19cea868b70d68
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 54d9469bc515dc5fcbc20eecbe19cea868b70d68
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 olddefconfig
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202305221244.L4XDdQ1Q-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> s390-linux-ld: arch/s390/purgatory/purgatory: in function `sha256_update':
> >> (.text+0x248c): undefined reference to `ftrace_likely_update'
> >> s390-linux-ld: (.text+0x2984): undefined reference to `ftrace_likely_update'
-Kees
--
Kees Cook