linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-5.4.y 1325/4536] lib/ubsan.c:422: undefined reference to `__ashrti3'
@ 2020-04-22  1:07 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-22  1:07 UTC (permalink / raw)
  To: Julien Grall
  Cc: kbuild-all, Greg Kroah-Hartman, Andrew Morton,
	Linux Memory Management List, Sasha Levin

[-- Attachment #1: Type: text/plain, Size: 2813 bytes --]

Hi Julien,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head:   6ccc74c083c0d472ac64f3733f5b7bf3f99f261e
commit: 735e7a12a639c6c196ac1acf41f024f84281e491 [1325/4536] lib/ubsan: don't serialize UBSAN report
config: riscv-randconfig-a001-20200421 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 735e7a12a639c6c196ac1acf41f024f84281e491
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   riscv64-linux-ld: lib/ubsan.o: in function `test_and_set_bit':
>> arch/riscv/include/asm/bitops.h:74: undefined reference to `__ashlti3'
   riscv64-linux-ld: lib/ubsan.o: in function `get_signed_val':
>> lib/ubsan.c:422: undefined reference to `__ashrti3'

vim +422 lib/ubsan.c

c6d308534aef6c Andrey Ryabinin 2016-01-20  405  
c6d308534aef6c Andrey Ryabinin 2016-01-20  406  void __ubsan_handle_load_invalid_value(struct invalid_value_data *data,
f0996bc2978e02 Andrey Ryabinin 2019-05-06  407  				void *val)
c6d308534aef6c Andrey Ryabinin 2016-01-20  408  {
c6d308534aef6c Andrey Ryabinin 2016-01-20  409  	char val_str[VALUE_LENGTH];
c6d308534aef6c Andrey Ryabinin 2016-01-20  410  
c6d308534aef6c Andrey Ryabinin 2016-01-20  411  	if (suppress_report(&data->location))
c6d308534aef6c Andrey Ryabinin 2016-01-20  412  		return;
c6d308534aef6c Andrey Ryabinin 2016-01-20  413  
735e7a12a639c6 Julien Grall    2019-12-04  414  	ubsan_prologue(&data->location);
c6d308534aef6c Andrey Ryabinin 2016-01-20  415  
c6d308534aef6c Andrey Ryabinin 2016-01-20  416  	val_to_string(val_str, sizeof(val_str), data->type, val);
c6d308534aef6c Andrey Ryabinin 2016-01-20  417  
c6d308534aef6c Andrey Ryabinin 2016-01-20  418  	pr_err("load of value %s is not a valid value for type %s\n",
c6d308534aef6c Andrey Ryabinin 2016-01-20  419  		val_str, data->type->type_name);
c6d308534aef6c Andrey Ryabinin 2016-01-20  420  
735e7a12a639c6 Julien Grall    2019-12-04  421  	ubsan_epilogue();
c6d308534aef6c Andrey Ryabinin 2016-01-20 @422  }

:::::: The code at line 422 was first introduced by commit
:::::: c6d308534aef6c99904bf5862066360ae067abc4 UBSAN: run-time undefined behavior sanity checker

:::::: TO: Andrey Ryabinin <aryabinin@virtuozzo.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26897 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-22  1:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22  1:07 [linux-stable-rc:linux-5.4.y 1325/4536] lib/ubsan.c:422: undefined reference to `__ashrti3' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).