From: Florian Westphal Date: Thu, 23 Oct 2014 08:36:07 +0000 (+0200) Subject: netfilter: nfnetlink_log: fix maximum packet length logged to userspace X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~34^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9;p=pandora-kernel.git netfilter: nfnetlink_log: fix maximum packet length logged to userspace don't try to queue payloads > 0xffff - NLA_HDRLEN, it does not work. The nla length includes the size of the nla struct, so anything larger results in u16 integer overflow. This patch is similar to 9cefbbc9c8f9abe (netfilter: nfnetlink_queue: cleanup copy_range usage). Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed