linux-next/drivers/net/ethernet/chelsio
Dan Carpenter fbbd84af6b chelsio/chtls: prevent potential integer overflow on 32bit
The "gl->tot_len" variable is controlled by the user.  It comes from
process_responses().  On 32bit systems, the "gl->tot_len +
sizeof(struct cpl_pass_accept_req) + sizeof(struct rss_header)" addition
could have an integer wrapping bug.  Use size_add() to prevent this.

Fixes: a089439478 ("crypto: chtls - Register chtls with net tls")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/c6bfb23c-2db2-4e1b-b8ab-ba3925c82ef5@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-12-16 18:08:11 -08:00
..
cxgb cxgb: Remove unused declarations 2024-09-03 13:07:27 +02:00
cxgb3 net: cxgb3: Remove stid deadcode 2024-10-15 16:51:54 -07:00
cxgb4 cxgb4: use port number to set mac addr 2024-12-09 16:12:43 -08:00
cxgb4vf Revert "net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings" 2024-11-18 18:52:11 -08:00
inline_crypto chelsio/chtls: prevent potential integer overflow on 32bit 2024-12-16 18:08:11 -08:00
libcxgb net/chelsio/libcxgb: Add __percpu annotations to libcxgb_ppm.c 2024-08-06 19:35:40 -07:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile chelsio/chtls: separate chelsio tls driver from crypto driver 2020-08-21 14:15:15 -07:00