1
0
Fork 0
alistair23-linux/drivers/net/ethernet/rocker
Arnd Bergmann 6098d7ddd6 rocker: fix rocker_tlv_put_* functions for KASAN
Inlining these functions creates lots of stack variables that each take
64 bytes when KASAN is enabled, leading to this warning about potential
stack overflow:

drivers/net/ethernet/rocker/rocker_ofdpa.c: In function 'ofdpa_cmd_flow_tbl_add':
drivers/net/ethernet/rocker/rocker_ofdpa.c:621:1: error: the frame size of 2752 bytes is larger than 1536 bytes [-Werror=frame-larger-than=]

gcc-8 can now consolidate the stack slots itself, but on older versions
we get the same behavior by using a temporary variable that holds a
copy of the inline function argument.

Cc: stable@vger.kernel.org
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-25 20:18:27 -07:00
..
Kconfig net: ethernet: rocker: Add dependency to CONFIG_BRIDGE in Kconfig 2014-12-09 15:26:43 -05:00
Makefile rocker: introduce worlds infrastructure 2016-02-17 23:08:34 -05:00
rocker.h rocker: Remove support bridge bypass FDB 2017-06-08 14:16:30 -04:00
rocker_hw.h rocker: rename rocker.h to rocker_hw.h 2016-02-17 23:08:34 -05:00
rocker_main.c rocker: Ignore address families other than IPv4 2017-08-03 15:35:59 -07:00
rocker_ofdpa.c rocker: fix kcalloc parameter order 2017-09-05 14:52:31 -07:00
rocker_tlv.c rocker: push tlv processing into separate files 2016-02-17 23:08:34 -05:00
rocker_tlv.h rocker: fix rocker_tlv_put_* functions for KASAN 2017-09-25 20:18:27 -07:00