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 to get origin struct param in syscall hook when using syscall_argn? #136

Open
xingkong123600 opened this issue Oct 30, 2024 · 0 comments

Comments

@xingkong123600
Copy link

i am using kpm to hook syscall.
param[1] is a struct, how to get origin struct?
and need i copy from user like demo "compat_strncpy_from_user(buf, path, sizeof(buf));" ?
and how to copy from user?

here is my code, but not work (phone rebooted):
struct statfs *mystruct = (struct statfs *)syscall_argn(args, 1);

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