summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorNiels Dossche <dossche.niels@gmail.com>2022-02-23 14:19:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-16 14:16:00 +0100
commitae7597b47dda2cd9294b8d26443ea7a5abd33880 (patch)
treeacbc927d60b02d6cfdfc0c828e2944cad47c368b /kernel
parent8c0c50e9fcff7db3257721537d52575a1a636dc2 (diff)
ipv6: prevent a possible race condition with lifetimes
[ Upstream commit 6c0d8833a605e195ae219b5042577ce52bf71fff ] valid_lft, prefered_lft and tstamp are always accessed under the lock "lock" in other places. Reading these without taking the lock may result in inconsistencies regarding the calculation of the valid and preferred variables since decisions are taken on these fields for those variables. Signed-off-by: Niels Dossche <dossche.niels@gmail.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: Niels Dossche <niels.dossche@ugent.be> Link: https://lore.kernel.org/r/20220223131954.6570-1-niels.dossche@ugent.be Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions