[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081124.160547.137623297.davem@davemloft.net>
Date: Mon, 24 Nov 2008 16:05:47 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: kaber@...sh.net
Cc: netdev@...r.kernel.org, netfilter-devel@...r.kernel.org
Subject: Re: netfilter 01/03: ctnetlink: fix conntrack creation race
From: Patrick McHardy <kaber@...sh.net>
Date: Mon, 24 Nov 2008 14:44:36 +0100 (MET)
> netfilter: ctnetlink: fix conntrack creation race
>
> Conntrack creation through ctnetlink has two races:
>
> - the timer may expire and free the conntrack concurrently, causing an
> invalid memory access when attempting to put it in the hash tables
>
> - an identical conntrack entry may be created in the packet processing
> path in the time between the lookup and hash insertion
>
> Hold the conntrack lock between the lookup and insertion to avoid this.
>
> Reported-by: Zoltan Borbely <bozo@...rews.hu>
> Signed-off-by: Patrick McHardy <kaber@...sh.net>
>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists