Re: [BUG] get_unmapped_area() change -> non booting machine

From: Dave McCracken
Date: Thu Feb 12 2004 - 12:04:09 EST



--On Thursday, February 12, 2004 08:36:48 -0800 Linus Torvalds
<torvalds@xxxxxxxx> wrote:

> One option is to mark the brk() VMA's as being grow-up (which they are),
> and make get_unmapped_area() realize that it should avoid trying to
> allocate just above grow-up segments or just below grow-down segments.
> That's still something of a special case, but at least it's not "magic"
> any more, now it's more of a "makes sense".

So what's a reasonable value for 'not just above' and 'not just below'? We
could skip the entire hole, which would give us reasonable behavior for the
brk area, but it wouldn't work so well for the area below the stack. I'm
sure if we define a 'reasonable' value to skip someone somewhere will
collide with it.

Dave McCracken

-
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/