commit | c1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9 | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Thu Oct 23 10:36:07 2014 +0200 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Fri Oct 24 14:32:27 2014 +0200 |
tree | 4e6015e76aba8411133cfbb5bcefd3fdbc0c496b | |
parent | 9dfa1dfe4d5e5e66a991321ab08afe69759d797a [diff] |
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>