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

Can't find functions #12

Open
Ultra03 opened this issue Apr 15, 2019 · 2 comments
Open

Can't find functions #12

Ultra03 opened this issue Apr 15, 2019 · 2 comments

Comments

@Ultra03
Copy link

Ultra03 commented Apr 15, 2019

So upon executing certain commands (I'm on an iPhone 6 on iOS 12.1.1), such as fpr, fc, or even just reading, memctl prints this out:

warning: could not find _bzero_phys
warning: could not find _pthread_kext_register
warning: could not find __FREE
Assertion failed: (kr == KEXT_SUCCESS), function ksim_set_pc, file src/libmemctl/arm64/ksim.c, line 307.
deinitialized
Abort trap: 6

I'm not really sure what's wrong here. Any ideas?

@bazad
Copy link
Owner

bazad commented Apr 15, 2019

My guess is that this a bug related to the new (as of iOS 12) merged kernelcache format, which is causing libmemctl to unexpectedly fail to find the kext Mach-O corresponding to a given address.

Unfortunately I don't have a device I can test on. Are you able to get a backtrace on the crash to see who called ksim_set_pc? My guess is it should be coming from kernel_find_kauth_cred_setsvuidgid.

@Ultra03
Copy link
Author

Ultra03 commented Apr 15, 2019

Yeah, looks like kernel_find_kauth_cred_setsvuidgid is the most likely/only suspect, as (looking at the warnings) all of the other methods that call ksim_set_pc would've returned before getting to that point.

I couldn't be sure why though, as I'm not super well-versed in stuff at this level. I'm actually planning on using memctl as a tool while learning more about XNU.

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

No branches or pull requests

2 participants