lib/crypto/blake2s-selftest.c:630:1: warning: the frame size of 1032 bytes is larger than 1024 bytes

From: kernel test robot
Date: Sat May 28 2022 - 09:20:54 EST


tree: https://github.com/intel-lab-lkp/linux/commits/UPDATE-20220528-180939/Jason-A-Donenfeld/crypto-blake2s-remove-shash-module/20220526-172214
head: 54e31fb223170c2e7f3a6c3b1f3b438e32788f43
commit: 54e31fb223170c2e7f3a6c3b1f3b438e32788f43 crypto: blake2s - remove shash module
date: 3 hours ago
config: h8300-randconfig-r015-20220524 (https://download.01.org/0day-ci/archive/20220528/202205282155.LdL0Vb6J-lkp@xxxxxxxxx/config)
compiler: h8300-linux-gcc (GCC) 11.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://github.com/intel-lab-lkp/linux/commit/54e31fb223170c2e7f3a6c3b1f3b438e32788f43
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review UPDATE-20220528-180939/Jason-A-Donenfeld/crypto-blake2s-remove-shash-module/20220526-172214
git checkout 54e31fb223170c2e7f3a6c3b1f3b438e32788f43
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=h8300 SHELL=/bin/bash lib/crypto/

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

All warnings (new ones prefixed by >>):

lib/crypto/blake2s-selftest.c: In function 'blake2s_selftest':
>> lib/crypto/blake2s-selftest.c:630:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
630 | }
| ^

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_GEM_SHMEM_HELPER
Depends on HAS_IOMEM && DRM && MMU
Selected by
- DRM_SSD130X && HAS_IOMEM && DRM


vim +630 lib/crypto/blake2s-selftest.c

54e31fb223170c Jason A. Donenfeld 2022-05-28 612
54e31fb223170c Jason A. Donenfeld 2022-05-28 613 memcpy(&state1, &state, sizeof(state1));
54e31fb223170c Jason A. Donenfeld 2022-05-28 614 blake2s_compress(&state1, blocks, 1, BLAKE2S_BLOCK_SIZE);
54e31fb223170c Jason A. Donenfeld 2022-05-28 615 for (l = 1; l < sizeof(long); ++l) {
54e31fb223170c Jason A. Donenfeld 2022-05-28 616 memcpy(unaligned_block + l, blocks,
54e31fb223170c Jason A. Donenfeld 2022-05-28 617 BLAKE2S_BLOCK_SIZE);
54e31fb223170c Jason A. Donenfeld 2022-05-28 618 memcpy(&state2, &state, sizeof(state2));
54e31fb223170c Jason A. Donenfeld 2022-05-28 619 blake2s_compress(&state2, unaligned_block + l, 1,
54e31fb223170c Jason A. Donenfeld 2022-05-28 620 BLAKE2S_BLOCK_SIZE);
54e31fb223170c Jason A. Donenfeld 2022-05-28 621 if (memcmp(&state1, &state2, sizeof(state1))) {
54e31fb223170c Jason A. Donenfeld 2022-05-28 622 pr_err("blake2s random compress align %d self-test %d: FAIL\n",
54e31fb223170c Jason A. Donenfeld 2022-05-28 623 l, i + 1);
54e31fb223170c Jason A. Donenfeld 2022-05-28 624 success = false;
54e31fb223170c Jason A. Donenfeld 2022-05-28 625 }
54e31fb223170c Jason A. Donenfeld 2022-05-28 626 }
54e31fb223170c Jason A. Donenfeld 2022-05-28 627 }
54e31fb223170c Jason A. Donenfeld 2022-05-28 628
66d7fb94e4ffe5 Jason A. Donenfeld 2019-11-08 629 return success;
66d7fb94e4ffe5 Jason A. Donenfeld 2019-11-08 @630 }

--
0-DAY CI Kernel Test Service
https://01.org/lkp