Re: Using /dev/mem to access memory allocated with kmalloc

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

 



On Mon, 2005-12-12 at 15:07 -0500, Marek Olszewski wrote:
> Can I page reserve memory allocated by kmalloc?

no
well I guess you sort of can, but it's really really bad to do so. With
kmalloc you have no guarantee that you are the only user of the page in
question so you would
1) expose other memory to userspace
2) mark other memory as PAGE_RESERVED as well

not good.

Sounds like you're doing something really nasty in general :)



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