Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934165AbXK2U0B (ORCPT ); Thu, 29 Nov 2007 15:26:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934001AbXK2UZi (ORCPT ); Thu, 29 Nov 2007 15:25:38 -0500 Received: from smtp2.linux-foundation.org ([207.189.120.14]:39123 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933993AbXK2UZg (ORCPT ); Thu, 29 Nov 2007 15:25:36 -0500 Date: Thu, 29 Nov 2007 12:23:59 -0800 (PST) From: Linus Torvalds To: Andi Kleen cc: "H. Peter Anvin" , Chuck Ebbert , Roland McGrath , Andrew Morton , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Jeremy Fitzhardinge , zach@vmware.com Subject: Re: [PATCH x86/mm 6/6] x86-64 ia32 ptrace get/putreg32 current task In-Reply-To: <200711292111.26661.ak@suse.de> Message-ID: References: <20071129003849.428E026F8E7@magilla.localdomain> <20071129192721.GP24223@one.firstfloor.org> <200711292111.26661.ak@suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 24 On Thu, 29 Nov 2007, Andi Kleen wrote: > > How would you catch (common) the case of them having different bases in the > GDT TLS entries? At some point the selector has to be reloaded, otherwise > it won't be picked up by the CPU. You're right. I somehow thought we were using the LDT for TLS entries, which I guess we did back before kernel support, but yeah, we're using per-CPU GDT entries, and would need to check that those match too. So yeah, the only safe ones are the ones we don't ever change, and that is basically just the kernel entries (that users cannot load anyway). So scratch that. You're right - the NUL selector is the only special one for the context switcher. Linus - 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/