[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202102200727.i1rdhtq0-lkp@intel.com>
Date: Sat, 20 Feb 2021 07:23:31 +0800
From: kernel test robot <lkp@...el.com>
To: Kees Cook <keescook@...omium.org>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org
Subject: lib/test_overflow.c:291:19: warning: stack frame size of 1968 bytes
in function 'test_overflow_shift'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f40ddce88593482919761f74910f42f4b84c004b
commit: 9b80e4c4ddaca3501177ed41e49d0928ba2122a8 overflow: Add __must_check attribute to check_*() helpers
date: 4 months ago
config: powerpc64-randconfig-r024-20210220 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b80e4c4ddaca3501177ed41e49d0928ba2122a8
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9b80e4c4ddaca3501177ed41e49d0928ba2122a8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
lib/test_overflow.c:92:1: warning: unused variable 'u64_tests' [-Wunused-const-variable]
DEFINE_TEST_ARRAY(u64) = {
^
lib/test_overflow.c:22:4: note: expanded from macro 'DEFINE_TEST_ARRAY'
} t ## _tests[] __initconst
^
<scratch space>:170:1: note: expanded from here
u64_tests
^
lib/test_overflow.c:189:1: warning: unused variable 's64_tests' [-Wunused-const-variable]
DEFINE_TEST_ARRAY(s64) = {
^
lib/test_overflow.c:22:4: note: expanded from macro 'DEFINE_TEST_ARRAY'
} t ## _tests[] __initconst
^
<scratch space>:182:1: note: expanded from here
s64_tests
^
>> lib/test_overflow.c:291:19: warning: stack frame size of 1968 bytes in function 'test_overflow_shift' [-Wframe-larger-than=]
static int __init test_overflow_shift(void)
^
3 warnings generated.
vim +/test_overflow_shift +291 lib/test_overflow.c
8fee81aa459848 Kees Cook 2018-05-09 290
d36b6ad27c7b95 Kees Cook 2018-08-01 @291 static int __init test_overflow_shift(void)
d36b6ad27c7b95 Kees Cook 2018-08-01 292 {
d36b6ad27c7b95 Kees Cook 2018-08-01 293 int err = 0;
d36b6ad27c7b95 Kees Cook 2018-08-01 294
:::::: The code at line 291 was first introduced by commit
:::::: d36b6ad27c7b95e3f6bfbf6ea33757c8e8accf01 test_overflow: Add shift overflow tests
:::::: TO: Kees Cook <keescook@...omium.org>
:::::: CC: Jason Gunthorpe <jgg@...lanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (21095 bytes)
Powered by blists - more mailing lists