summaryrefslogtreecommitdiff
path: root/mm/mincore.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-01 14:17:29 +0200
committerBen Hutchings <ben@decadent.org.uk>2016-08-22 22:38:30 +0100
commit592d29f29d4b6f38879a51d8428bb61c7d430e44 (patch)
tree94d556ad39744a99666d430190e4d4f01f8a5b6a /mm/mincore.c
parent35ea6762cc084057963af3833c77cf2906461b75 (diff)
downloadlwn-592d29f29d4b6f38879a51d8428bb61c7d430e44.tar.gz
lwn-592d29f29d4b6f38879a51d8428bb61c7d430e44.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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'mm/mincore.c')
0 files changed, 0 insertions, 0 deletions