Re: [PATCH net] net/sched: act_sample: fix NULL dereference in the data path

2018-09-14 Thread David Miller
From: Davide Caratti 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 >

Re: [PATCH net] net/sched: act_sample: fix NULL dereference in the data path

2018-09-14 Thread Jiri Pirko
Fri, Sep 14, 2018 at 12:03:18PM CEST, dcara...@redhat.com wrote: >Matteo reported the following splat, testing the datapath of TC 'sample': > > BUG: KASAN: null-ptr-deref in tcf_sample_act+0xc4/0x310 > Read of size 8 at addr by task nc/433 > > CPU: 0 PID: 433 Comm: nc Not tainted