diff options
author | 2021-10-05 14:04:17 -0700 | |
---|---|---|
committer | 2021-10-06 15:09:46 +0100 | |
commit | d34367991933d28bd7331f67a759be9a8c474014 (patch) | |
tree | 76422a7776e5ba6948a3a293d5fe42feb8ebade1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gve: Properly handle errors in gve_assign_qpl (diff) | |
download | linux-dev-d34367991933d28bd7331f67a759be9a8c474014.tar.xz linux-dev-d34367991933d28bd7331f67a759be9a8c474014.zip |
rtnetlink: fix if_nlmsg_stats_size() under estimation
rtnl_fill_statsinfo() is filling skb with one mandatory if_stats_msg structure.
nlmsg_put(skb, pid, seq, type, sizeof(struct if_stats_msg), flags);
But if_nlmsg_stats_size() never considered the needed storage.
This bug did not show up because alloc_skb(X) allocates skb with
extra tailroom, because of added alignments. This could very well
be changed in the future to have deterministic behavior.
Fixes: 10c9ead9f3c6 ("rtnetlink: add new RTM_GETSTATS message to dump link stats")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Roopa Prabhu <roopa@nvidia.com>
Acked-by: Roopa Prabhu <roopa@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions