patch-2.1.130 linux/arch/i386/kernel/ptrace.c

Next file: linux/arch/i386/mm/fault.c
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.129/linux/arch/i386/kernel/ptrace.c linux/arch/i386/kernel/ptrace.c
@@ -476,7 +476,7 @@
 			  if(addr == (long) &dummy->u_debugreg[4]) return -EIO;
 			  if(addr == (long) &dummy->u_debugreg[5]) return -EIO;
 			  if(addr < (long) &dummy->u_debugreg[4] &&
-			     ((unsigned long) data) >= 0xbffffffd) return -EIO;
+			     ((unsigned long) data) >= TASK_SIZE-3) return -EIO;
 			  
 			  ret = -EIO;
 			  if(addr == (long) &dummy->u_debugreg[7]) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov