From: Paolo Abeni <[email protected]>
Date: Fri, 18 May 2018 14:51:44 +0200

> Hangbin reported an Oops triggered by the syzkaller qdisc rules:
 ...
> When a red qdisc is updated with a 0 limit, the child qdisc is left
> unmodified, no additional scheduler is created in red_change(),
> the 'child' local variable is rightfully NULL and must not add it
> to the hash table.
> 
> This change addresses the above issue moving qdisc_hash_add() right
> after the child qdisc creation. It additionally removes unneeded checks
> for noop_qdisc.
> 
> Reported-by: Hangbin Liu <[email protected]>
> Fixes: 49b499718fa1 ("net: sched: make default fifo qdiscs appear in the 
> dump")
> Signed-off-by: Paolo Abeni <[email protected]>

Applied and queued up for -stable, thanks Paolo.

Reply via email to