Commit 44d61e50 authored by Mark Tomlinson's avatar Mark Tomlinson Committed by Lipeng Sang
Browse files

tipc: Fix recognition of trial period

stable inclusion
from stable-v5.10.152
commit 1f4ed95ce617fbb4f2e3c3bf54fc3f8c72092fe6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I73HJ0

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1f4ed95ce617fbb4f2e3c3bf54fc3f8c72092fe6



--------------------------------

[ Upstream commit 28be7ca4 ]

The trial period exists until jiffies is after addr_trial_end. But as
jiffies will eventually overflow, just using time_after will eventually
give incorrect results. As the node address is set once the trial period
ends, this can be used to know that we are not in the trial period.

Fixes: e415577f ("tipc: correct discovery message handling during address trial period")
Signed-off-by: default avatarMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLipeng Sang <sanglipeng1@jd.com>
parent e5051fa6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment