Re: ctnetlink loop

From: David Miller
Date: Fri Dec 10 2010 - 17:01:24 EST


From: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
Date: Thu, 09 Dec 2010 11:56:13 +0100

> netfilter: ctnetlink: fix loop in ctnetlink_get_conntrack()
>
> From: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
>
> 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 <holger@xxxxxxxxxxxxxxxx>
> Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>

Since Patrick seems to be inactive I have applied this directly
to net-2.6, thanks guys!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/