Re: page fault from kernel code

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

 



On Tue, 2005-04-19 at 16:47 +0530, Mandeep Sandhu wrote:
> hi all,
> 
> a small Q. :)
> 
> if i dereference a user-space pointer from inside my driver 
> (kernel code) without the customary checks of of copy_[to/from]_user,

you don't even know if that pointer is not ALSO valid in the kernel.
For example on s390 or with the x86 kernels with the 4g/4g patch.

Kernel and user space are very much different domains. You really should
treat them as such. copy_[to/from]_user (and related) are the api to
bridge between the domains. 


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