netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nf_conntrack_h323: Fix locking in process_urq
@ 2016-01-15 21:55 Sebastian Pöhn
  2016-01-15 22:42 ` Florian Westphal
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Pöhn @ 2016-01-15 21:55 UTC (permalink / raw)
  To: netdev

nf_ct_remove_expectations has to be called under nf_conntrack_expect_lock
    
Signed-off-by: Sebastian Pöhn <sebastian.poehn@gmail.com>

---

diff --git a/net/netfilter/nf_conntrack_h323_main.c b/net/netfilter/nf_conntrack_h323_main.c
index 9511af0..d477375 100644
--- a/net/netfilter/nf_conntrack_h323_main.c
+++ b/net/netfilter/nf_conntrack_h323_main.c
@@ -1518,7 +1518,9 @@ static int process_urq(struct sk_buff *skb, struct nf_conn *ct,
        }
 
        /* Clear old expect */
+       spin_lock_bh(&nf_conntrack_expect_lock);
        nf_ct_remove_expectations(ct);
+       spin_unlock_bh(&nf_conntrack_expect_lock);
        info->sig_port[dir] = 0;
        info->sig_port[!dir] = 0;
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-15 22:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 21:55 nf_conntrack_h323: Fix locking in process_urq Sebastian Pöhn
2016-01-15 22:42 ` Florian Westphal
2016-01-15 22:57   ` Sebastian Pöhn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).