diff options
| author | Jakub Kicinski <[email protected]> | 2022-03-09 10:29:14 -0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-03-10 20:15:23 -0800 |
| commit | 155fb43b70b5fce341347a77d1af2765d1e8fbb8 (patch) | |
| tree | f2284583cd179aa85c97b4f0439c6af6d4414387 /tools/perf/scripts/python/flamegraph.py | |
| parent | 5d26cff5bdbebdf98ba48217c078ff102536f134 (diff) | |
net: limit altnames to 64k total
Property list (altname is a link "property") is wrapped
in a nlattr. nlattrs length is 16bit so practically
speaking the list of properties can't be longer than
that, otherwise user space would have to interpret
broken netlink messages.
Prevent the problem from occurring by checking the length
of the property list before adding new entries.
Reported-by: George Shuklin <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions