Re: [PATCH net 4/5] net/sched: fix NULL dereference in the error path of tcf_sample_init()

2018-03-16 Thread Jiri Pirko
Fri, Mar 16, 2018 at 12:00:56AM CET, dcara...@redhat.com wrote: >when the following command > > # tc action add action sample rate 100 group 100 index 100 > >is run for the first time, and psample_group_get(100) fails to create a >new group, tcf_sample_cleanup() calls psample_group_put(NULL), thus

[PATCH net 4/5] net/sched: fix NULL dereference in the error path of tcf_sample_init()

2018-03-15 Thread Davide Caratti
when the following command # tc action add action sample rate 100 group 100 index 100 is run for the first time, and psample_group_get(100) fails to create a new group, tcf_sample_cleanup() calls psample_group_put(NULL), thus causing the following error: BUG: unable to handle kernel NULL