Re: Why can user virtual addresses sometimes be dereferenced in the kernel?

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

 



On Thu, 2005-01-20 at 12:54 -0600, Timur Tabi wrote:
> I recently discovered in a driver I'm working on that there are several 
> places where a user-space virtual address is being dereferenced 
> successfully.  I was under the impression that that should not work - 
> user pointers should not be usuable in kernel space. 

it may work. you may be lucky. The page also may be swapped out and you
crash and burn

as for fc2/3; those kernels have a separate address space for user and
kernel, and as a result such rogue accesses will almost always crash,
not just sometimes.



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