Syscall stat64() returning EFAULT (bad address)...
Hi, I'm trying to call stat64() (from a kernel context) but it keeps returning errno EFAULT (bad address). I successfully vmalloc'ed some memory, but it doesn't accept it.
I'm not too experienced with kernel programming yet but I tried looking at the source and it seems when stat64() tries to use copy_to_user() and it fails, stat64 will return efault. I'm guessing it want's user space memory. But I tried kmalloc(sizeof(my_statbuf),GFP_USER) as well and that fails. I also tried fstat64 which fails too. Here's an example of what I'm trying to do: Code:
... Thanks guys |
All times are GMT -5. The time now is 04:09 PM. |