public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* LOWRAM mmap: Invalid argument
@ 2008-04-12 16:09 ivan
  2008-04-12 17:51 ` Bart Oldeman
  0 siblings, 1 reply; 4+ messages in thread
From: ivan @ 2008-04-12 16:09 UTC (permalink / raw)
  To: linux-msdos

Hello,

Dosemu doesn't run any more. I use latest ubuntu hardy (frequently updated) on 3
different machines (both ia32 and amd64) and the last time I remember dosemu
working was about 2 weeks ago. Today, all I got was the following error message:

$ dosemu
LOWRAM mmap: Invalid argument
Segmentation fault (core dumped)

I tried from X and from the console, all 3 computers, result the same. Some
dependency had to break dosemu. Google doesn't give any hints about LOWRAM mmap.
So, anyone has an idea?

Thanks a lot
Ivan

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

* Re: LOWRAM mmap: Invalid argument
  2008-04-12 16:09 LOWRAM mmap: Invalid argument ivan
@ 2008-04-12 17:51 ` Bart Oldeman
  2008-04-12 18:24   ` ivan
  2010-09-20 19:19   ` marc.cunning
  0 siblings, 2 replies; 4+ messages in thread
From: Bart Oldeman @ 2008-04-12 17:51 UTC (permalink / raw)
  To: linux-msdos, ivan

Hi,

you can check the value of
/proc/sys/vm/mmap_min_addr
and if it is non-zero, use
echo 0 > /proc/sys/vm/mmap_min_addr

I am not sure what Ubuntu has been up to exactly: this is something
that only works with SELinux enabled in enforcing mode.

This is the help:
+config SECURITY_DEFAULT_MMAP_MIN_ADDR
+        int "Low address space to protect from user allocation"
+        depends on SECURITY
+        default 0
+        help
+         This is the portion of low virtual memory which should be protected
+         from userspace allocation.  Keeping a user from writing to low pages
+         can help reduce the impact of kernel NULL pointer bugs.
+
+         For most users with lots of address space a value of 65536 is
+         reasonable and should cause no problems.  Programs which use vm86
+         functionality would either need additional permissions from either
+         the LSM or the capabilities module or have this protection disabled.
+
+         This value can be changed after boot using the
+         /proc/sys/vm/mmap_min_addr tunable.
+
+

I am not sure how to give DOSEMU special permission -- maybe you could
ask Ubuntu kernel maintainers about why they changed mmap_min_addr?

(o and this is speculation on my part, perhaps there is a different
problem in which case I don't know).

Bart

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

* Re: LOWRAM mmap: Invalid argument
  2008-04-12 17:51 ` Bart Oldeman
@ 2008-04-12 18:24   ` ivan
  2010-09-20 19:19   ` marc.cunning
  1 sibling, 0 replies; 4+ messages in thread
From: ivan @ 2008-04-12 18:24 UTC (permalink / raw)
  To: linux-msdos

On Sat, Apr 12, 2008 at 01:51:54PM -0400, Bart Oldeman wrote:
> Hi,
> 
> you can check the value of
> /proc/sys/vm/mmap_min_addr
> and if it is non-zero, use
> echo 0 > /proc/sys/vm/mmap_min_addr

That's exactly it. Big thanks.

Ivan

> I am not sure what Ubuntu has been up to exactly: this is something
> that only works with SELinux enabled in enforcing mode.
> 
> This is the help:
> +config SECURITY_DEFAULT_MMAP_MIN_ADDR
> +        int "Low address space to protect from user allocation"
> +        depends on SECURITY
> +        default 0
> +        help
> +         This is the portion of low virtual memory which should be protected
> +         from userspace allocation.  Keeping a user from writing to low pages
> +         can help reduce the impact of kernel NULL pointer bugs.
> +
> +         For most users with lots of address space a value of 65536 is
> +         reasonable and should cause no problems.  Programs which use vm86
> +         functionality would either need additional permissions from either
> +         the LSM or the capabilities module or have this protection disabled.
> +
> +         This value can be changed after boot using the
> +         /proc/sys/vm/mmap_min_addr tunable.
> +
> +
> 
> I am not sure how to give DOSEMU special permission -- maybe you could
> ask Ubuntu kernel maintainers about why they changed mmap_min_addr?
> 
> (o and this is speculation on my part, perhaps there is a different
> problem in which case I don't know).
> 
> Bart

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

* Re: LOWRAM mmap: Invalid argument
  2008-04-12 17:51 ` Bart Oldeman
  2008-04-12 18:24   ` ivan
@ 2010-09-20 19:19   ` marc.cunning
  1 sibling, 0 replies; 4+ messages in thread
From: marc.cunning @ 2010-09-20 19:19 UTC (permalink / raw)
  To: linux-msdos

Hello,
This is because the newest kernels distributions after 2.6.28.7,
defaults to: "DEFAULT_MMAP_MIN_ADDR [=4096]"
in configure defaults.

Marc

--
This message was sent on behalf of marc.cunning@gmail.com at openSubscriber.com
http://www.opensubscriber.com/message/linux-msdos@vger.kernel.org/9000939.html

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

end of thread, other threads:[~2010-09-20 19:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-12 16:09 LOWRAM mmap: Invalid argument ivan
2008-04-12 17:51 ` Bart Oldeman
2008-04-12 18:24   ` ivan
2010-09-20 19:19   ` marc.cunning

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