From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kees Cook Subject: Re: [PATCH 0/2] mm: introduce MAP_FIXED_SAFE Date: Wed, 29 Nov 2017 14:25:36 -0800 Message-ID: References: <20171129144219.22867-1-mhocko@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20171129144219.22867-1-mhocko@kernel.org> Sender: linux-arch-owner@vger.kernel.org To: Michal Hocko Cc: Linux API , Khalid Aziz , Michael Ellerman , Andrew Morton , Russell King - ARM Linux , Andrea Arcangeli , Linux-MM , LKML , linux-arch , Florian Weimer , John Hubbard , Abdul Haleem , Joel Stanley , Michal Hocko List-Id: linux-api@vger.kernel.org On Wed, Nov 29, 2017 at 6:42 AM, Michal Hocko wrote: > The first patch introduced MAP_FIXED_SAFE which enforces the given > address but unlike MAP_FIXED it fails with ENOMEM if the given range > conflicts with an existing one. The flag is introduced as a completely I still think this name should be better. "SAFE" doesn't say what it's safe from... MAP_FIXED_UNIQUE MAP_FIXED_ONCE MAP_FIXED_FRESH ? -Kees -- Kees Cook Pixel Security