Thread (3 messages) 3 messages, 3 authors, 2020-12-04

Re: [PATCH net] net/sched: fq_pie: initialize timer earlier in fq_pie_init()

From: Cong Wang <hidden>
Date: 2020-12-04 18:36:17

On Thu, Dec 3, 2020 at 10:41 AM Davide Caratti [off-list ref] 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 <redacted>
Reviewed-by: Cong Wang <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help