Bug 293152 - sys/netinet6/ndp:ndp_prefix_lifetime_extend test fails intermittently in CI
Summary: sys/netinet6/ndp:ndp_prefix_lifetime_extend test fails intermittently in CI
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Johnston
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2026-02-12 20:26 UTC by Siva Mahadevan
Modified: 2026-04-26 15:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Siva Mahadevan freebsd_committer freebsd_triage 2026-02-12 20:26:53 UTC
The 'sys/netinet6/ndp:ndp_prefix_lifetime_extend' testcase fails intermittently in CI:


===> sys/netinet6/ndp:ndp_prefix_lifetime_extend 
Result:     failed: Expiry time was shortened: 20 <= 19 
Start time: 2026-02-12T13:09:17.920857Z 
End time:   2026-02-12T13:09:18.007189Z 
Duration:   0.086s
 
Standard output: 
Executing command [ ifconfig epair create ] 
Executing command [ ifconfig epair0a up ] 
Executing command [ ifconfig epair0a inet6 2001:db8:ffff:1000::1/64 pltime 5 vltime 10 ] 
Executing command [ ifconfig epair0a inet6 2001:db8:ffff:1000::1/64 pltime 10 vltime 20 ] 
Executing command [ ifconfig epair0a inet6 2001:db8:ffff:1000::2/64 pltime 5 vltime 10 ] 
 
Standard error: 
Files left in work directory after failure: epair


I have reproduced this error using Bricoler with 100 runs for good measure and attached the failing test report in this bug:

$ bricoler run freebsd-src-regression-suite --param freebsd-src:url=/usr/src --param freebsd-src:branch= --param freebsd-src-regression-suite:hypervisor=bhyve --param freebsd-src-regression-suite:memory=4096 --param freebsd-src-regression-suite:ncpus=2 --param freebsd-src-regression-suite:parallelism=1 --param freebsd-src-regression-suite:count=100 --param freebsd-src-regression-suite:tests='sys/netinet6/ndp:ndp_prefix_lifetime_extend'

@markj, since you added the tests in https://cgit.freebsd.org/src/commit/?id=74999aac5effb9b32d12f413ef51e87b15c8a0d8 (in6: Modify address prefix lifetimes when updating address lifetimes), please triage as necessary.
Comment 1 commit-hook freebsd_committer freebsd_triage 2026-02-17 20:23:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=eb425dfab19be8720cf29d560b4e778fc3531106

commit eb425dfab19be8720cf29d560b4e778fc3531106
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-02-17 17:08:34 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-02-17 20:22:05 +0000

    ndp tests: Fix an assertion in ndp_prefix_lifetime_extend

    Here we have two interface addresses sharing a v6 prefix with finite
    lifetime.  The intent was to make sure that adding the second address
    didn't cause the prefix's valid lifetime to drop from 20s to 10s, but of
    course, while the test is running it may drop from 20s to 19s, causing
    the test to fail spuriously.  Relax the check a bit to avoid this.

    PR:             293152
    Fixes:          74999aac5eff ("in6: Modify address prefix lifetimes when updating address lifetimes")
    MFC after:      1 week
    Sponsored by:   Klara, Inc.

 tests/sys/netinet6/ndp.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-03-31 15:59:42 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=1a0776342682a666b033588321dafad0987a5d42

commit 1a0776342682a666b033588321dafad0987a5d42
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-02-17 17:08:34 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-03-31 15:57:28 +0000

    ndp tests: Fix an assertion in ndp_prefix_lifetime_extend

    Here we have two interface addresses sharing a v6 prefix with finite
    lifetime.  The intent was to make sure that adding the second address
    didn't cause the prefix's valid lifetime to drop from 20s to 10s, but of
    course, while the test is running it may drop from 20s to 19s, causing
    the test to fail spuriously.  Relax the check a bit to avoid this.

    PR:             293152
    Fixes:          74999aac5eff ("in6: Modify address prefix lifetimes when updating address lifetimes")
    MFC after:      1 week
    Sponsored by:   Klara, Inc.

    (cherry picked from commit eb425dfab19be8720cf29d560b4e778fc3531106)

 tests/sys/netinet6/ndp.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)