access_ok

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have to verify buffer passed by user program is valid or not. I am using access_ok, on i386 plateform. If I pass NULL, access_ok does not catch it.

How can I check for WRITE validity of buffer passed by the user. copy_to_user is not a good choice for me, since I processing data is a loop, which is under spinlock. So to use copy_to_user I have to modify logic.

Talib Alum

_________________________________________________________________
Find a local pizza place, music store, museum and more?then map the best route! http://local.live.com?FORM=MGA001


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux