diff options
| author | Florian Westphal <fw@strlen.de> | 2016-04-01 14:17:27 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-04-14 00:30:37 +0200 |
| commit | 7ed2abddd20cf8f6bd27f65bd218f26fa5bf7f44 (patch) | |
| tree | 28bbf09d58ac4eb90e1912e6f16d0bc7809516f7 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | netfilter: x_tables: add compat version of xt_check_entry_offsets (diff) | |
| download | linux-7ed2abddd20cf8f6bd27f65bd218f26fa5bf7f44.tar.gz linux-7ed2abddd20cf8f6bd27f65bd218f26fa5bf7f44.zip | |
netfilter: x_tables: check standard target size too
We have targets and standard targets -- the latter carries a verdict.
The ip/ip6tables validation functions will access t->verdict for the
standard targets to fetch the jump offset or verdict for chainloop
detection, but this happens before the targets get checked/validated.
Thus we also need to check for verdict presence here, else t->verdict
can point right after a blob.
Spotted with UBSAN while testing malformed blobs.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
