diff options
| author | Robert Shearman <[email protected]> | 2015-03-06 10:47:00 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-06 15:19:06 -0500 |
| commit | f8d54afc4c7a4c41deaa43fbcfffc2976094d342 (patch) | |
| tree | bd55bad628a3ddcbc94d6d75131f318732aec60a /tools/perf/scripts/python/syscall-counts.py | |
| parent | 5c4b934f89defcc158d1ceda8294b1e534197c75 (diff) | |
mpls: Properly validate RTA_VIA payload length
If the nla length is less than 2 then the nla data could be accessed
beyond the accessible bounds. So ensure that the nla is big enough to
at least read the via_family before doing so. Replace magic value of
2.
Fixes: 03c0566542f4 ("mpls: Basic support for adding and removing routes")
Cc: Eric W. Biederman <[email protected]>
Signed-off-by: Robert Shearman <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions