Skip to content

Kernel: Allow acquiring the same LockRank multiple times #25932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Hendiadyoin1
Copy link
Contributor

Revival of #20619

Will likely conflict with #25931

Otherwise we'd fail on acquiring the process level lockrank twice during
jail propagation in `sys$fork`.

Also while we are at it, make the VERIFYs neat little PANICs with good
debug messages.
This delays it's destruction until the end of the function, which is
necessary to avoid taking a mutex during said destruction, while under
a spinlock.
This helps to enforce that we do not take Mutexes under SpinLocks.
They still do not have a lasting effect on the LockRank while a Mutex is
held, but only during acquisition and release.
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 pr-needs-review PR needs review from a maintainer or community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant