netfilter: nfnetlink_log: fix maximum packet length logged to userspace
authorFlorian Westphal <fw@strlen.de>
Thu, 23 Oct 2014 08:36:07 +0000 (10:36 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 24 Oct 2014 12:32:27 +0000 (14:32 +0200)
commitc1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9
tree4e6015e76aba8411133cfbb5bcefd3fdbc0c496b
parent9dfa1dfe4d5e5e66a991321ab08afe69759d797a
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 <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_log.c