[PATCH net-next] net: sched: null actions array pointer before releasing action

2018-09-03 Thread Vlad Buslov
Currently, tcf_action_delete() nulls actions array pointer after putting and deleting it. However, if tcf_idr_delete_index() returns an error, pointer to action is not set to null. That results it being released second time in error handling code of tca_action_gd(). Kasan error: [ 807.367755] =

Re: [PATCH net-next] net: sched: null actions array pointer before releasing action

2018-09-03 Thread Cong Wang
On Mon, Sep 3, 2018 at 12:05 AM Vlad Buslov wrote: > > Currently, tcf_action_delete() nulls actions array pointer after putting > and deleting it. However, if tcf_idr_delete_index() returns an error, > pointer to action is not set to null. That results it being released second > time in error hand

Re: [PATCH net-next] net: sched: null actions array pointer before releasing action

2018-09-03 Thread David Miller
From: Cong Wang Date: Mon, 3 Sep 2018 11:18:43 -0700 > On Mon, Sep 3, 2018 at 12:05 AM Vlad Buslov wrote: >> >> Currently, tcf_action_delete() nulls actions array pointer after putting >> and deleting it. However, if tcf_idr_delete_index() returns an error, >> pointer to action is not set to nul