cvs commit: src/sys/amd64/amd64 trap.c src/sys/i386/i386 trap.c
John Baldwin
jhb at FreeBSD.org
Thu Jul 26 15:32:56 UTC 2007
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
More information about the cvs-src
mailing list