public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Scheduling in interrupt and call trace
@ 2007-03-19 12:37 railroad seeker
  2007-03-19 12:41 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: railroad seeker @ 2007-03-19 12:37 UTC (permalink / raw)
  To: linux-kernel

Hi all:

I am tracking a driver bug in arm linux when I got a scheduling in
interrupt context
panic.

I traced into kernel schedule() function, and found that "schedulingin
interrupt" is a
check point when the process scheduler is invoked, and the callstack
reveals that
the scheduler is invoked due to semaphore down().

After that, the program counter must located in BUG(), that is something like
"(void *)0 = 0" if we really do scheduling in interrupt contxt, and
should cause
the kernel to panic. However, what i got is that the latest program
counter is located within the do_IRQ() context when the kernel was
crashed . But it
seems that the stack trace is a kernel stack of process context since
the bottom of the stack is ret_from_syscall. (I have not enabled the
frame pointer when compiling the kernel, instead, I back traced by
manually inspect each 32 bit value
from the output of objdump) , and I think that the latest PC should
point to the next instruction of "(void *) 0 = 0".

Is there any possibility with which we got this incorrect information,
 or I have
misunderstanding about "kernel system to interrupt context switch?

Thanks.

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

end of thread, other threads:[~2007-03-19 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 12:37 Scheduling in interrupt and call trace railroad seeker
2007-03-19 12:41 ` Russell King

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