[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190828.155838.174372477469386140.davem@davemloft.net>
Date: Wed, 28 Aug 2019 15:58:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dcaratti@...hat.com
Cc: xiyou.wangcong@...il.com, jhs@...atatu.com, jiri@...nulli.us,
netdev@...r.kernel.org, pabeni@...hat.com, sbrivio@...hat.com,
shuali@...hat.com
Subject: Re: [PATCH net] net/sched: pfifo_fast: fix wrong dereference in
pfifo_fast_enqueue
From: Davide Caratti <dcaratti@...hat.com>
Date: Tue, 27 Aug 2019 23:18:53 +0200
> Now that 'TCQ_F_CPUSTATS' bit can be cleared, depending on the value of
> 'TCQ_F_NOLOCK' bit in the parent qdisc, we can't assume anymore that
> per-cpu counters are there in the error path of skb_array_produce().
> Otherwise, the following splat can be seen:
...
> Fix this by testing the value of 'TCQ_F_CPUSTATS' bit in 'qdisc->flags',
> before dereferencing 'qdisc->cpu_qstats'.
>
> Fixes: 8a53e616de29 ("net: sched: when clearing NOLOCK, clear TCQ_F_CPUSTATS, too")
> CC: Paolo Abeni <pabeni@...hat.com>
> CC: Stefano Brivio <sbrivio@...hat.com>
> Reported-by: Li Shuang <shuali@...hat.com>
> Signed-off-by: Davide Caratti <dcaratti@...hat.com>
Applied and queued up for v5.2 -stable, thanks.
Powered by blists - more mailing lists