

>From Badari Pulavarty 

Without this sysrq-t shows the same backtrace for all processes on x86-64



 arch/x86_64/kernel/traps.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff -puN arch/x86_64/kernel/traps.c~x86_64-03 arch/x86_64/kernel/traps.c
--- 25/arch/x86_64/kernel/traps.c~x86_64-03	2003-12-23 23:55:21.000000000 -0800
+++ 25-akpm/arch/x86_64/kernel/traps.c	2003-12-23 23:55:21.000000000 -0800
@@ -218,8 +218,12 @@ void show_stack(struct task_struct *tsk,
 	// debugging aid: "show_stack(NULL, NULL);" prints the
 	// back trace for this cpu.
 
-	if(rsp==NULL)
-		rsp=(unsigned long*)&rsp;
+	if (rsp == NULL) {
+		if (tsk)
+			rsp = (unsigned long *)tsk->thread.rsp;
+		else
+			rsp = (unsigned long *)&rsp;
+	}
 
 	stack = rsp;
 	for(i=0; i < kstack_depth_to_print; i++) {

_
