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: Jakub Kicinski <kuba@kernel.org>
Date: 2020-12-04 22:18:15

On Fri, 4 Dec 2020 10:35:07 -0800 Cong Wang wrote:
On Thu, Dec 3, 2020 at 10:41 AM Davide Caratti [off-list ref] wrote:
quoted
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:  
...
quoted
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>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help