Re: Question about a strange behavior of copy_to_user() in ioctl call

2007-06-19 Thread News Letter
Thank you for your reply. I put the access_ok() as a debugging tool. I suspected that copy_to_user() failed at the access_ok() test. It is for debugging. I did replace copy_from_user() with __copy_from_user(). It gave out the same result. On 6/19/07, Jiri Slaby <[EMAIL PROTECTED]> wrote: News L

Re: Question about a strange behavior of copy_to_user() in ioctl call

2007-06-19 Thread Jiri Slaby
News Letter napsal(a): > Hi, > > I need some help here to understand copy_to_user(). I encountered a > strange copy_to_user() behavior when working on CentOS from Redhat > (kernel version 2.6.9-22.ELsmp, x86_64 CPU). > > For a kernel module, I wrote a ioctl call to allow user mode program > to ge

Question about a strange behavior of copy_to_user() in ioctl call

2007-06-18 Thread News Letter
Hi, I need some help here to understand copy_to_user(). I encountered a strange copy_to_user() behavior when working on CentOS from Redhat (kernel version 2.6.9-22.ELsmp, x86_64 CPU). For a kernel module, I wrote a ioctl call to allow user mode program to get some kernel data information. When a