]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mptcp: fix possible integer overflow in mptcp_reset_tout_timer
authorDmitry Kandybka <d.kandybka@gmail.com>
Thu, 7 Nov 2024 10:36:57 +0000 (13:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:55 +0000 (20:03 +0100)
commit9fbc0ece455e2c008568266f39f9d14628ac3803
tree9878f4b6627606275a12d8453abf76645edd6f99
parenta50b4aa3007e63a590d501341f304676ebc74b3b
mptcp: fix possible integer overflow in mptcp_reset_tout_timer

[ Upstream commit b169e76ebad22cbd055101ee5aa1a7bed0e66606 ]

In 'mptcp_reset_tout_timer', promote 'probe_timestamp' to unsigned long
to avoid possible integer overflow. Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Dmitry Kandybka <d.kandybka@gmail.com>
Link: https://patch.msgid.link/20241107103657.1560536-1-d.kandybka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mptcp/protocol.c