Re: [PATCH net v2 1/2] net/sched: act_gate: fix NULL dereference in tcf_gate_init()

2020-06-15 Thread Vladimir Oltean
Hi Davide, On Mon, 15 Jun 2020 at 22:31, Davide Caratti wrote: > > it is possible to see a KASAN use-after-free, immediately followed by a > NULL dereference crash, with the following command: > > # tc action add action gate index 3 cycle-time 1ns \ > > cycle-time-ext 1ns clocki

[PATCH net v2 1/2] net/sched: act_gate: fix NULL dereference in tcf_gate_init()

2020-06-15 Thread Davide Caratti
it is possible to see a KASAN use-after-free, immediately followed by a NULL dereference crash, with the following command: # tc action add action gate index 3 cycle-time 1ns \ > cycle-time-ext 1ns clockid CLOCK_TAI BUG: KASAN: use-after-free in tcf_action_init_1+0x8eb/0x960 W