From: Pablo Neira Ayuso Date: Thu, 13 Jan 2011 13:19:55 +0000 (+0100) Subject: netfilter: ctnetlink: fix loop in ctnetlink_get_conntrack() X-Git-Tag: v2.6.38-rc1~50^2~21^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f31e8d4982653b39fe312f9938be0f49dd9ab5fa;p=pandora-kernel.git netfilter: ctnetlink: fix loop in ctnetlink_get_conntrack() This patch fixes a loop in ctnetlink_get_conntrack() that can be triggered if you use the same socket to receive events and to perform a GET operation. Under heavy load, netlink_unicast() may return -EAGAIN, this error code is reserved in nfnetlink for the module load-on-demand. Instead, we return -ENOBUFS which is the appropriate error code that has to be propagated to user-space. Reported-by: Holger Eitzenberger Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed