Date: Thu, 26 Jul 2007 15:32:55 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/amd64/amd64 trap.c src/sys/i386/i386 trap.c Message-ID: <200707261532.l6QFWtD3023835@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707261532.l6QFWtD3023835>