Skip to content
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

pty: use mutex to protect alloc minor #13153

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

yangsong8-ai
Copy link
Contributor

@yangsong8-ai yangsong8-ai commented Aug 25, 2024

Summary

If failed in pty_register2, it is possible to enter unregister_driver function, which eventually calls ptmx_minor_free, resulting in mutex conflict.

Impact

Testing

If failed in pty_register2, it is possible to enter unregister_driver
function, which eventually calls ptmx_minor_free, resulting in mutex
conflict.

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 6a38c37 into apache:master Aug 25, 2024
28 checks passed
@yangsong8-ai yangsong8-ai deleted the a_master branch August 26, 2024 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants