mipsel-linux-ld: decompress.c:undefined reference to `__ubsan_handle_out_of_bounds'

From: kernel test robot
Date: Fri Jan 29 2021 - 20:36:02 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0e9bcda5d286f4a26a5407bb38f55c55b453ecfb
commit: d0a3ac549f389c1511a4df0d7638536305205d20 ubsan: enable for all*config builds
date: 6 weeks ago
config: mips-randconfig-r025-20210130 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.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=d0a3ac549f389c1511a4df0d7638536305205d20
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d0a3ac549f389c1511a4df0d7638536305205d20
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips

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

All errors (new ones prefixed by >>):

mipsel-linux-ld: arch/mips/boot/compressed/decompress.o: in function `get_bits':
decompress.c:(.text+0x288): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x2a0): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x2bc): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x2dc): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: arch/mips/boot/compressed/decompress.o: in function `get_next_block':
decompress.c:(.text+0xdb8): undefined reference to `__ubsan_handle_out_of_bounds'
>> mipsel-linux-ld: decompress.c:(.text+0xdd4): undefined reference to `__ubsan_handle_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0xde8): undefined reference to `__ubsan_handle_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0xe3c): undefined reference to `__ubsan_handle_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0xe4c): undefined reference to `__ubsan_handle_out_of_bounds'
mipsel-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0xe64): more undefined references to `__ubsan_handle_out_of_bounds' follow
mipsel-linux-ld: arch/mips/boot/compressed/decompress.o: in function `get_next_block':
decompress.c:(.text+0x1000): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x1020): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x1044): undefined reference to `__ubsan_handle_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x1074): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x1098): undefined reference to `__ubsan_handle_shift_out_of_bounds'
mipsel-linux-ld: arch/mips/boot/compressed/decompress.o: in function `decompress_kernel':
decompress.c:(.text+0x14c4): undefined reference to `__ubsan_handle_out_of_bounds'
mipsel-linux-ld: decompress.c:(.text+0x14ec): undefined reference to `__ubsan_handle_out_of_bounds'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip