diff options
author | Florian Westphal <fw@strlen.de> | 2014-10-23 10:36:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-24 14:32:27 +0200 |
commit | c1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9 (patch) | |
tree | 4e6015e76aba8411133cfbb5bcefd3fdbc0c496b /tools | |
parent | 9dfa1dfe4d5e5e66a991321ab08afe69759d797a (diff) | |
download | linux-stable-c1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9.tar.gz linux-stable-c1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9.tar.bz2 linux-stable-c1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9.zip |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions