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

lv2: Fix overflows of periodic timers #10287

Merged
merged 1 commit into from May 17, 2021
Merged

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented May 16, 2021

While working on saving the state of lv2 timers, I've noticed a bug can cause infinite events to be sent by timer thread. In the case of expire + period result overflowing such as if period was set to UINT64_MAX.
This is not an issue on real PS3 as I tested in https://github.com/elad335/myps3tests/tree/master/ppu_tests/timer%20overflow%20attempt
I've used explicit overflow checks because it's simpler to manage for an absolute periodic timer.
Moved ETIMEDOUT error check to its proper position.

@Nekotekina Nekotekina merged commit 2e28e2d into RPCS3:master May 17, 2021
@elad335 elad335 deleted the lv2-timer branch September 19, 2022 06:20
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