Skip to content

SNP spawn failure leaks an attached phantom thread and can block process quiescence #1265

Description

@CvvT

One bug found by Specula:

do_clone attaches the child thread and increments nr_threads before calling the platform spawn path. The SNP platform then moves ThreadStartArgs through Box::into_raw; if the host clone3 call fails, result? returns without reconstructing/dropping that box, so the child ThreadState never detaches. The leaked phantom thread is visible through sys_sysinfo().procs and can block process quiescence through wait_for_exit / exec thread-kill waiting.

See the report for more details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions