From: Pablo Neira Ayuso Date: Mon, 24 Dec 2012 12:09:25 +0000 (+0100) Subject: netfilter: xt_hashlimit: fix race that results in duplicated entries X-Git-Tag: v3.8-rc3~8^2~14^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09181842b000344b1205801df3aa5b726c03cc62;p=pandora-kernel.git netfilter: xt_hashlimit: fix race that results in duplicated entries Two packets may race to create the same entry in the hashtable, double check if this packet lost race. This double checking only happens in the path of the packet that creates the hashtable for first time. Note that, with this patch, no packet drops occur if the race happens. Reported-by: Feng Gao Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed