Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753968AbdLNRhR (ORCPT ); Thu, 14 Dec 2017 12:37:17 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:57531 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753919AbdLNRhO (ORCPT ); Thu, 14 Dec 2017 12:37:14 -0500 Date: Thu, 14 Dec 2017 18:36:53 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: "linux-kernel@vger.kernel.org" , Thomas Gleixner , X86 ML , Linus Torvalds , Dave Hansen , Borislav Petkov , Greg KH , Kees Cook , Hugh Dickins , Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , "Liguori, Anthony" , Will Deacon , "linux-mm@kvack.org" , "Kirill A. Shutemov" , Dan Williams Subject: Re: [PATCH v2 02/17] mm: Exempt special mappings from mlock(), mprotect() and madvise() Message-ID: <20171214173653.s6vsgiwfty3tzyzs@hirez.programming.kicks-ass.net> References: <20171214112726.742649793@infradead.org> <20171214113851.197682513@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 579 Lines: 14 On Thu, Dec 14, 2017 at 08:19:36AM -0800, Andy Lutomirski wrote: > On Thu, Dec 14, 2017 at 3:27 AM, Peter Zijlstra wrote: > > It makes no sense to ever prod at special mappings with any of these > > syscalls. > > > > XXX should we include munmap() ? > > This is an ABI break for the vdso. Maybe that's okay, but mremap() on > the vdso is certainly used, and I can imagine debuggers using > mprotect(). *groan*, ok so mremap() will actually still work after this, but yes, mprotect() will not. I hadn't figured people would muck with the VDSO like that.