PERFORCE change 103168 for review
Roman Divacky
rdivacky at FreeBSD.org
Fri Aug 4 13:56:37 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103168
Change 103168 by rdivacky at rdivacky_witten on 2006/08/04 13:56:07
Check for the uaddr being in userspace. Otherwise return EFAULT via our fault handler.
Affected files ...
.. //depot/projects/soc2006/rdivacky_linuxolator/i386/i386/support.s#3 edit
Differences ...
==== //depot/projects/soc2006/rdivacky_linuxolator/i386/i386/support.s#3 (text+ko) ====
@@ -1553,6 +1553,8 @@
movl $futex_fault, PCB_ONFAULT(%eax)
movl 4(%esp), %eax
movl 8(%esp), %edx
+ cmpl $VM_MAXUSER_ADDRESS,%edx
+ ja futex_fault
xchgl %eax, (%edx)
movl 0xc(%esp), %edx
@@ -1570,6 +1572,8 @@
movl $futex_fault, PCB_ONFAULT(%eax)
movl 4(%esp), %eax
movl 8(%esp), %edx
+ cmpl $VM_MAXUSER_ADDRESS,%edx
+ ja futex_fault
MPLOCKED xaddl %eax, (%edx)
movl 0xc(%esp), %edx
@@ -1587,6 +1591,8 @@
movl $futex_fault, PCB_ONFAULT(%eax)
movl 4(%esp), %eax
movl 8(%esp), %edx
+ cmpl $VM_MAXUSER_ADDRESS,%edx
+ ja futex_fault
orl %eax, (%edx)
movl 0xc(%esp), %edx
@@ -1604,6 +1610,8 @@
movl $futex_fault, PCB_ONFAULT(%eax)
movl 4(%esp), %eax
movl 8(%esp), %edx
+ cmpl $VM_MAXUSER_ADDRESS,%edx
+ ja futex_fault
notl (%edx)
andl %eax, (%edx)
@@ -1622,6 +1630,8 @@
movl $futex_fault, PCB_ONFAULT(%eax)
movl 4(%esp), %eax
movl 8(%esp), %edx
+ cmpl $VM_MAXUSER_ADDRESS,%edx
+ ja futex_fault
xorl %eax, (%edx)
movl 0xc(%esp), %edx
More information about the p4-projects
mailing list