From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f70.google.com (mail-pg0-f70.google.com [74.125.83.70]) by kanga.kvack.org (Postfix) with ESMTP id C34356B0033 for ; Thu, 14 Dec 2017 17:30:37 -0500 (EST) Received: by mail-pg0-f70.google.com with SMTP id v190so5182172pgv.11 for ; Thu, 14 Dec 2017 14:30:37 -0800 (PST) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id i1sor1260626pgq.422.2017.12.14.14.30.36 for (Google Transport Security); Thu, 14 Dec 2017 14:30:36 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2 11/17] selftests/x86/ldt_gdt: Prepare for access bit forced From: Andy Lutomirski In-Reply-To: Date: Thu, 14 Dec 2017 14:30:34 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <03293FB5-DC9B-47BB-8C3A-7827CD82FECB@amacapital.net> References: <20171214112726.742649793@infradead.org> <20171214113851.647809433@infradead.org> Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: Andy Lutomirski , Peter Zijlstra , "linux-kernel@vger.kernel.org" , Thomas Gleixner , X86 ML , 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 Dec 14, 2017, at 2:15 PM, Linus Torvalds wrote: >=20 >> On Thu, Dec 14, 2017 at 2:11 PM, Andy Lutomirski wr= ote: >>=20 >> That seems to rather defeat the point of using a VMA, though. >=20 > There never was any point in using a VMA per se. >=20 > The point was always to just map the damn thing in the user page > tables, wasn't it? >=20 > The vma bit was just an implementation detail. And all this is why I dislike using a VMA. My patch puts it at a negative a= ddress. We could just as easily put it just above TASK_SIZE_MAX, but I'm a b= it nervous about bugs that overrun an access_ok check by a small amount. II= RC I found one of those in the net code once, and I didn't look very hard. -- 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