[Bug 293867] net/ucx: fix FreeBSD runtime issues blocking UCX-backed MPI paths

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Apr 2026 23:01:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293867

--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch 2026Q2 references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=98b8e23c53c401419a07c970b09cd2a778b0313f

commit 98b8e23c53c401419a07c970b09cd2a778b0313f
Author:     Generic Rikka <rikka.goering@outlook.de>
AuthorDate: 2026-04-08 22:13:37 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-04-08 22:57:47 +0000

    net/ucx: Harden async thread state handling

    Avoid dereferencing the global async thread context when startup or
    teardown did not complete successfully by returning UCS_ERR_NO_ELEM for
    operations that require an active thread and by only publishing thread_p
    on successful start.

    This prevents invalid access paths during async thread error handling.

    PR:             293867
    Sponsored by:   UNIS Labs
    MFH:            2026Q2

    (cherry picked from commit 1ef58f980f422e30804818df7dadd3c1da3dace0)

 net/ucx/files/patch-src_ucs_async_thread.c (new) | 61 ++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.