Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1387903
| From | Saeed Mahameed <saeedm@dev.mellanox.co.il> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] net/mlx5e: avoid stack overflow in mlx5e_open_channels |
| Date | 2016-04-26 21:00 +0200 |
| Message-ID | <rsgng-46z-1@gated-at.bofh.it> (permalink) |
| References | <rsdz4-1JO-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Apr 26, 2016 at 6:52 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> struct mlx5e_channel_param is a large structure that is allocated
> on the stack of mlx5e_open_channels, and with a recent change
> it has grown beyond the warning size for the maximum stack
> that a single function should use:
>
> mellanox/mlx5/core/en_main.c: In function 'mlx5e_open_channels':
> mellanox/mlx5/core/en_main.c:1325:1: error: the frame size of 1072 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
>
> The function is already using dynamic allocation and is not in
> a fast path, so the easiest workaround is to use another kzalloc
> for allocating the channel parameters.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: d3c9bc2743dc ("net/mlx5e: Added ICO SQs")
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2] net/mlx5e: avoid stack overflow in mlx5e_open_channels Arnd Bergmann <arnd@arndb.de> - 2016-04-26 18:00 +0200 Re: [PATCH v2] net/mlx5e: avoid stack overflow in mlx5e_open_channels Saeed Mahameed <saeedm@dev.mellanox.co.il> - 2016-04-26 21:00 +0200
csiph-web