mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-09 02:40:43 +00:00
The vcap_admin structures in vcap_api_next_lookup_advanced_test()
take several hundred bytes of stack frame, but when CONFIG_KASAN_STACK
is enabled, each one of them also has extra padding before and after
it, which ends up blowing the warning limit:
In file included from drivers/net/ethernet/microchip/vcap/vcap_api.c:3521:
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c: In function 'vcap_api_next_lookup_advanced_test':
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c:1954:1: error: the frame size of 1448 bytes is larger than 1400 bytes [-Werror=frame-larger-than=]
1954 | }
Reduce the total stack usage by replacing the five structures with
an array that only needs one pair of padding areas.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| vcap_ag_api.h | ||
| vcap_api_client.h | ||
| vcap_api_debugfs_kunit.c | ||
| vcap_api_debugfs.c | ||
| vcap_api_debugfs.h | ||
| vcap_api_kunit.c | ||
| vcap_api_private.h | ||
| vcap_api.c | ||
| vcap_api.h | ||
| vcap_model_kunit.c | ||
| vcap_model_kunit.h | ||
| vcap_tc.c | ||
| vcap_tc.h | ||