net: ipv6: fix racey clock check in route cache aging logic

Fix a bug where, with certain settings, the aging logic does not use the
time passed in as the current time, but instead directly checks jiffies.

This bug can be reproduced with (and this fix verified with) the test
at: https://kunit-review.googlesource.com/c/linux/+/1156

Change-Id: Ib65c4e4a4a844340733655312136cb391c19afc0
Kunitconfig-Revision: c4ad34242571a1883bdd1db0dae32bb6cc69559d
Fixes: 31afeb425f7f ("ipv6: change route cache aging logic")
Discovered-by-KUnit: https://kunit-review.googlesource.com/c/linux/+/1156
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
1 file changed