Re: [PATCH] mm/nommu.c: fix mmap failed due to the vm_region codes

From: David Howells
Date: Thu Sep 24 2009 - 08:30:46 EST


<graff.yang@xxxxxxxxx> wrote:

> Due to the new vm_region codes, mmap will failed if it is MAP_PRIVATE,
> or the get_unmapped_area() not do actual things.

Hmmm... Seems one of my debugging patches had a work around for this - all it
did was #ifdef-out the first if-statement in do_mmap_private(). That, however,
prevents XIP.

Sadly, your patch doesn't completely fix the problem either. The BUG in
add_nommu_region() barks.

Let me poke at it some more.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/