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

[6.72] Crash when entering network settings with Mira enabled #134

Open
sleirsgoevy opened this issue Oct 6, 2020 · 5 comments
Open

[6.72] Crash when entering network settings with Mira enabled #134

sleirsgoevy opened this issue Oct 6, 2020 · 5 comments
Assignees
Labels
bug Something isn't working testing needed

Comments

@sleirsgoevy
Copy link

sleirsgoevy commented Oct 6, 2020

Steps to reproduce:

  1. Start Mira
  2. Go to Settings -> Network -> Test Internet connection
  3. Go back to homescreen and launch any app. The system will freeze.

The bug is present with both ps4jb and ChendoChap's implementation of the kexploit.

EDIT: The issue does not reproduce on ps4jb before b0a79c, which uses an older version of Mira.

@kiwidoggie kiwidoggie added bug Something isn't working testing needed labels Oct 15, 2020
@kiwidoggie
Copy link
Collaborator

Will need to re-verify with my fork (which will be replacing the current develop build) to see if it's a patch issue, or a bad exploit issue.

@kiwidoggie kiwidoggie self-assigned this Oct 15, 2020
@0x199
Copy link

0x199 commented Dec 8, 2020

To add to this issue, this also appears to be a bug on 5.05. Launching an application with Mira and without a internet connection freezes the system.

@sleirsgoevy
Copy link
Author

Found it out with LightningMods' help. The issue is that when Mira's initialization thread dies, the whole Mira process gets terminated, and the pointer to it that's cached inside Mira (m_InitParams.process) becomes invalid.

@sleirsgoevy
Copy link
Author

Adding this to kernel/src/Mira.cpp fixes the issue:

    // Try not to exit
    int pipe_fds[2];
    kpipe_t(pipe_fds, curthread);
    char cha;
    kread_t(pipe_fds[0], &cha, 1, curthread);
    
    kthread_exit();

@sleirsgoevy
Copy link
Author

Fixed by #156 #157 #159 #160.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing needed
Projects
None yet
Development

No branches or pull requests

3 participants