]> git.baikalelectronics.ru Git - kernel.git/commit
act_ife: fix a potential use-after-free
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 3 Sep 2018 18:08:15 +0000 (11:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 19:18:25 +0000 (12:18 -0700)
commit82a8c38a2b4f0a3193db9c783bd6148a8c1ef51e
treeb5522e1f480bd5166de5844f71e51c2eaecdca48
parentd23db0833357e88457d53574987a9b3d935f5f95
act_ife: fix a potential use-after-free

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: c8e4759039b0 ("introduce IFE action")
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ife.c