Re: Why can't we use the user-space pointer in kernel mode?

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

 



    Why can't you just use copy_*_user() functions and let them take
care of these details, or am I missing something?

But in copy_from_user() function, the kernel do copy the data intto
kernel space besides making some necessory checks.

In fact, the do_page_fault() function will generate "Oops" when
accessing a swapped out user space page. why is that? why don't the
do_page_fault() swapped it back in?

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