tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
kspp/memcpy/next-20210621/v0
head: 711a2c0c23d479d212e8d80f5dcaaf267162c8de
commit: b14704acbcd3290c2ab263615639d7e2f2a2e501 [53/86] fortify: Detect struct member
overflows in memcpy()
config: arm-randconfig-r021-20210621 (attached as .config)
compiler: arm-linux-gnueabi-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/kees/linux.git/commit/?id...
git remote add kees
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
git fetch --no-tags kees kspp/memcpy/next-20210621/v0
git checkout b14704acbcd3290c2ab263615639d7e2f2a2e501
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
arch/arm/boot/compressed/misc.c:126:17: warning: no previous prototype for
'__div0' [-Wmissing-prototypes]
126 | asmlinkage void __div0(void)
| ^~~~~~
arch/arm/boot/compressed/misc.c:133:6: warning: no previous prototype for
'__stack_chk_fail' [-Wmissing-prototypes]
133 | void __stack_chk_fail(void)
| ^~~~~~~~~~~~~~~~
arch/arm/boot/compressed/misc.c:142:1: warning: no previous prototype for
'decompress_kernel' [-Wmissing-prototypes]
142 | decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
| ^~~~~~~~~~~~~~~~~
> arch/arm/boot/compressed/misc.c:164:6: warning: no previous
prototype for 'fortify_warn_write' [-Wmissing-prototypes]
164 | void
fortify_warn_write(const char *func, size_t buffer_size, size_t write_size)
| ^~~~~~~~~~~~~~~~~~
arch/arm/boot/compressed/misc.c:169:6: warning: no previous prototype for
'fortify_panic' [-Wmissing-prototypes]
169 | void fortify_panic(const char *name)
| ^~~~~~~~~~~~~
vim +/fortify_warn_write +164 arch/arm/boot/compressed/misc.c
163
164 void fortify_warn_write(const char *func, size_t buffer_size,
size_t write_size)
165 {
166 putstr("warning: detected buffer overflow\n");
167 }
168
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org