drivers/net/wireguard/allowedips.c:59:1: warning: the frame size of 1040 bytes is larger than 1024 bytes

From: kbuild test robot
Date: Mon Feb 10 2020 - 00:01:30 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
commit: e7096c131e5161fa3b8e52a650d7719d2857adfd net: WireGuard secure network tunnel
date: 9 weeks ago
config: x86_64-lck-7890 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout e7096c131e5161fa3b8e52a650d7719d2857adfd
# save the attached .config to linux build tree
make ARCH=x86_64

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

All warnings (new ones prefixed by >>):

drivers/net/wireguard/allowedips.c: In function 'root_free_rcu':
>> drivers/net/wireguard/allowedips.c:59:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
drivers/net/wireguard/allowedips.c: In function 'root_remove_peer_lists':
drivers/net/wireguard/allowedips.c:72:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
drivers/net/wireguard/allowedips.c: In function 'walk_remove_by_peer.isra.3':
drivers/net/wireguard/allowedips.c:126:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^

vim +59 drivers/net/wireguard/allowedips.c

47
48 static void root_free_rcu(struct rcu_head *rcu)
49 {
50 struct allowedips_node *node, *stack[128] = {
51 container_of(rcu, struct allowedips_node, rcu) };
52 unsigned int len = 1;
53
54 while (len > 0 && (node = stack[--len])) {
55 push_rcu(stack, node->bit[0], &len);
56 push_rcu(stack, node->bit[1], &len);
57 kfree(node);
58 }
> 59 }
60

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip