page fault from kernel code

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

 



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,
then if the page i'm accessing is not available, it would cause a
page fault. the kernel then "oops". why is this so? can't we
gracefully recover from here ....we still have the user process's
context with us. The page fault handler would get the page in...and
I can go about doing my business. my code would sleep, but then that's
OK with me.

thanks as usual,
-mandeep

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