Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756005AbbGUWED (ORCPT ); Tue, 21 Jul 2015 18:04:03 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:17128 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbbGUWEB (ORCPT ); Tue, 21 Jul 2015 18:04:01 -0400 Message-ID: <55AEC18E.4060400@oracle.com> Date: Tue, 21 Jul 2015 18:02:54 -0400 From: Boris Ostrovsky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andy Lutomirski , Peter Zijlstra , Steven Rostedt CC: "security@kernel.org" , X86 ML , Borislav Petkov , Sasha Levin , linux-kernel@vger.kernel.org, Konrad Rzeszutek Wilk Subject: Re: [PATCH v2 3/3] selftests/x86, x86/ldt: Add a selftest for modify_ldt References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1095 Lines: 39 On 07/21/2015 03:59 PM, Andy Lutomirski wrote: > diff --git a/tools/testing/selftests/x86/ldt_gdt.c b/tools/testing/selftests/x86/ldt_gdt.c > new file mode 100644 > index 000000000000..6f6699f0351a > --- /dev/null > +++ b/tools/testing/selftests/x86/ldt_gdt.c > @@ -0,0 +1,492 @@ > +/* > + * ldt_gdt.c - Test cases for LDT and GDT access > + * Copyright (c) 2015 Andrew Lutomirski > + */ > + > +#define _GNU_SOURCE > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include Is xmmintrin.h necessary? It breaks 32-bit build with /usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/xmmintrin.h:32:3: error: #error "SSE instruction set not enabled" unless I add -msse2. (This also needs stdlib.h for exit() declaration) -boris -- 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/