lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 14 Mar 2021 04:42:03 +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,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: net/wireless/reg.c:2011:13: warning: stack frame size of 1256 bytes
 in function 'handle_band'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f296bfd5cd04cbb49b8fc9585adc280ab2b58624
commit: c637693b20da8706b7f48d96882c9c80ae935151 ubsan: remove UBSAN_MISC in favor of individual options
date:   3 months ago
config: mips-randconfig-r034-20210313 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dfd27ebbd0eb137c9a439b7c537bb87ba903efd3)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c637693b20da8706b7f48d96882c9c80ae935151
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c637693b20da8706b7f48d96882c9c80ae935151
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

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 >>):

>> net/wireless/reg.c:2011:13: warning: stack frame size of 1256 bytes in function 'handle_band' [-Wframe-larger-than=]
   static void handle_band(struct wiphy *wiphy,
               ^
   1 warning generated.


vim +/handle_band +2011 net/wireless/reg.c

7c9ff7e232ec45 Markus Theil      2020-08-03  2010  
7ca43d03b12914 Luis R. Rodriguez 2010-10-20 @2011  static void handle_band(struct wiphy *wiphy,
fdc9d7b2863ce6 Johannes Berg     2012-12-03  2012  			enum nl80211_reg_initiator initiator,
fdc9d7b2863ce6 Johannes Berg     2012-12-03  2013  			struct ieee80211_supported_band *sband)
8318d78a44d49a Johannes Berg     2008-01-24  2014  {
a92a3ce72483d7 Luis R. Rodriguez 2009-01-07  2015  	unsigned int i;
a92a3ce72483d7 Luis R. Rodriguez 2009-01-07  2016  
fdc9d7b2863ce6 Johannes Berg     2012-12-03  2017  	if (!sband)
fdc9d7b2863ce6 Johannes Berg     2012-12-03  2018  		return;
8318d78a44d49a Johannes Berg     2008-01-24  2019  
8318d78a44d49a Johannes Berg     2008-01-24  2020  	for (i = 0; i < sband->n_channels; i++)
fdc9d7b2863ce6 Johannes Berg     2012-12-03  2021  		handle_channel(wiphy, initiator, &sband->channels[i]);
8318d78a44d49a Johannes Berg     2008-01-24  2022  }
8318d78a44d49a Johannes Berg     2008-01-24  2023  

:::::: The code at line 2011 was first introduced by commit
:::::: 7ca43d03b1291481bdf894bbaec5d580e7684e7d cfg80211: pass the reg hint initiator to helpers

:::::: TO: Luis R. Rodriguez <lrodriguez@...eros.com>
:::::: CC: John W. Linville <linville@...driver.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" (29709 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ