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

2018-03-16 Thread Jiri Pirko
Fri, Mar 16, 2018 at 12:00:55AM CET, dcara...@redhat.com wrote: >when the following command > > # tc action add action tunnel_key unset index 100 > >is run for the first time, and tunnel_key_init() fails to allocate struct >tcf_tunnel_key_params, tunnel_key_release() dereferences NULL pointers.

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

2018-03-15 Thread Davide Caratti
when the following command # tc action add action tunnel_key unset index 100 is run for the first time, and tunnel_key_init() fails to allocate struct tcf_tunnel_key_params, tunnel_key_release() dereferences NULL pointers. This causes the following error: BUG: unable to handle kernel NULL