Re: Reg kmap()

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

 



On Fri, 2007-01-19 at 15:13 -0800, Karthik.G. wrote:
> Hi,
> I have a small question reg kmap()
> Suppose i map a user process page into kernel mem using kmap()
> and after the mapping the user modifies the contents ,would it be read
> by the  kernel.
> Or everytime the user changes something in his address space,the
> kernel has to unmap and then do a kmap again?`

this depends on the architecture; on x86 you'll see it (by luck), on
others... hardly.

I assume you've made very sure the user can't just munmap the page while
you have it kmap()'d ... what would mean you'd be looking at someone
elses memory :)

-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


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