Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753187AbbG1RHX (ORCPT ); Tue, 28 Jul 2015 13:07:23 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:33368 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752141AbbG1RHW (ORCPT ); Tue, 28 Jul 2015 13:07:22 -0400 MIME-Version: 1.0 In-Reply-To: <55B7AE39.7000101@citrix.com> References: <55B64FEA.70204@oracle.com> <55B659EC.5030009@oracle.com> <55B75993.90909@citrix.com> <55B7AE39.7000101@citrix.com> From: Andy Lutomirski Date: Tue, 28 Jul 2015 10:07:01 -0700 Message-ID: Subject: Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option To: Andrew Cooper Cc: "security@kernel.org" , Boris Ostrovsky , Borislav Petkov , X86 ML , xen-devel , Konrad Rzeszutek Wilk , Steven Rostedt , "linux-kernel@vger.kernel.org" , Jan Beulich , Sasha Levin , Peter Zijlstra 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: 735 Lines: 25 On Tue, Jul 28, 2015 at 9:30 AM, Andrew Cooper wrote: > I suspect that the set_ldt(NULL, 0) call hasn't reached Xen before > xen_free_ldt() is attempting to nab back the pages which Xen still has > mapped as an LDT. > I just instrumented it with yet more LSL instructions. I'm pretty sure that set_ldt really is clearing at least LDT entry zero. Nonetheless the free_ldt call still oopses. --Andy > ~Andrew -- 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/