Re: [Patch net] act_ife: fix a potential use-after-free

2018-09-04 Thread David Miller
From: Cong Wang Date: Mon, 3 Sep 2018 11:08:15 -0700 > Immediately after module_put(), user could delete this > module, so e->ops could be already freed before we call > e->ops->release(). > > Fix this by moving module_put() after ops->release(). > > Fixes: ef6980b6becb ("introduce IFE action"

[Patch net] act_ife: fix a potential use-after-free

2018-09-03 Thread Cong Wang
Immediately after module_put(), user could delete this module, so e->ops could be already freed before we call e->ops->release(). Fix this by moving module_put() after ops->release(). Fixes: ef6980b6becb ("introduce IFE action") Cc: Jamal Hadi Salim Signed-off-by: Cong Wang --- net/sched/act_i