Re: [PATCH v2 net] net: sched: fix possible crash in tcf_action_destroy()

2019-09-25 Thread David Miller
From: Eric Dumazet Date: Mon, 23 Sep 2019 15:18:57 -0700 > If the allocation done in tcf_exts_init() failed, > we end up with a NULL pointer in exts->actions. ... > Fixes: 90b73b77d08e ("net: sched: change action API to use array of pointers > to actions") > Signed-off-by: Eric Dumazet > Repor

[PATCH v2 net] net: sched: fix possible crash in tcf_action_destroy()

2019-09-23 Thread Eric Dumazet
If the allocation done in tcf_exts_init() failed, we end up with a NULL pointer in exts->actions. kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PREEMPT SMP KASAN CPU: 1 PID: 8198 Comm: syz-executor.3 Not tainted 5.3.0-rc8+ #0 Hardware name: