[Bug 290234] sys/netinet/tcp_hpts_test.py tests cause a kernel panic in CI

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Oct 2025 18:48:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290234

            Bug ID: 290234
           Summary: sys/netinet/tcp_hpts_test.py tests cause a kernel
                    panic in CI
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
               URL: https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd6
                    4-test/26990/console
                OS: Any
            Status: New
          Keywords: crash, regression
          Severity: Affects Only Me
          Priority: ---
         Component: tests
          Assignee: tuexen@freebsd.org
          Reporter: me@svmhdvn.name
                CC: testing@FreeBSD.org

Created attachment 264584
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=264584&action=edit
kyua test report

The 'sys/netinet/tcp_hpts_test.py' tests cause a kernel panic in CI:

TCP HPTS started 2 ((unbounded)) swi interrupt threads
sys/netinet/tcp_hpts_test.py:TestTcpHpts::test_concurrent_operations  -> 
failed: /usr/tests/atf_python/sys/netlink/netlink.py:376: ValueError  [0.274s]
sys/netinet/tcp_hpts_test.py:TestTcpHpts::test_cpu_assignment  ->  passed 
[0.204s]
sys/netinet/tcp_hpts_test.py:TestTcpHpts::test_deferred_requests  ->  failed:
/usr/tests/atf_python/sys/netlink/netlink.py:376: ValueError  [0.258s]
sys/netinet/tcp_hpts_test.py:TestTcpHpts::test_direct_wake_mechanism  -> 
Sleeping on "-" with the following non-sleepable locks held:
exclusive sleep mutex tcp_hpts_lck (hpts) r = 0 (0xfffff8007a659600) locked @
/home/siva/src/fbsdsrcgit/sys/netinet/tcp_hpts_test.c:1467

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/netinet/tcp_hpts_test.py'

@tuexen, this panic arises somewhere in your latest patch series between commit
be1ad90e6bb6ea915d122f7abe407dc18d38a673 and commit
2241cd10d6e0eaf16d1f3090f1d438543e127f0c. I am not able to bisect further due
to build issues in the intermediate commits inside the series. See the URL for
the failure showing up in Jenkins CI. Please triage as necessary.

-- 
You are receiving this mail because:
You are on the CC list for the bug.