From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id D34066B0033 for ; Thu, 14 Dec 2017 12:37:08 -0500 (EST) Received: by mail-pf0-f200.google.com with SMTP id 3so5265856pfo.1 for ; Thu, 14 Dec 2017 09:37:08 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id y20si3157505pgv.291.2017.12.14.09.37.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 09:37:06 -0800 (PST) Date: Thu, 14 Dec 2017 18:36:53 +0100 From: Peter Zijlstra 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: Sender: owner-linux-mm@kvack.org List-ID: 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 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. -- 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