提交 05f7b7b3 编写于 作者: M Michal Miroslaw 提交者: David S. Miller

[NETFILTER]: nfnetlink_log: fix use after free

Paranoia: instance_put() might have freed the inst pointer when we
spin_unlock_bh().
Signed-off-by: NMichal Miroslaw <mirq-linux@rere.qmqm.pl>
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ed32abea
...@@ -393,8 +393,8 @@ static void nfulnl_timer(unsigned long data) ...@@ -393,8 +393,8 @@ static void nfulnl_timer(unsigned long data)
spin_lock_bh(&inst->lock); spin_lock_bh(&inst->lock);
__nfulnl_send(inst); __nfulnl_send(inst);
instance_put(inst);
spin_unlock_bh(&inst->lock); spin_unlock_bh(&inst->lock);
instance_put(inst);
} }
/* This is an inline function, we don't really care about a long /* This is an inline function, we don't really care about a long
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册