]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: rtnetlink: fix addrlft test flakiness on power-saving systems
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 15 Jul 2025 04:34:59 +0000 (04:34 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Jul 2025 22:03:26 +0000 (15:03 -0700)
commit3047957cc7c19433dc8b88a7fec471efa13ba034
tree85082d5f65a6088de4231011362ace44c9f2a6bb
parentc3886ccaadf8fdc2c91bfbdcdca36ccdc6ef8f70
selftests: rtnetlink: fix addrlft test flakiness on power-saving systems

Jakub reported that the rtnetlink test for the preferred lifetime of an
address has become quite flaky. The issue started appearing around the 6.16
merge window in May, and the test fails with:

    FAIL: preferred_lft addresses remaining

The flakiness might be related to power-saving behavior, as address
expiration is handled by a "power-efficient" workqueue.

To address this, use slowwait to check more frequently whether the address
still exists. This reduces the likelihood of the system entering a low-power
state during the test, improving reliability.

Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250715043459.110523-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/rtnetlink.sh