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);
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);