aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorStefan Nuernberger <[email protected]>2018-09-17 19:46:53 +0200
committerDavid S. Miller <[email protected]>2018-09-17 19:37:46 -0700
commit076ed3da0c9b2f88d9157dbe7044a45641ae369e (patch)
treef40d60c2bccd9cee2a8b592955b0c1b500c76b01 /tools/perf/scripts/python/export-to-sqlite.py
parent0020f5c807ef67954d9210eea0ba17a6134cdf7d (diff)
net/ipv4: defensive cipso option parsing
commit 40413955ee26 ("Cipso: cipso_v4_optptr enter infinite loop") fixed a possible infinite loop in the IP option parsing of CIPSO. The fix assumes that ip_options_compile filtered out all zero length options and that no other one-byte options beside IPOPT_END and IPOPT_NOOP exist. While this assumption currently holds true, add explicit checks for zero length and invalid length options to be safe for the future. Even though ip_options_compile should have validated the options, the introduction of new one-byte options can still confuse this code without the additional checks. Signed-off-by: Stefan Nuernberger <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Simon Veith <[email protected]> Cc: [email protected] Acked-by: Paul Moore <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions