CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Arvind Sankar <nivedita(a)alum.mit.edu>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 787af64d05cd528aac9ad16752d11bb1c6061bb9
commit: 394b19d6cb58ae292c0e1ad6b893fed8ece477ce x86/boot/compressed: Use builtin mem
functions for decompressor
date: 1 year, 7 months ago
:::::: branch date: 21 hours ago
:::::: commit date: 1 year, 7 months ago
config: i386-randconfig-c001
(
https://download.01.org/0day-ci/archive/20220401/202204010318.cvt0HPzm-lk...)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.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...
git remote add linus
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 394b19d6cb58ae292c0e1ad6b893fed8ece477ce
# save the config file to linux build tree
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/boot/compressed/misc.c:18:
In function 'parse_elf',
inlined from 'extract_kernel' at arch/x86/boot/compressed/misc.c:442:2:
> arch/x86/boot/compressed/../string.h:15:23: warning:
'__builtin_memcpy' reading 52 bytes from a region of size 0 [-Wstringop-overread]
15 | #define memcpy(d,s,l) __builtin_memcpy(d,s,l)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/x86/boot/compressed/misc.c:283:9: note: in expansion of macro 'memcpy'
283 | memcpy(&ehdr, output, sizeof(ehdr));
| ^~~~~~
vim +/__builtin_memcpy +15 arch/x86/boot/compressed/../string.h
c041b5ad8640dd Vivek Goyal 2014-03-18 13
394b19d6cb58ae Arvind Sankar 2020-08-04 14 /* Access builtin version by default. */
c041b5ad8640dd Vivek Goyal 2014-03-18 @15 #define memcpy(d,s,l)
__builtin_memcpy(d,s,l)
c041b5ad8640dd Vivek Goyal 2014-03-18 16 #define memset(d,c,l)
__builtin_memset(d,c,l)
fb4cac573ef6dc Vivek Goyal 2014-03-18 17 #define memcmp __builtin_memcmp
c041b5ad8640dd Vivek Goyal 2014-03-18 18
:::::: The code at line 15 was first introduced by commit
:::::: c041b5ad8640dd89ccf1411cd2636ef7c1cfee92 x86, boot: Create a separate string.h file
to provide standard string functions
:::::: TO: Vivek Goyal <vgoyal(a)redhat.com>
:::::: CC: H. Peter Anvin <hpa(a)linux.intel.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp