Re: [PATCH] Undo some of the pseudo-security madness

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Florian Weimer
Date: Thursday, February 1, 2007 - 1:05 am

* Arjan van de Ven:


This reminds me of a different matter: What is the recommended way to
reserve address space (so that libc etc. won't use it) *without*
increasing the VM committed memory counter?  In other words, without
allocating backing store for it?

IIRC, mmap(PROT_NONE) followed by mprotect(PROT_READ | PROT_WRITE)
seems to work, but I wonder if this is just an accident, or if this is
part of the API.

This is an interesting topic because such functionality is required to
make many virtual machines work with address space randomization and
(especially) vm.overcommit_memory=2.  They don't need the backing
store from the beginning, but they really like (if not need, even)
huge regions of continuous address space.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Undo some of the pseudo-security madness, Samium Gromoff, (Sun Jan 21, 4:23 pm)
Re: [PATCH] Undo some of the pseudo-security madness, Valdis.Kletnieks, (Mon Jan 22, 8:20 am)
Re: [PATCH] Undo some of the pseudo-security madness, Samium Gromoff, (Mon Jan 22, 10:39 am)
Re: [PATCH] Undo some of the pseudo-security madness, Pavel Machek, (Tue Jan 23, 1:48 am)
Re: [PATCH] Undo some of the pseudo-security madness, Samium Gromoff, (Tue Jan 23, 7:03 am)
[PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Samium Gromoff, (Tue Jan 23, 1:28 pm)
Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Jakub Jelinek, (Tue Jan 23, 1:50 pm)
Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Samium Gromoff, (Tue Jan 23, 2:06 pm)
Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Jakub Jelinek, (Tue Jan 23, 2:16 pm)
Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Samium Gromoff, (Tue Jan 23, 2:54 pm)
Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Samium Gromoff, (Tue Jan 23, 4:21 pm)
Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Pavel Machek, (Wed Jan 24, 10:08 am)
Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit, Arjan van de Ven, (Sun Jan 28, 6:18 pm)
Re: [PATCH] Undo some of the pseudo-security madness, Arjan van de Ven, (Wed Jan 31, 2:59 am)
Re: [PATCH] Undo some of the pseudo-security madness, Florian Weimer, (Thu Feb 1, 1:05 am)
Re: [PATCH] Undo some of the pseudo-security madness, Florian Weimer, (Sat Feb 24, 2:51 am)
Re: [PATCH] Undo some of the pseudo-security madness, Samium Gromoff, (Sat Feb 24, 6:36 am)