linux/drivers/net/ethernet/google
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
..
gve gve: Use size_add() in call to struct_size() 2023-09-17 18:50:33 +01:00
Kconfig gve: Add dqo descriptors 2021-06-24 12:47:37 -07:00
Makefile