[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150527.141108.991929705003103923.davem@davemloft.net>
Date: Wed, 27 May 2015 14:11:08 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org, jhs@...atatu.com
Subject: Re: [Patch net] net_sched: invoke ->attach() after setting
dev->qdisc
From: Cong Wang <xiyou.wangcong@...il.com>
Date: Tue, 26 May 2015 16:08:48 -0700
> For mq qdisc, we add per tx queue qdisc to root qdisc
> for display purpose, however, that happens too early,
> before the new dev->qdisc is finally set, this causes
> q->list points to an old root qdisc which is going to be
> freed right before assigning with a new one.
>
> Fix this by moving ->attach() after setting dev->qdisc.
>
> For the record, this fixes the following crash:
...
> For long term, we probably need to clean up the qdisc_graft() code
> in case it hides other bugs like this.
>
> Fixes: 95dc19299f74 ("pkt_sched: give visibility to mq slave qdiscs")
> Cc: Jamal Hadi Salim <jhs@...atatu.com>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied, and queued up for -stable, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists