Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 7 Aug 2002 12:51:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 7 Aug 2002 12:51:44 -0400 Received: from mx1.elte.hu ([157.181.1.137]:13012 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Wed, 7 Aug 2002 12:51:43 -0400 Date: Wed, 7 Aug 2002 18:53:44 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Luca Barbieri Cc: Linus Torvalds , Linux-Kernel ML Subject: Re: [PATCH] [2.5 i386] Fix AP GDT descs to have limit = size - 1 In-Reply-To: <1028735671.11775.5.camel@ldb> Message-ID: 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: 728 Lines: 21 On 7 Aug 2002, Luca Barbieri wrote: > memcpy(cpu_gdt_table[cpu], cpu_gdt_table[0], GDT_SIZE); > - cpu_gdt_descr[cpu].size = GDT_SIZE; > + cpu_gdt_descr[cpu].size = GDT_SIZE - 1; > cpu_gdt_descr[cpu].address = (unsigned long)cpu_gdt_table[cpu]; indeed, good eyes! i'm wondering whether this could have caused any problems - since the limit was not a proper multiple of 8 minus 1, no selector value could have caused a descriptor to be loaded from the invalid byte. Ingo - 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/