Forgot to Cc: here: > You can't call kernel strlen on a userland address, you must do > something like this: How so ? It seems to work for me. For instance, I used userland address space buffer to simulate __getcwd() syscall on the current process (I was hacking open() syscall and log full path of the file to the syslog). I simulate mmap() with MAP_ANON and fd == -1 on that process, then I do __getcwd() to the buffer allocated, and then I'm very well able to call strlen() on that userland buffer, as well as other str* functions. So generally I think it works. Regards, Eugene To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: Some questions about kernel programming Greg Lehey
- Re: Some questions about kernel programming Alfred Perlstein
- Re: Some questions about kernel programming Terry Lambert
- Re: Some questions about kernel programming Sergey Babkin
- Re: Some questions about kernel programming Eugene L. Vorokov
- Re: Some questions about kernel programming Alfred Perlstein
- Re: Some questions about kernel programming Brian Somers
- Re: Some questions about kernel programming Brian Somers
- Re: Some questions about kernel programming Eugene L. Vorokov
- Re: Some questions about kernel programming Alfred Perlstein
- Re: Some questions about kernel programming Eugene L. Vorokov
- Re: Some questions about kernel programming Drew Eckhardt
- Re: Some questions about kernel programming Alfred Perlstein