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

Uses process credential on main thread #805

Merged
merged 1 commit into from
Apr 6, 2024
Merged

Conversation

ultimaweapon
Copy link
Member

This should be a correct one. I don't think the PS4 will allow the application main thread to use SceSysCore credential because it is a privileged one. We can find the correct answer without guessing in the function that do thread switching but the problem is I don't know where it is.

@github-actions github-actions bot added the S-ready Status: Ready for review label Apr 6, 2024
@SuchAFuriousDeath SuchAFuriousDeath requested a review from a team April 6, 2024 07:28
@ultimaweapon ultimaweapon merged commit 6c95c1f into obhq:main Apr 6, 2024
5 checks passed
@ultimaweapon ultimaweapon deleted the cred branch April 6, 2024 07:35
@SuchAFuriousDeath
Copy link
Contributor

Now we instantly fail on syscall 147 :(

@ultimaweapon
Copy link
Member Author

Now we instantly fail on syscall 147 :(

The good news about this is it is a correct path for the games.

@SuchAFuriousDeath
Copy link
Contributor

image

@ultimaweapon
Copy link
Member Author

image

Strange. Why you got int44. For me it is end up in sys_write.

@SuchAFuriousDeath
Copy link
Contributor

And what happens after you implement it? Or rather, after you fake it and just return the len right away?

@SuchAFuriousDeath
Copy link
Contributor

"Scepthread: Fatal error 'Can't set session id to 2 (errno = 1)'" is what it's trying to write for me btw

@SuchAFuriousDeath
Copy link
Contributor

SuchAFuriousDeath commented Apr 6, 2024

image

Strange. Why you got int44. For me it is end up in sys_write.

Sorry, I myself didn't realize that I had sys_write stubbed. I merged main into my WIP branch. By the way, we should be thinking about sys_mmap_dmem, that seems to be the main obstacle that's ahead of us. Mikusp said he already has some ideas.

@ultimaweapon
Copy link
Member Author

I'll let you guys handle that. What I'm currently focus on is moving the application to run inside a VM.

@SuchAFuriousDeath
Copy link
Contributor

Where do we even begin? 👀

@ultimaweapon
Copy link
Member Author

Wait, you said @mikusp already have some ideas.

@SuchAFuriousDeath
Copy link
Contributor

He has some ideas for dmem, but not for the privilege issue, that's what I was talking about.

@ultimaweapon
Copy link
Member Author

image

Strange. Why you got int44. For me it is end up in sys_write.

You mean you got int44 after this?

@SuchAFuriousDeath
Copy link
Contributor

yup

@SuchAFuriousDeath
Copy link
Contributor

I guess I didn't actually say that 😅 Yeah, I get it right after. And from the description, it seems that it's the sys_setid. However, that means that is_system has to be true, doesn't it? 🤔

@ultimaweapon
Copy link
Member Author

However, that means that is_system has to be true, doesn't it?

It should not. I'm confused why it raise int44. It seems like the PS4 expect the process to be a system process somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-ready Status: Ready for review
Development

Successfully merging this pull request may close these issues.

2 participants