On Sun, 11 Jan 2004, James B. Hiller wrote:

> Been running 1.0.2.1 for quite awhile and it's been doing great for me.
>
> Recently went into the 2.6 kernels, starting with 2.6.0.  Things were
> fine with that one, and with the first 2.6.1 release candidate
> (specifically, 2.6.1-rc1-mm1).  I had to go to that one to start
> resolving some ide cd burning issues I was having.

"mapshm" is broken. Use the workaround
$_mapping = "mapfile"
in dosemu.conf

Or alternatively the kernel patch below.

Problem is that the case where new_len==0 was a security hole. Linus went
one step further and also disallowed old_len==0. This is not a security
hole, but deals with a somewhat tricky (and apart for source code
undocumented) interface that DOSEMU happens to use. Hopefully Linus or
Andrew Morton can revert it and apply this patch.

As long as you don't use DPMI the workaround is enough for 1.0.2.1.

Bart

--- mm/mremap.c~        Sat Jan 10 19:22:39 2004
+++ mm/mremap.c Sun Jan 11 00:19:13 2004
@@ -315,8 +315,11 @@
        old_len = PAGE_ALIGN(old_len);
        new_len = PAGE_ALIGN(new_len);

-       /* Don't allow the degenerate cases */
-       if (!old_len || !new_len)
+       /* Don't allow the degenerate cases
+        * however, old_len == 0 can be used in combination with shmat()
+        * to create alias mappings.
+        */
+       if (!new_len)
                goto out;

        /* new_addr is only valid if MREMAP_FIXED is specified */


-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to