[lkml]   [2008]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Bug 10489] Kprobe smoke test lockdep warning
On Tue, 2008-04-22 at 15:09 +0200, Peter Zijlstra wrote:
> On Mon, 2008-04-21 at 18:54 -0400, Masami Hiramatsu wrote:
> > Thank you for reporting.
> >
> > Actually, kprobes tries to fixup thread's flags in post_kprobe_handler
> > (which is called from kprobe_exceptions_notify) by
> > trace_hardirqs_fixup_flags(pt_regs->flags). However, even the irq flag
> > is set in pt_regs->flags, true hardirq is still off until returning
> > from do_debug. Thus, lockdep assumes that hardirq is off without annotation.

Ah, can you clarrify? pt_regs->flags will only be set when returning to
the original trap site? in that case we should not need a lockdep
annotation I guess, unless its allowed and exptected for the int3 site
to change IRQ state.

 \ /
  Last update: 2008-04-22 15:29    [W:0.037 / U:0.848 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site