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

SPU: Fix potential deadlock in event queue syscalls #12583

Merged
merged 1 commit into from Sep 1, 2022

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Aug 30, 2022

In sys_spu_thread_receive_event/sys_event_port_send the order of mutex locking is: queue mutex then group mutex.
In sys_spu_thread_send_event the order of mutex locking is: group mutex then queue mutex.
Fix it by making sys_spu_thread_send_event not hold both mutexes at a time.

@Nekotekina Nekotekina merged commit fb01ed5 into RPCS3:master Sep 1, 2022
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.

None yet

2 participants