From: Florian Westphal Date: Thu, 23 Oct 2014 08:36:06 +0000 (+0200) Subject: netfilter: nf_log: account for size of NLMSG_DONE attribute X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~34^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dfa1dfe4d5e5e66a991321ab08afe69759d797a;p=pandora-kernel.git netfilter: nf_log: account for size of NLMSG_DONE attribute We currently neither account for the nlattr size, nor do we consider the size of the trailing NLMSG_DONE when allocating nlmsg skb. This can result in nflog to stop working, as __nfulnl_send() re-tries sending forever if it failed to append NLMSG_DONE (which will never work if buffer is not large enough). Reported-by: Houcheng Lin Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed