* [PATCH] UML - Remove bogus __NR_sigreturn check
@ 2004-12-03 21:46 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2004-12-03 21:46 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, Blaisorblade
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.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: 2.6.9/arch/um/kernel/tt/syscall_user.c
===================================================================
--- 2.6.9.orig/arch/um/kernel/tt/syscall_user.c 2004-12-03 12:46:55.000000000 -0500
+++ 2.6.9/arch/um/kernel/tt/syscall_user.c 2004-12-03 12:50:39.000000000 -0500
@@ -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");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-03 19:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03 21:46 [PATCH] UML - Remove bogus __NR_sigreturn check Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®