From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap. Date: Tue, 27 Mar 2018 16:49:04 -0700 Message-ID: <20180327234904.GA27734@bombadil.infradead.org> References: <1521736598-12812-1-git-send-email-blackzert@gmail.com> <20180323124806.GA5624@bombadil.infradead.org> <651E0DB6-4507-4DA1-AD46-9C26ED9792A8@gmail.com> <20180326084650.GC5652@dhcp22.suse.cz> <01A133F4-27DF-4AE2-80D6-B0368BF758CD@gmail.com> <20180327072432.GY5652@dhcp22.suse.cz> <0549F29C-12FC-4401-9E85-A430BC11DA78@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5fGeoFVVBsRxLZCqp0TMHMlfZMGdoVVGCOpzKuwYbuo=; b=Jgdt4EVS0DRa/Y pL7LwwA6mjNBrZz3Yj3XLAUlLkGMOYMwdbVJ9+jn+u/Gy34RqsfAUaIFa7NzZcqQxxaAg2t9rV0xT 7TY8bo1ubcbVoc4oy6fw0e4z1oWjclbilffibCcIP7xaRwTtcISXFsy4eXe6jVpKoepf0st3WO323 cr9+wCBEE5SvnE7hr+cAT9Jw1evyKNC31DxI8t/mGm4HLzs7q9UctYhdrEDVeHAEkpOX0GVB56mH1 F1y06LZ07a3lSxnIG+ss4yR0IxAiQCq1jte84UK70G5R9nLINJtev+ILFNGMkDYFugOoYaQEXu6J/ oDobh8qra+0jMSPBMxTg==; Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+gla-linux-snps-arc=m.gmane.org@lists.infradead.org To: Kees Cook Cc: Kate Stewart , Linux MIPS Mailing List , Rich Felker , Jan Kara , linux-sh , Ilya Smith , Benjamin Herrenschmidt , Bhupesh Sharma , Heiko Carstens , Michal Hocko , Linux-MM , Paul Mackerras , Deepa Dinamani , "H. Peter Anvin" , sparclinux , linux-ia64@vger.kernel.org, Dan Williams , Andrea Arcangeli , linux-s390 , Yoshinori Sato , Michael Ellerman , Helge Deller , X86 ML , Hugh Dickins On Tue, Mar 27, 2018 at 03:53:53PM -0700, Kees Cook wrote: > I agree: pushing this off to libc leaves a lot of things unprotected. > I think this should live in the kernel. The question I have is about > making it maintainable/readable/etc. > > The state-of-the-art for ASLR is moving to finer granularity (over > just base-address offset), so I'd really like to see this supported in > the kernel. We'll be getting there for other things in the future, and > I'd like to have a working production example for researchers to > study, etc. One thing we need is to limit the fragmentation of this approach. Even on 64-bit systems, we can easily get into a situation where there isn't space to map a contiguous terabyte.