Skip to contentSkip to conversation

UML - Remove bogus __NR_sigreturn check

PATCH New Jeff Dike 1 participant 1 message Dec 3, 2004 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 UML - Remove bogus __NR_sigreturn check

Before Bodo's signal fixes and my signal delivery rework, it was possible for a process to execute UML code by running the default signal restorer. This is no longer possible, so this check can be removed from the sanity test for UML accidentally tracing itself.

arch/um/kernel/tt/syscall_user.c +1 -2
Index: 2.6.9/arch/um/kernel/tt/syscall_user.c
===================================================================
@@ -57,8 +57,7 @@
 
 	UPT_SYSCALL_NR(TASK_REGS(task)) = PT_SYSCALL_NR(proc_regs);
 
-	if((syscall != __NR_sigreturn) &&
-	   ((unsigned long *) PT_IP(proc_regs) >= &_stext) && 
+	if(((unsigned long *) PT_IP(proc_regs) >= &_stext) && 
 	   ((unsigned long *) PT_IP(proc_regs) <= &_etext))
 		tracer_panic("I'm tracing myself and I can't get out");