Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936699Ab3DIJX2 (ORCPT ); Tue, 9 Apr 2013 05:23:28 -0400 Received: from www.linutronix.de ([62.245.132.108]:44299 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936673Ab3DIJXX (ORCPT ); Tue, 9 Apr 2013 05:23:23 -0400 Date: Tue, 9 Apr 2013 11:23:15 +0200 (CEST) From: Thomas Gleixner To: "H. Peter Anvin" cc: Kees Cook , Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org, Konrad Rzeszutek Wilk , Jeremy Fitzhardinge , Marcelo Tosatti , Alex Shi , Borislav Petkov , Alexander Duyck , Frederic Weisbecker , Steven Rostedt , "Paul E. McKenney" , xen-devel@lists.xensource.com, virtualization@lists.linux-foundation.org, kernel-hardening@lists.openwall.com, Dan Rosenberg , Julien Tinnes , Will Drewry , Eric Northup Subject: Re: [PATCH] x86: make IDT read-only In-Reply-To: <51634935.9010905@zytor.com> Message-ID: References: <20130408224328.GA17641@www.outflux.net> <51634935.9010905@zytor.com> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 23 On Mon, 8 Apr 2013, H. Peter Anvin wrote: > On 04/08/2013 03:43 PM, Kees Cook wrote: > > This makes the IDT unconditionally read-only. This primarily removes > > the IDT from being a target for arbitrary memory write attacks. It has > > an added benefit of also not leaking (via the "sidt" instruction) the > > kernel base offset, if it has been relocated. > > > > Signed-off-by: Kees Cook > > Cc: Eric Northup > > Also, tglx: does this interfere with your per-cpu IDT efforts? I don't think so. And it's on the backburner at the moment. Thanks, tglx -- 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/