Address leaks that I missed in commit f7bf9fd6199c
("tests/tcp_hpts_test: Fix resource leaks").
Details
- Reviewers
nickbanks_netflix.com tuexen - Group Reviewers
transport - Commits
- rG26bffe5695d7: tests/tcp_hpts_test: Fix more resource leaks
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
It looks like your main goal is to just clean up the lock? A more complete solution would need to run the cleanup stuff around test_hpts_free_tcpcb, right? I'm fine you prefer that be done in a follow up PR though.
BTW, does the fact that you are finding this problem mean this test case is failing for you somehow?
Yeah, the immediately problem is that I occasionally get a kernel panic since witness detects that a thread returned to usermode while still holding a lock. Kernel panics during a test run are rather disruptive, so fixing that is my main goal.
BTW, does the fact that you are finding this problem mean this test case is failing for you somehow?
Very occasionally, it seems so. I haven't really dug into the failures: I run the test suite in parallel and that tends to cause some flakiness in timing-dependent tests. As a workaround I will re-run failed tests serially after the main test run, but I'm also trying to fix flaky tests when I have time.
Eh, well, now I realize that the other KTEST macros don't handle this cleanup of the tcpcb etc., so it's kind of strange to do that in the _GOTO case.