]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If the trap number stored in the trapframe is corrupted into a negative
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 26 Jul 2007 15:32:55 +0000 (15:32 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 26 Jul 2007 15:32:55 +0000 (15:32 +0000)
commitde016534a83db04eac461602000998c45dedd0d4
tree0b19dedf62b87ed1358747159c21b30b3647727e
parentbb5ba44f82812f0b90acb96a0fc2c286f710ec19
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)
sys/amd64/amd64/trap.c
sys/i386/i386/trap.c