On Sun, 2008-04-27 at 13:50 +0000, Nagy Tamás wrote:
> Have anyone found a permanent solution yet? 
> echo 0 | sudo tee /proc/sys/vm/mmap_min_addr must be rewrote after each 
> restart of the computer.

Manipulations of /proc/sys can be done through sysctl and can be made to
be automatically applied at every boot by editing /etc/sysctl.conf  In
this case, the following command performs the same as the above:

$ sudo sysctl vm.mmap_min_addr=0

So adding the line:

vm.mmap_min_addr=0

to /etc/sysctl.conf will make that change automatically with each boot.
I have not tested running the system with this change so I do not know
if making it the default on your system will cause some other unintended
consequences.

Hmm... actually, I looked at my sysctl.conf file and found this:

# protect bottom 64k of memory from mmap to prevent NULL-dereference
# attacks against potential future kernel security vulnerabilities.
# (Added in kernel 2.6.23.)
vm.mmap_min_addr = 65536

So it seems that the current value was set this way on purpose, for
security reasons.  This probably should be investigated further.

-- 
dosemu segfaults on startup
https://bugs.launchpad.net/bugs/216398
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to