summaryrefslogtreecommitdiff
path: root/net/key
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-01 14:17:29 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-24 10:15:30 -0700
commit0e709dd7cc938ae1f4d783e9e389c13df152a657 (patch)
treef31b046a25cab7996e98e923864e69a11f554c32 /net/key
parentf216289025f02e99628d6783f251f3a9d1966cad (diff)
downloadlwn-0e709dd7cc938ae1f4d783e9e389c13df152a657.tar.gz
lwn-0e709dd7cc938ae1f4d783e9e389c13df152a657.zip
netfilter: x_tables: validate all offsets and sizes in a rule
commit 13631bfc604161a9d69cd68991dff8603edd66f9 upstream. Validate that all matches (if any) add up to the beginning of the target and that each match covers at least the base structure size. The compat path should be able to safely re-use the function as the structures only differ in alignment; added a BUILD_BUG_ON just in case we have an arch that adds padding as well. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions