linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* TRACE_IRQFLAGS_SUPPORT seems incomplete
@ 2019-05-28 21:00 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2019-05-28 21:00 UTC (permalink / raw)
  To: linux-um, Richard Weinberger; +Cc: j

Hi,

Now I've tried for a while ... but can't figure it out.

It looks like TRACE_IRQFLAGS_SUPPORT is incomplete, we're getting lots
of warnings like

[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:4220 check_flags+0xa4/0x255
[    0.000000] DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
[    0.000000] Call Trace:
[    0.000000]  [<60047243>] show_stack+0x13b/0x155
[    0.000000]  [<60521206>] dump_stack+0x2a/0x2c
[    0.000000]  [<600652af>] __warn+0x10c/0x151
[    0.000000]  [<6006538b>] warn_slowpath_fmt+0x97/0x99
[    0.000000]  [<600a3355>] check_flags+0xa4/0x255
[    0.000000]  [<600a554e>] lock_acquire+0x6c/0x1a0
[    0.000000]  [<60539298>] _raw_spin_lock+0x30/0x83
[    0.000000]  [<600b6d41>] handle_edge_irq+0x23/0x13d
[    0.000000]  [<600b2b17>] generic_handle_irq+0x23/0x27
[    0.000000]  [<600454ab>] do_IRQ+0x39/0x54
[    0.000000]  [<6004556d>] sigio_handler+0xa7/0x111
[    0.000000]  [<6005badf>] sig_handler_common+0xa9/0xbf
[...]
[    0.000000] possible reason: unannotated irqs-off.


I've tried to put the right trace_irqflags_{on,off} calls in places like
sig_handler_common(), but I can only seem to shift the warning around.

Has anyone looked at this? You need to enable CONFIG_PROVE_LOCKING,
CONFIG_DEBUG_LOCKDEP and CONFIG_TRACE_IRQFLAGS for this to show up, but
I think Jouni had some others that might be related, without having
enabled CONFIG_DEBUG_LOCKDEP.

Thanks,
johannes


_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-28 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-28 21:00 TRACE_IRQFLAGS_SUPPORT seems incomplete Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).