public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Using remap_pfn_range() to increase total_vm beyond RLIMIT_AS
@ 2009-10-15 21:17 Earl Chew
  2009-10-19  2:20 ` Jeremy Fitzhardinge
  0 siblings, 1 reply; 3+ messages in thread
From: Earl Chew @ 2009-10-15 21:17 UTC (permalink / raw)
  To: linux-kernel

remap_pfn_range() is defined in mm/memory.c and as far as I
can tell, does _not_ cause total_vm or reserved_vm to be updated.

Is this right?


RLIMIT_AS is only checked against total_vm in mm/mmap.c in the function
may_expand_vm().

I think this means that a device driver can map pages into
a process and thus effectively increase address space of
a process above and beyond the limit set by RLIMIT_AS.

Am I reading the code correctly?


Earl



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-19 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-15 21:17 Using remap_pfn_range() to increase total_vm beyond RLIMIT_AS Earl Chew
2009-10-19  2:20 ` Jeremy Fitzhardinge
2009-10-19 14:59   ` Earl Chew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox