net/mac80211/rx.c:4062:13: warning: stack frame size (10656) exceeds limit (8192) in 'ieee80211_rx_handlers'

From: kernel test robot
Date: Sat Jul 15 2023 - 17:49:12 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 831fe284d8275987596b7d640518dddba5735f61
commit: baa951a1c1771810f3a378a95fc93e81953027d5 mac80211: use the new drop reasons infrastructure
date: 3 months ago
config: riscv-randconfig-r021-20230716 (https://download.01.org/0day-ci/archive/20230716/202307160536.eNpCzzGh-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce: (https://download.01.org/0day-ci/archive/20230716/202307160536.eNpCzzGh-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307160536.eNpCzzGh-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> net/mac80211/rx.c:4062:13: warning: stack frame size (10656) exceeds limit (8192) in 'ieee80211_rx_handlers' [-Wframe-larger-than]
static void ieee80211_rx_handlers(struct ieee80211_rx_data *rx,
^
1 warning generated.


vim +/ieee80211_rx_handlers +4062 net/mac80211/rx.c

aa0c86364f925c Christian Lamparter 2010-08-05 4061
f9e124fbd8cbea Christian Lamparter 2013-02-04 @4062 static void ieee80211_rx_handlers(struct ieee80211_rx_data *rx,
f9e124fbd8cbea Christian Lamparter 2013-02-04 4063 struct sk_buff_head *frames)
aa0c86364f925c Christian Lamparter 2010-08-05 4064 {
aa0c86364f925c Christian Lamparter 2010-08-05 4065 ieee80211_rx_result res = RX_DROP_MONITOR;
aa0c86364f925c Christian Lamparter 2010-08-05 4066 struct sk_buff *skb;
8944b79fe9b1fe Johannes Berg 2008-01-31 4067

:::::: The code at line 4062 was first introduced by commit
:::::: f9e124fbd8cbea974b5dc7e9dafddd17d21df7e2 mac80211: protect rx-path with spinlock

:::::: TO: Christian Lamparter <chunkeey@xxxxxxxxxxxxxx>
:::::: CC: Johannes Berg <johannes.berg@xxxxxxxxx>

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