Re: circular locking, mirred, 2.6.24.2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jarek Poplawski
Date: Saturday, March 8, 2008 - 1:46 am

On Fri, Mar 07, 2008 at 08:53:22AM -0500, jamal wrote:
...

But as you can see... you can't see these reports too often now.
Probably there are many people who are skeptical of lockdep like you.
But until it's an official tool you've to adjust and not scare users
with these reports (often called OOPSes!). The bad thing is that
currently any such report turns off lockdep checking for next possible
(false!?) problems.


That's why I'm trying now to find if making this more specific only
for ifb could suffice. This reverse locking order is used only on
sch_ingress -> act_mirred path, and it's mostly with ifb, which as you
said doesn't use this patch with it's ingress (at least currently).


I never counted this, but you're mostly right, and most (90%?) of these
reports are really false-positives. But, even 10 or 5% correctness is
IMHO worth of it. I still think one of the most bothering things in
linux for users are misterious lockups, and this could be even more
so with these fast multicore boxes now.

One of the recent right-positives I can remember can be found on the
list in "Fix SMP oops in pppol2tp driver". This was really a complex
thing (and there is still something to find). The funniest of all is
David diagnosed it fastest probably without studying this report too
much, but on the other hand, nobody had spotted this issue before
lockdep. Another such a good lockdep's work is checking for
flush_workqueue() abusing (recently in "lockdep trace from rc2."
netdev thread).


If you mean redirecting from ingress with act_mirred then of course.
I wrote earlier about eth0->ingress_redirected->eth1, eth1->
ingress_redirected->eth0 which would be right-positive IMHO. If
eth0->eth0 is legal this should be even more dangerous.

...

I think wrt ifb it's a false-positive too, that's why I din't try to
change locking but only add some info for lockdep. BTW, we shouldn't
forget such lockdep annotations are always under debugging config
options, and not intended to work (or use any resources) in production
or home boxes (at least until no need to write to kernel lists).
BTW#2, it seems this tcf_lock in act_mirred could need similar lockdep
treatment, but let's wait for Denys'es testing.


...But the beast is much smarter than me!

Regards,
Jarek P.

PS: sorry for delay, a little cold or something.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Sun Feb 24, 3:20 pm)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Mon Feb 25, 2:56 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Mon Feb 25, 3:48 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Mon Feb 25, 4:39 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Wed Mar 5, 3:45 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Thu Mar 6, 6:40 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Thu Mar 6, 6:57 am)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 6:59 am)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 7:27 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Thu Mar 6, 8:50 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Thu Mar 6, 10:56 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Thu Mar 6, 1:25 pm)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 1:44 pm)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 1:48 pm)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 1:56 pm)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Thu Mar 6, 2:40 pm)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Thu Mar 6, 3:12 pm)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 4:40 pm)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Thu Mar 6, 4:43 pm)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 5:09 pm)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Thu Mar 6, 5:15 pm)
Re: circular locking, mirred, 2.6.24.2, jamal, (Thu Mar 6, 5:25 pm)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Fri Mar 7, 12:51 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Fri Mar 7, 1:32 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Fri Mar 7, 2:31 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Fri Mar 7, 3:19 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Fri Mar 7, 3:48 am)
Re: circular locking, mirred, 2.6.24.2, jamal, (Fri Mar 7, 6:53 am)
Re: circular locking, mirred, 2.6.24.2, jamal, (Fri Mar 7, 7:58 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Sat Mar 8, 1:46 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Sat Mar 8, 1:58 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Sat Mar 8, 2:56 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Sat Mar 8, 3:16 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Sat Mar 8, 3:43 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Sat Mar 8, 3:52 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Sat Mar 8, 4:09 am)
Re: circular locking, mirred, 2.6.24.2, Jarek Poplawski, (Sat Mar 8, 5:02 am)
Re: circular locking, mirred, 2.6.24.2, Denys Fedoryshchenko, (Tue Mar 18, 5:46 pm)