CC: linux-kernel(a)vger.kernel.org
TO: Jisheng Zhang <jszhang(a)kernel.org>
CC: Palmer Dabbelt <palmerdabbelt(a)google.com>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fc661f2dcb7e41dcda9ae862efb822bb2f461646
commit: 8341dcfbd8dda98a3b2836a421016f7d88e35b1c riscv: Enable Undefined Behavior
Sanitizer UBSAN
date: 3 months ago
config: riscv-randconfig-r035-20211114 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8341dcfbd8dda98a3b2836a421016f7d88e35b1c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> ld.lld: error: kernel/built-in.a(kallsyms.o):(function
update_iter: .text+0xf64): relocation R_RISCV_PCREL_HI20 out of range: -524480 is not in
[-524288, 524287]; references kallsyms_names
>> referenced by kallsyms.c
>> defined in kernel/built-in.a(kallsyms.o)
--
> ld.lld: error: kernel/built-in.a(kallsyms.o):(function
update_iter: .text+0xf74): relocation R_RISCV_PCREL_HI20 out of range: -524480 is not in
[-524288, 524287]; references kallsyms_offsets
>> referenced by kallsyms.c
>> defined in kernel/built-in.a(kallsyms.o)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org