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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202506240917.5GatGoT7-lkp@intel.com>
Date: Tue, 24 Jun 2025 09:47:01 +0800
From: kernel test robot <lkp@...el.com>
To: Hao Jia <jiahao1@...iang.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-kernel@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>,
	Linux Memory Management List <linux-mm@...ck.org>
Subject: arch/s390/appldata/appldata_mem.c:72:13: warning: stack frame size
 (1040) exceeds limit (1024) in 'appldata_get_mem_data'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   78f4e737a53e1163ded2687a922fce138aee73f5
commit: e452872b40e3f1fb92adf0d573a0a6a7c9f6ce22 mm: vmscan: split proactive reclaim statistics from direct reclaim statistics
date:   3 months ago
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250624/202506240917.5GatGoT7-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250624/202506240917.5GatGoT7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506240917.5GatGoT7-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/s390/appldata/appldata_mem.c:72:13: warning: stack frame size (1040) exceeds limit (1024) in 'appldata_get_mem_data' [-Wframe-larger-than]
      72 | static void appldata_get_mem_data(void *data)
         |             ^
   1 warning generated.


vim +/appldata_get_mem_data +72 arch/s390/appldata/appldata_mem.c

^1da177e4c3f415 Linus Torvalds    2005-04-16   65  
^1da177e4c3f415 Linus Torvalds    2005-04-16   66  
^1da177e4c3f415 Linus Torvalds    2005-04-16   67  /*
^1da177e4c3f415 Linus Torvalds    2005-04-16   68   * appldata_get_mem_data()
^1da177e4c3f415 Linus Torvalds    2005-04-16   69   *
^1da177e4c3f415 Linus Torvalds    2005-04-16   70   * gather memory data
^1da177e4c3f415 Linus Torvalds    2005-04-16   71   */
^1da177e4c3f415 Linus Torvalds    2005-04-16  @72  static void appldata_get_mem_data(void *data)
^1da177e4c3f415 Linus Torvalds    2005-04-16   73  {
^1da177e4c3f415 Linus Torvalds    2005-04-16   74  	/*
^1da177e4c3f415 Linus Torvalds    2005-04-16   75  	 * don't put large structures on the stack, we are
b1ad171efa089ae Gerald Schaefer   2009-04-23   76  	 * serialized through the appldata_ops_mutex and can use static
^1da177e4c3f415 Linus Torvalds    2005-04-16   77  	 */
^1da177e4c3f415 Linus Torvalds    2005-04-16   78  	static struct sysinfo val;
f8891e5e1f93a12 Christoph Lameter 2006-06-30   79  	unsigned long ev[NR_VM_EVENT_ITEMS];
^1da177e4c3f415 Linus Torvalds    2005-04-16   80  	struct appldata_mem_data *mem_data;
^1da177e4c3f415 Linus Torvalds    2005-04-16   81  
^1da177e4c3f415 Linus Torvalds    2005-04-16   82  	mem_data = data;
^1da177e4c3f415 Linus Torvalds    2005-04-16   83  	mem_data->sync_count_1++;
^1da177e4c3f415 Linus Torvalds    2005-04-16   84  
f8891e5e1f93a12 Christoph Lameter 2006-06-30   85  	all_vm_events(ev);
f8891e5e1f93a12 Christoph Lameter 2006-06-30   86  	mem_data->pgpgin     = ev[PGPGIN] >> 1;
f8891e5e1f93a12 Christoph Lameter 2006-06-30   87  	mem_data->pgpgout    = ev[PGPGOUT] >> 1;
f8891e5e1f93a12 Christoph Lameter 2006-06-30   88  	mem_data->pswpin     = ev[PSWPIN];
f8891e5e1f93a12 Christoph Lameter 2006-06-30   89  	mem_data->pswpout    = ev[PSWPOUT];
bb81e6050fdc0f2 Al Viro           2007-03-14   90  	mem_data->pgalloc    = ev[PGALLOC_NORMAL];
bb81e6050fdc0f2 Al Viro           2007-03-14   91  	mem_data->pgalloc    += ev[PGALLOC_DMA];
f8891e5e1f93a12 Christoph Lameter 2006-06-30   92  	mem_data->pgfault    = ev[PGFAULT];
f8891e5e1f93a12 Christoph Lameter 2006-06-30   93  	mem_data->pgmajfault = ev[PGMAJFAULT];
^1da177e4c3f415 Linus Torvalds    2005-04-16   94  
^1da177e4c3f415 Linus Torvalds    2005-04-16   95  	si_meminfo(&val);
^1da177e4c3f415 Linus Torvalds    2005-04-16   96  	mem_data->sharedram = val.sharedram;
^1da177e4c3f415 Linus Torvalds    2005-04-16   97  	mem_data->totalram  = P2K(val.totalram);
^1da177e4c3f415 Linus Torvalds    2005-04-16   98  	mem_data->freeram   = P2K(val.freeram);
^1da177e4c3f415 Linus Torvalds    2005-04-16   99  	mem_data->totalhigh = P2K(val.totalhigh);
^1da177e4c3f415 Linus Torvalds    2005-04-16  100  	mem_data->freehigh  = P2K(val.freehigh);
^1da177e4c3f415 Linus Torvalds    2005-04-16  101  	mem_data->bufferram = P2K(val.bufferram);
11fb998986a72aa Mel Gorman        2016-07-28  102  	mem_data->cached    = P2K(global_node_page_state(NR_FILE_PAGES)
347ce434d57da80 Christoph Lameter 2006-06-30  103  				- val.bufferram);
^1da177e4c3f415 Linus Torvalds    2005-04-16  104  
^1da177e4c3f415 Linus Torvalds    2005-04-16  105  	si_swapinfo(&val);
^1da177e4c3f415 Linus Torvalds    2005-04-16  106  	mem_data->totalswap = P2K(val.totalswap);
^1da177e4c3f415 Linus Torvalds    2005-04-16  107  	mem_data->freeswap  = P2K(val.freeswap);
^1da177e4c3f415 Linus Torvalds    2005-04-16  108  
1aae0560d160ee6 Heiko Carstens    2013-01-30  109  	mem_data->timestamp = get_tod_clock();
^1da177e4c3f415 Linus Torvalds    2005-04-16  110  	mem_data->sync_count_2++;
^1da177e4c3f415 Linus Torvalds    2005-04-16  111  }
^1da177e4c3f415 Linus Torvalds    2005-04-16  112  

:::::: The code at line 72 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ