[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180518.135312.896740897180570132.davem@davemloft.net>
Date: Fri, 18 May 2018 13:53:12 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: pabeni@...hat.com
Cc: netdev@...r.kernel.org, jhs@...atatu.com, xiyou.wangcong@...il.com,
jiri@...nulli.us, liuhangbin@...il.com, jkosina@...e.cz
Subject: Re: [PATCH net] net: sched: red: avoid hashing NULL child
From: Paolo Abeni <pabeni@...hat.com>
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 <liuhangbin@...il.com>
> Fixes: 49b499718fa1 ("net: sched: make default fifo qdiscs appear in the dump")
> Signed-off-by: Paolo Abeni <pabeni@...hat.com>
Applied and queued up for -stable, thanks Paolo.
Powered by blists - more mailing lists