public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kdump: kdump can't boot in this case
@ 2013-10-10  2:34 Xishi Qiu
  2013-10-10  2:58 ` [BUG] kdump won't work if invalid TSS fault happens in irq context Xishi Qiu
  0 siblings, 1 reply; 2+ messages in thread
From: Xishi Qiu @ 2013-10-10  2:34 UTC (permalink / raw)
  To: LKML

I write a module, and find kdump can't boot in this case.
kernel version is 3.12, Intel(R) Xeon(R) CPU	E5620

struct timer_list g_timer;

void tmrhnd_invtssfault(unsigned long data)
{
	long __res;
	printk(KERN_EMERG "invalid TSS fault in interrupt context.\n");
	__asm__ volatile("int $0x0A" : "=a"(__res):);
}

{
	...
	init_timer(&g_timer);
	g_timer.expires = jiffies + 10;
	g_timer.data = 0;
	g_timer.function = tmrhnd_invtssfault;
	add_timer(&g_timer);
	...
}

If access NULL pointer instead of "__asm__ volatile("int $0x0A" : "=a"(__res):);" 
in tmrhnd_invtssfault(), kdump can boot.
And if not use timer, just do "__asm__ volatile("int $0x0A" : "=a"(__res):);" only
once in module, kdump can boot too.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-10  2:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-10  2:34 kdump: kdump can't boot in this case Xishi Qiu
2013-10-10  2:58 ` [BUG] kdump won't work if invalid TSS fault happens in irq context Xishi Qiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox