[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121022132733.GQ16230@one.firstfloor.org>
Date: Mon, 22 Oct 2012 15:27:33 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Michael Kerrisk <mtk.manpages@...il.com>
Cc: Andi Kleen <andi@...stfloor.org>, akpm@...ux-foundation.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>,
Hillf Danton <dhillf@...il.com>
Subject: Re: [PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v6
> Maybe I am missing something obvious, but does this not conflict with
> include/uapi/asm-generic/mman-common.h:
>
> #ifdef CONFIG_MMAP_ALLOW_UNINITIALIZED
> # define MAP_UNINITIALIZED 0x4000000
> ...
>
> 0x4000000 == (1 << 26
>
You're right. Someone added that since I wrote the patch originally.
I owned them when originally submitted @) Thanks for catching.
Have to move my bits two up, which will still work, but limit the
maximum page size slightly more, but will likely still work for most
people.
I'll send a new patch.
BTW seriously MAP_UNINITIALIZED? Who came up with that?
MAP_COMPLETELY_INSECURE or MAP_INSANE would have been more appropiate.
Maybe I should list as an advantage that my patch will prohibit
too many further such "innovations".
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
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