Linux Container Development
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
To: Alexey Dobriyan <adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	netfilter-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 16/33] netns ct: per-netns event cache
Date: Tue, 09 Sep 2008 08:12:27 +0200	[thread overview]
Message-ID: <48C613CB.5000303@trash.net> (raw)
In-Reply-To: <1220842990-30500-16-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Alexey Dobriyan wrote:
> Heh, last minute proof-reading of this patch made me think,
> that this is actually unneeded, simply because "ct" pointers will be
> different for different conntracks in different netns, just like they
> are different in one netns.
> 
> Not so sure anymore.

Its necessary because the cache needs to be flushed on netns exit
and this is only allowed while its not in use anymore.

I don't see anything in this series actually making sure nothing
hits the cache on exit though. Am I missing something?

Additionally (I might have missed a following patch moving it
out though) this doesn't belong in the netns exit path:

void nf_conntrack_cleanup(struct net *net)
{
	rcu_assign_pointer(ip_ct_attach, NULL);
...
	rcu_assign_pointer(nf_ct_destroy, NULL);

  parent reply	other threads:[~2008-09-09  6:12 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <48C01046.2070704@trash.net>
     [not found] ` <48C01046.2070704-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-09-08  3:02   ` [PATCH 01/33] nf_conntrack_sip: de-static helper pointers Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 02/33] nf_conntrack_gre: more locking around keymap list Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 03/33] nf_conntrack_gre: nf_ct_gre_keymap_flush() fixlet Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 04/33] Fix {ip,6}_route_me_harder() in netns Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 05/33] netns ct: per-netns expectations Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 06/33] netns ct: per-netns unconfirmed list Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 07/33] netns ct: pass netns pointer to nf_conntrack_in() Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 08/33] netns ct: pass netns pointer to L4 protocol's ->error hook Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 09/33] netns ct: per-netns /proc/net/nf_conntrack, /proc/net/stat/nf_conntrack Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 10/33] netns ct: per-netns /proc/net/nf_conntrack_expect Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 11/33] netns ct: per-netns /proc/net/ip_conntrack, /proc/net/stat/ip_conntrack, /proc/net/ip_conntrack_expect Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 12/33] netns ct: export netns list Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 13/33] netns ct: unregister helper in every netns Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 14/33] netns ct: cleanup after L3 and L4 proto unregister " Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 15/33] netns ct: pass conntrack to nf_conntrack_event_cache() not skb Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 16/33] netns ct: per-netns event cache Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 17/33] netns ct: final init_net tweaks Alexey Dobriyan
2008-09-08  3:02   ` Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 19/33] netns ct: per-netns /proc/net/stat/nf_conntrack, /proc/net/stat/ip_conntrack Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 20/33] netns ct: per-netns net.netfilter.nf_conntrack_count sysctl Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 21/33] netns ct: per-netns net.netfilter.nf_conntrack_checksum sysctl Alexey Dobriyan
2008-09-08  3:02   ` [PATCH 22/33] netns ct: per-netns net.netfilter.nf_conntrack_log_invalid sysctl Alexey Dobriyan
2008-09-08  3:03   ` Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 24/33] netns ct: SIP conntracking in netns Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 25/33] netns ct: H323 " Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 26/33] netns ct: GRE " Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 27/33] netns ct: PPTP " Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 28/33] netns nat: fix ipt_MASQUERADE " Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 29/33] netns nat: per-netns NAT table Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 30/33] netns nat: per-netns bysource hash Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 31/33] netns ct: fixup DNAT in netns Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 32/33] netns nat: PPTP NAT " Alexey Dobriyan
2008-09-08  3:03   ` [PATCH 33/33] Enable netfilter " Alexey Dobriyan
     [not found] ` <1220842990-30500-3-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-3-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:39     ` [PATCH 03/33] nf_conntrack_gre: nf_ct_gre_keymap_flush() fixlet Patrick McHardy
     [not found] ` <1220842990-30500-4-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-4-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:44     ` [PATCH 04/33] Fix {ip,6}_route_me_harder() in netns Patrick McHardy
     [not found] ` <1220842990-30500-5-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-5-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:49     ` [PATCH 05/33] netns ct: per-netns expectations Patrick McHardy
     [not found]   ` <48C60E6E.5080905@trash.net>
     [not found]     ` <48C60E6E.5080905-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-09-09  7:07       ` Alexey Dobriyan
     [not found]     ` <20080909070726.GD5786@x200.localdomain>
     [not found]       ` <20080909070726.GD5786-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-09-09  7:10         ` Patrick McHardy
     [not found] ` <1220842990-30500-6-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-6-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:50     ` [PATCH 06/33] netns ct: per-netns unconfirmed list Patrick McHardy
     [not found] ` <1220842990-30500-7-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-7-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:52     ` [PATCH 07/33] netns ct: pass netns pointer to nf_conntrack_in() Patrick McHardy
     [not found] ` <1220842990-30500-8-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-8-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:54     ` [PATCH 08/33] netns ct: pass netns pointer to L4 protocol's ->error hook Patrick McHardy
     [not found] ` <1220842990-30500-9-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-9-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:56     ` [PATCH 09/33] netns ct: per-netns /proc/net/nf_conntrack, /proc/net/stat/nf_conntrack Patrick McHardy
     [not found] ` <1220842990-30500-10-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-10-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:57     ` [PATCH 10/33] netns ct: per-netns /proc/net/nf_conntrack_expect Patrick McHardy
     [not found] ` <1220842990-30500-11-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-11-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:59     ` [PATCH 11/33] netns ct: per-netns /proc/net/ip_conntrack, /proc/net/stat/ip_conntrack, /proc/net/ip_conntrack_expect Patrick McHardy
     [not found] ` <1220842990-30500-12-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-12-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  5:59     ` [PATCH 12/33] netns ct: export netns list Patrick McHardy
     [not found] ` <1220842990-30500-13-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-13-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  6:01     ` [PATCH 13/33] netns ct: unregister helper in every netns Patrick McHardy
     [not found] ` <1220842990-30500-14-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-14-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  6:03     ` [PATCH 14/33] netns ct: cleanup after L3 and L4 proto unregister " Patrick McHardy
     [not found] ` <1220842990-30500-15-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-15-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  6:04     ` [PATCH 15/33] netns ct: pass conntrack to nf_conntrack_event_cache() not skb Patrick McHardy
     [not found] ` <1220842990-30500-16-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-16-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  6:12     ` Patrick McHardy [this message]
     [not found]       ` <20080909070742.GE5786@x200.localdomain>
     [not found]         ` <20080909070742.GE5786-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-09-09  7:07           ` [PATCH 16/33] netns ct: per-netns event cache Patrick McHardy
     [not found]         ` <48C6209F.6090804@trash.net>
     [not found]           ` <48C6209F.6090804-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-09-09  7:16             ` Patrick McHardy
     [not found]       ` <48C613CB.5000303-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-09-09  7:07         ` Alexey Dobriyan
     [not found] ` <1220842990-30500-17-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-17-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-09  7:20     ` [PATCH 17/33] netns ct: final init_net tweaks Patrick McHardy
     [not found]   ` <48C623CA.9060803@trash.net>
     [not found]     ` <48C623CA.9060803-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-09-09  7:32       ` Alexey Dobriyan
     [not found]     ` <20080909073245.GA7307@x200.localdomain>
     [not found]       ` <20080909073245.GA7307-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-09-09  7:51         ` Patrick McHardy
     [not found]       ` <48C62B1C.7070104@trash.net>
     [not found]         ` <48C62B1C.7070104-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-09-13 10:45           ` Alexey Dobriyan
2008-09-13 10:48           ` [PATCH v2 1/6] netns ct: per-netns statistics Alexey Dobriyan
2008-09-13 10:49           ` [PATCH v2 2/6] netns ct: per-netns /proc/net/stat/nf_conntrack , /proc/net/stat/ip_conntrack Alexey Dobriyan
2008-09-13 10:51           ` [PATCH v2 3/6] netns ct: per-netns net.netfilter.nf_conntrack_count sysctl Alexey Dobriyan
2008-09-13 10:52           ` [PATCH v2 4/6] netns ct: per-netns net.netfilter.nf_conntrack_checksum sysctl Alexey Dobriyan
2008-09-13 10:53           ` [PATCH v2 5/6] netns ct: per-netns net.netfilter.nf_conntrack_log_invalid sysctl Alexey Dobriyan
2008-09-13 10:55           ` [PATCH v2 6/6] netns ct: per-netns conntrack accounting Alexey Dobriyan
     [not found]         ` <20080913104515.GA7440@x200.localdomain>
     [not found]           ` <20080913104515.GA7440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-09-27  0:00             ` [PATCH 17/33] netns ct: final init_net tweaks Alexey Dobriyan
     [not found]           ` <20080927000000.GB10489@x200.localdomain>
     [not found]             ` <20080927000000.GB10489-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-09-28 10:31               ` Patrick McHardy
     [not found]         ` <20080913104836.GB7440@x200.localdomain>
     [not found]           ` <20080913104836.GB7440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-10-02  7:58             ` [PATCH v2 1/6] netns ct: per-netns statistics Patrick McHardy
     [not found]         ` <20080913104951.GC7440@x200.localdomain>
     [not found]           ` <20080913104951.GC7440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-10-02  7:59             ` [PATCH v2 2/6] netns ct: per-netns /proc/net/stat/nf_conntrack , /proc/net/stat/ip_conntrack Patrick McHardy
     [not found]         ` <20080913105105.GD7440@x200.localdomain>
     [not found]           ` <20080913105105.GD7440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-10-02  8:00             ` [PATCH v2 3/6] netns ct: per-netns net.netfilter.nf_conntrack_count sysctl Patrick McHardy
     [not found]         ` <20080913105239.GE7440@x200.localdomain>
     [not found]           ` <20080913105239.GE7440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-10-02  8:02             ` [PATCH v2 4/6] netns ct: per-netns net.netfilter.nf_conntrack_checksum sysctl Patrick McHardy
     [not found]         ` <20080913105319.GF7440@x200.localdomain>
     [not found]           ` <20080913105319.GF7440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-10-02  8:04             ` [PATCH v2 5/6] netns ct: per-netns net.netfilter.nf_conntrack_log_invalid sysctl Patrick McHardy
     [not found]         ` <20080913105509.GG7440@x200.localdomain>
     [not found]           ` <20080913105509.GG7440-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-09-26 23:59             ` [PATCH v2 7/6] netns ct: final netns tweaks Alexey Dobriyan
2008-10-02  8:06             ` [PATCH v2 6/6] netns ct: per-netns conntrack accounting Patrick McHardy
     [not found]           ` <20080926235901.GA10489@x200.localdomain>
     [not found]             ` <20080926235901.GA10489-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-10-02  8:11               ` [PATCH v2 7/6] netns ct: final netns tweaks Patrick McHardy
     [not found] ` <1220842990-30500-24-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-24-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  8:52     ` [PATCH 24/33] netns ct: SIP conntracking in netns Patrick McHardy
     [not found] ` <1220842990-30500-25-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-25-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  8:52     ` [PATCH 25/33] netns ct: H323 " Patrick McHardy
     [not found] ` <1220842990-30500-26-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-26-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  8:53     ` [PATCH 26/33] netns ct: GRE " Patrick McHardy
     [not found] ` <1220842990-30500-27-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-27-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  8:54     ` [PATCH 27/33] netns ct: PPTP " Patrick McHardy
     [not found] ` <1220842990-30500-28-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-28-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  9:06     ` [PATCH 28/33] netns nat: fix ipt_MASQUERADE " Patrick McHardy
     [not found] ` <1220842990-30500-29-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-29-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  9:08     ` [PATCH 29/33] netns nat: per-netns NAT table Patrick McHardy
2008-10-02  9:09     ` Patrick McHardy
     [not found] ` <1220842990-30500-30-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-30-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  9:09     ` [PATCH 30/33] netns nat: per-netns bysource hash Patrick McHardy
     [not found] ` <1220842990-30500-31-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-31-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  9:10     ` [PATCH 31/33] netns ct: fixup DNAT in netns Patrick McHardy
     [not found] ` <1220842990-30500-32-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-32-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  9:11     ` [PATCH 32/33] netns nat: PPTP NAT " Patrick McHardy
     [not found] ` <1220842990-30500-33-git-send-email-adobriyan@gmail.com>
     [not found]   ` <1220842990-30500-33-git-send-email-adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-02  9:12     ` [PATCH 33/33] Enable netfilter " Patrick McHardy
     [not found]   ` <48E49068.5070305@trash.net>
     [not found]     ` <48E49068.5070305-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-10-02  9:51       ` Alexey Dobriyan
     [not found]     ` <20081002095112.GA31919@x200.localdomain>
     [not found]       ` <20081002095112.GA31919-2ev+ksY9ol182hYKe6nXyg@public.gmane.org>
2008-10-02 10:00         ` Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C613CB.5000303@trash.net \
    --to=kaber-dcujhnylwpneowh0uzbu5w@public.gmane.org \
    --cc=adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=netfilter-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox