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

How can loader write 32bit offset on 64bit kernel address #5

Open
kxzxxx opened this issue Sep 25, 2022 · 0 comments
Open

How can loader write 32bit offset on 64bit kernel address #5

kxzxxx opened this issue Sep 25, 2022 · 0 comments

Comments

@kxzxxx
Copy link

kxzxxx commented Sep 25, 2022

Hello, I try to get a root shell on mt5895, when I get stack dump, I can see kernel module address is 64bit. But in loader.go

cmd := fmt.Sprintf("w 0x%08x 0x%02x%02x%02x%02x", uint(loadAddr)+uint(i), data[i+3], data[i+2], data[i+1], data[i])

It try to write to a 32bit address, do mt5891 run kernel in 32bit mode?

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

1 participant