CC: linux-kernel(a)vger.kernel.org
TO: Kees Cook <keescook(a)chromium.org>
CC: Andrew Morton <akpm(a)linux-foundation.org>
CC: Linux Memory Management List <linux-mm(a)kvack.org>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 42f82040ee66db13525dc6f14b8559890b2f4c1c
commit: 8d58f222e85f01da0c0e1fc1e77986c86de889e2 ubsan: disable UBSAN_ALIGNMENT under
COMPILE_TEST
date: 9 weeks ago
config: mips-randconfig-r022-20200710 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout 8d58f222e85f01da0c0e1fc1e77986c86de889e2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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: undefined symbol:
__ubsan_handle_load_invalid_value
>> referenced by xz_dec_stream.c:775
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:775)
>> arch/mips/boot/compressed/decompress.o:(decompress_kernel)
>> referenced by xz_dec_lzma2.c:979
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:979)
>> arch/mips/boot/compressed/decompress.o:(xz_dec_lzma2_run)
>> referenced by xz_dec_lzma2.c:997
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:997)
>> arch/mips/boot/compressed/decompress.o:(xz_dec_lzma2_run)
--
> ld.lld: error: undefined symbol: __ubsan_handle_out_of_bounds
>> referenced by xz_dec_stream.c:539
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:539)
>> arch/mips/boot/compressed/decompress.o:(dec_main)
>> referenced by xz_dec_stream.c:459
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:459)
>> arch/mips/boot/compressed/decompress.o:(dec_main)
>> referenced by xz_dec_stream.c:522
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:522)
>> arch/mips/boot/compressed/decompress.o:(dec_main)
>> referenced 19 more times
--
> ld.lld: error: undefined symbol:
__ubsan_handle_shift_out_of_bounds
>> referenced by xz_dec_stream.c:352
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:352)
>> arch/mips/boot/compressed/decompress.o:(crc32_validate)
>> referenced by xz_dec_stream.c:187
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:187)
>> arch/mips/boot/compressed/decompress.o:(dec_vli)
>> referenced by xz_dec_lzma2.c:810
(arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:810)
>> arch/mips/boot/compressed/decompress.o:(xz_dec_lzma2_run)
>> referenced 9 more times
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org