Date: Fri, 4 Aug 2006 13:56:33 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103168 for review Message-ID: <200608041356.k74DuXm9090379@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103168 Change 103168 by rdivacky@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608041356.k74DuXm9090379>