aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-01 14:17:29 +0200
committerSasha Levin <sasha.levin@oracle.com>2016-07-12 08:48:33 -0400
commit3b94ada46f61938d9c49aa198fe560b1f8faea79 (patch)
tree0a16668250a51bbdc5b8b6334f0341a8f0423185 /net/ipv4
parent7ba6a7dfbf7c37aa1984db170a015dded04adc81 (diff)
netfilter: x_tables: validate all offsets and sizes in a rule
[ Upstream commit 13631bfc604161a9d69cd68991dff8603edd66f9 ] 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: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions