Files
linux/net
Colin Ian King d5adc70d8e mac80211: fix potential overflow when multiplying to u32 integers
[ Upstream commit 6194f7e647 ]

The multiplication of the u32 variables tx_time and estimated_retx is
performed using a 32 bit multiplication and the result is stored in
a u64 result. This has a potential u32 overflow issue, so avoid this
by casting tx_time to a u64 to force a 64 bit multiply.

Addresses-Coverity: ("Unintentional integer overflow")
Fixes: 050ac52cbe ("mac80211: code for on-demand Hybrid Wireless Mesh Protocol")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210205175352.208841-1-colin.king@canonical.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 10:37:03 +09:00
..
2015-03-02 16:43:41 -05:00
2023-05-15 12:38:05 +09:00
2023-05-15 16:07:59 +09:00
2023-05-16 08:30:10 +09:00
2023-05-16 10:33:39 +09:00
2023-05-15 12:05:35 +09:00
2023-05-16 10:35:24 +09:00