Skip to content

kernel: process: livelock in thread_free() #75

@d4ilyrun

Description

@d4ilyrun

Issue

We are sometimes encountering a livelock situation when freeing the thread structure in thread free,
due to kfree() being called in a non-preemptible scope. The kfree() function tries to acquire
the underlying slab's lock, which may currently be held by another process. Since the current process
cannot be rescheduled we end up stuck here, forever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch: noneNot architecture specifictarget: kernelKernel related featurestype: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions