Files
linux/drivers/net/ethernet/google/gve
Gustavo A. R. Silva d692873cbe gve: Use size_add() in call to struct_size()
If, for any reason, `tx_stats_num + rx_stats_num` wraps around, the
protection that struct_size() adds against potential integer overflows
is defeated. Fix this by hardening call to struct_size() with size_add().

Fixes: 691f4077d5 ("gve: Replace zero-length array with flexible-array member")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-17 18:50:33 +01:00
..
2023-08-06 08:34:36 +01:00
2023-08-06 08:34:36 +01:00
2021-12-16 10:41:54 +00:00
2023-07-10 08:29:55 +01:00
2023-09-04 06:52:27 +01:00
2023-08-06 08:34:36 +01:00
2023-06-27 09:30:23 -07:00
2023-08-06 08:34:36 +01:00
2021-06-24 12:47:38 -07:00