[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AD7916A.2080200@agilent.com>
Date: Thu, 15 Oct 2009 14:17:30 -0700
From: Earl Chew <earl_chew@...lent.com>
To: linux-kernel@...r.kernel.org
Subject: Using remap_pfn_range() to increase total_vm beyond RLIMIT_AS
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists