[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpWf4CS_fR69JQfa2pEV9Yd26p=neZ+nu_1rOLvbbn=TiA@mail.gmail.com>
Date: Fri, 4 Dec 2020 10:35:07 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Davide Caratti <dcaratti@...hat.com>
Cc: Jamal Hadi Salim <jhs@...atatu.com>, Jiri Pirko <jiri@...nulli.us>,
Jakub Kicinski <kuba@...nel.org>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
Mohit Bhasi <mohitbhasi1998@...il.com>,
Leslie Monis <lesliemonis@...il.com>
Subject: Re: [PATCH net] net/sched: fq_pie: initialize timer earlier in fq_pie_init()
On Thu, Dec 3, 2020 at 10:41 AM Davide Caratti <dcaratti@...hat.com> wrote:
>
> with the following tdc testcase:
>
> 83be: (qdisc, fq_pie) Create FQ-PIE with invalid number of flows
>
> as fq_pie_init() fails, fq_pie_destroy() is called to clean up. Since the
> timer is not yet initialized, it's possible to observe a splat like this:
...
> fix it moving timer_setup() before any failure, like it was done on 'red'
> with former commit 608b4adab178 ("net_sched: initialize timer earlier in
> red_init()").
>
> Fixes: ec97ecf1ebe4 ("net: sched: add Flow Queue PIE packet scheduler")
> Signed-off-by: Davide Caratti <dcaratti@...hat.com>
Reviewed-by: Cong Wang <cong.wang@...edance.com>
Powered by blists - more mailing lists