From owner-cvs-all@FreeBSD.ORG Thu Jul 26 15:32:56 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17A1F16A418; Thu, 26 Jul 2007 15:32:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E4CB813C457; Thu, 26 Jul 2007 15:32:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6QFWtNT023836; Thu, 26 Jul 2007 15:32:55 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6QFWtD3023835; Thu, 26 Jul 2007 15:32:55 GMT (envelope-from jhb) Message-Id: <200707261532.l6QFWtD3023835@repoman.freebsd.org> From: John Baldwin Date: Thu, 26 Jul 2007 15:32:55 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/amd64/amd64 trap.c src/sys/i386/i386 trap.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2007 15:32:56 -0000 jhb 2007-07-26 15:32:55 UTC FreeBSD src repository Modified files: sys/amd64/amd64 trap.c sys/i386/i386 trap.c Log: If the trap number stored in the trapframe is corrupted into a negative value, then we would use a negative index into the trap_msg[] array resulting in a nested page fault. Make the 'type' variable holding the trap number unsigned to avoid this. MFC after: 2 weeks Approved by: re (rwatson) Revision Changes Path 1.319 +4 -2 src/sys/amd64/amd64/trap.c 1.307 +4 -2 src/sys/i386/i386/trap.c