Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933622AbbGHT0N (ORCPT ); Wed, 8 Jul 2015 15:26:13 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:35061 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754559AbbGHT0G (ORCPT ); Wed, 8 Jul 2015 15:26:06 -0400 MIME-Version: 1.0 In-Reply-To: <186986ee520fd6c44aa73073cbb7a58c2899a6d1.1436383168.git.luto@kernel.org> References: <186986ee520fd6c44aa73073cbb7a58c2899a6d1.1436383168.git.luto@kernel.org> From: Andy Lutomirski Date: Wed, 8 Jul 2015 12:25:44 -0700 Message-ID: Subject: Re: [RFC/PATCH 4/7] x86/entry/32: Finish removing bogus kernel-mode check To: Andy Lutomirski Cc: X86 ML , "linux-kernel@vger.kernel.org" , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Rik van Riel , Oleg Nesterov , Denys Vlasenko , Borislav Petkov , Kees Cook , Brian Gerst , Linus Torvalds , Al Viro Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1247 Lines: 40 [cc: Al -- saying I'm cc-ing you in the patch 0 description doesn't make it so.] On Wed, Jul 8, 2015 at 12:24 PM, Andy Lutomirski wrote: > Signed-off-by: Andy Lutomirski > --- > arch/x86/entry/entry_32.S | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/arch/x86/entry/entry_32.S b/arch/x86/entry/entry_32.S > index d36afad80ad1..66ff9c4055d7 100644 > --- a/arch/x86/entry/entry_32.S > +++ b/arch/x86/entry/entry_32.S > @@ -491,13 +491,6 @@ work_notifysig: # deal with pending signals and > #endif > TRACE_IRQS_ON > ENABLE_INTERRUPTS(CLBR_NONE) > - /* Temporary sanity check */ > - movb PT_CS(%esp), %bl > - andb $SEGMENT_RPL_MASK, %bl > - cmpb $USER_RPL, %bl > - jnb 2f > - ud2 > -2: > xorl %edx, %edx > call do_notify_resume > jmp resume_userspace > -- > 2.4.3 > -- Andy Lutomirski AMA Capital Management, LLC -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/