[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200710021545.32556.ak@suse.de>
Date: Tue, 2 Oct 2007 15:45:32 +0200
From: Andi Kleen <ak@...e.de>
To: discuss@...-64.org
Cc: Hugh Dickins <hugh@...itas.com>, Thayne Harbaugh <thayne@...net>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [discuss] [PATCH] Inconsistent mmap()/mremap() flags
> First call mmap with a low hint address, the new size you'll be wanting
> from the mremap, PROT_NONE, MAP_ANONYMOUS, -1, 0. Then call mremap with
> old address, old size, new size, MREMAP_MAYMOVE|MREMAP_FIXED, and new
> address as returned by the preparatory mmap.
That's racy unfortunately in a multithreaded process. They would need to loop.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists