From owner-freebsd-current@FreeBSD.ORG Fri Aug 1 15:04:53 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5670037B404 for ; Fri, 1 Aug 2003 15:04:53 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8742443FBF for ; Fri, 1 Aug 2003 15:04:52 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h71M4hax007070; Fri, 1 Aug 2003 18:04:43 -0400 (EDT) Date: Fri, 1 Aug 2003 18:04:43 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Thorsten Greiner In-Reply-To: <20030801215529.GA745@tybalt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Julian Elischer cc: current@freebsd.org Subject: Re: NVidia glx stuff dies in sysarch(I386_SET_LDT, ...) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 22:04:53 -0000 On Fri, 1 Aug 2003, Thorsten Greiner wrote: > * Thorsten Greiner [2003-08-01 23:47]: > > I will test wether the problem still occurs with version 1.84 of > > sys_machdep.c and let you know. > > Yup, reverting to 1.84 unbreaks this for me. Looking at the changes > made it appears to me that the check > > if (uap->start < NLDT || uap->num <= 0) > return (EINVAL);i > > causes this, because NLDT is 6 and the NVidia stuff passes > uap->start == 6 to this call. It can't use 6. FreeBSD reserves 0-16 for its own use. I think the bug was in the old code allowing this to happen... -- Dan Eischen