From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by kanga.kvack.org (Postfix) with ESMTP id 5D3EA6B02F3 for ; Mon, 7 Aug 2017 15:01:15 -0400 (EDT) Received: by mail-oi0-f71.google.com with SMTP id b184so973647oih.9 for ; Mon, 07 Aug 2017 12:01:15 -0700 (PDT) Received: from mail-io0-x243.google.com (mail-io0-x243.google.com. [2607:f8b0:4001:c06::243]) by mx.google.com with ESMTPS id c1si5375501oih.88.2017.08.07.12.01.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Aug 2017 12:01:14 -0700 (PDT) Received: by mail-io0-x243.google.com with SMTP id j32so944610iod.3 for ; Mon, 07 Aug 2017 12:01:14 -0700 (PDT) Message-ID: <1502132471.1803.13.camel@gmail.com> Subject: Re: binfmt_elf: use ELF_ET_DYN_BASE only for PIE breaks asan From: Daniel Micay Date: Mon, 07 Aug 2017 15:01:11 -0400 In-Reply-To: References: <1502131739.1803.12.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Kees Cook , Kostya Serebryany Cc: Dmitry Vyukov , Michal Hocko , Andrew Morton , "linux-mm@kvack.org" , Rik van Riel , Reid Kleckner , Peter Collingbourne , Evgeniy Stepanov On Mon, 2017-08-07 at 11:59 -0700, Kees Cook wrote: > On Mon, Aug 7, 2017 at 11:56 AM, Kostya Serebryany > wrote: > > Is it possible to implement some userspace<=>kernel interface that > > will > > allow applications (sanitizers) > > to request *fixed* address ranges from the kernel at startup (so > > that the > > kernel couldn't refuse)? > > Wouldn't building non-PIE accomplish this? > > -Kees > Well that lets you map the executable in the desired location, and sanitizers would be free to add a huge reserved mapping as part of the executable, but if they want the mapping placed away from the exe there is not really any way to do that reliably without it being dynamic. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org