[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180914.084709.404281793502117027.davem@davemloft.net>
Date: Fri, 14 Sep 2018 08:47:09 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dcaratti@...hat.com
Cc: mcroce@...hat.com, jhs@...atatu.com, xiyou.wangcong@...il.com,
jiri@...nulli.us, netdev@...r.kernel.org
Subject: Re: [PATCH net] net/sched: act_sample: fix NULL dereference in the
data path
From: Davide Caratti <dcaratti@...hat.com>
Date: Fri, 14 Sep 2018 12:03:18 +0200
> Matteo reported the following splat, testing the datapath of TC 'sample':
...
> tcf_sample_act() tried to update its per-cpu stats, but tcf_sample_init()
> forgot to allocate them, because tcf_idr_create() was called with a wrong
> value of 'cpustats'. Setting it to true proved to fix the reported crash.
>
> Reported-by: Matteo Croce <mcroce@...hat.com>
> Fixes: 65a206c01e8e ("net/sched: Change act_api and act_xxx modules to use IDR")
> Fixes: 5c5670fae430 ("net/sched: Introduce sample tc action")
> Tested-by: Matteo Croce <mcroce@...hat.com>
> Signed-off-by: Davide Caratti <dcaratti@...hat.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists