From: David Miller <davem@davemloft.net>
To: jarkao2@gmail.com
Cc: m0sia@m0sia.ru, kaber@trash.net, netdev@vger.kernel.org
Subject: Re: [PATCH v2] pkt_sched: Change misleading code in class delete.
Date: Sun, 15 Mar 2009 20:00:32 -0700 (PDT) [thread overview]
Message-ID: <20090315.200032.194674635.davem@davemloft.net> (raw)
In-Reply-To: <20090315123511.GA2713@ami.dom.local>
From: Jarek Poplawski <jarkao2@gmail.com>
Date: Sun, 15 Mar 2009 13:35:11 +0100
> While looking for a possible reason of bugzilla report on HTB oops:
> http://bugzilla.kernel.org/show_bug.cgi?id=12858
> I found the code in htb_delete calling htb_destroy_class on zero
> refcount is very misleading: it can suggest this is a common path, and
> destroy is called under sch_tree_lock. Actually, this can never happen
> like this because before deletion cops->get() is done, and after
> delete a class is still used by tclass_notify. The class destroy is
> always called from cops->put(), so without sch_tree_lock.
>
> This doesn't mean much now (since 2.6.27) because all vulnerable calls
> were moved from htb_destroy_class to htb_delete, but there was a bug
> in older kernels. The same change is done for other classful scheds,
> which, it seems, didn't have similar locking problems here.
>
> Reported-by: m0sia <m0sia@m0sia.ru>
> Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Applied, thanks a lot Jarek.
prev parent reply other threads:[~2009-03-16 3:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-14 14:45 [PATCH] pkt_sched: Change misleading code in class delete Jarek Poplawski
2009-03-15 12:35 ` [PATCH v2] " Jarek Poplawski
2009-03-16 3:00 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090315.200032.194674635.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jarkao2@gmail.com \
--cc=kaber@trash.net \
--cc=m0sia@m0sia.ru \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).