Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] x86: teach dump_task_regs() about the -8 offset.

This should fix multi-threaded core-files

Signed-off-by: stsp@aknet.ru
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Stas Sergeev and committed by
Linus Torvalds
557962a9 de9e007d

+3 -1
+3 -1
arch/i386/kernel/process.c
··· 554 554 struct pt_regs ptregs; 555 555 556 556 ptregs = *(struct pt_regs *) 557 - ((unsigned long)tsk->thread_info+THREAD_SIZE - sizeof(ptregs)); 557 + ((unsigned long)tsk->thread_info + 558 + /* see comments in copy_thread() about -8 */ 559 + THREAD_SIZE - sizeof(ptregs) - 8); 558 560 ptregs.xcs &= 0xffff; 559 561 ptregs.xds &= 0xffff; 560 562 ptregs.xes &= 0xffff;