Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756022AbbGUWe1 (ORCPT ); Tue, 21 Jul 2015 18:34:27 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:32796 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754044AbbGUWeZ (ORCPT ); Tue, 21 Jul 2015 18:34:25 -0400 MIME-Version: 1.0 In-Reply-To: <55AEC18E.4060400@oracle.com> References: <55AEC18E.4060400@oracle.com> From: Andy Lutomirski Date: Tue, 21 Jul 2015 15:34:04 -0700 Message-ID: Subject: Re: [PATCH v2 3/3] selftests/x86, x86/ldt: Add a selftest for modify_ldt To: Boris Ostrovsky Cc: Andy Lutomirski , Peter Zijlstra , Steven Rostedt , "security@kernel.org" , X86 ML , Borislav Petkov , Sasha Levin , "linux-kernel@vger.kernel.org" , Konrad Rzeszutek Wilk 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: 1048 Lines: 37 On Tue, Jul 21, 2015 at 3:02 PM, Boris Ostrovsky wrote: > 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 no, and I'll remove it. --Andy -- 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/