From: Eric Dumazet <hidden> Date: 2021-10-05 01:05:17
From: Eric Dumazet <edumazet@google.com>
bridge_fill_linkxstats() is using nla_reserve_64bit().
We must use nla_total_size_64bit() instead of nla_total_size()
for corresponding data structure.
Fixes: 1080ab95e3c7 ("net: bridge: add support for IGMP/MLD stats and export them via netlink")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Nikolay Aleksandrov <redacted>
Cc: Vivien Didelot <redacted>
---
net/bridge/br_netlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Eric Dumazet <hidden> Date: 2021-10-05 01:05:22
From: Eric Dumazet <edumazet@google.com>
Commit de1799667b00 ("net: bridge: add STP xstats")
added an additional nla_reserve_64bit() in br_fill_linkxstats(),
but forgot to update br_get_linkxstats_size() accordingly.
This can trigger the following in rtnl_stats_get()
WARN_ON(err == -EMSGSIZE);
Fixes: de1799667b00 ("net: bridge: add STP xstats")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Vivien Didelot <redacted>
Cc: Nikolay Aleksandrov <redacted>
---
net/bridge/br_netlink.c | 1 +
1 file changed, 1 insertion(+)
From: Nikolay Aleksandrov <hidden> Date: 2021-10-05 09:03:50
On 05/10/2021 04:05, Eric Dumazet wrote:
quoted hunk
From: Eric Dumazet <edumazet@google.com>
bridge_fill_linkxstats() is using nla_reserve_64bit().
We must use nla_total_size_64bit() instead of nla_total_size()
for corresponding data structure.
Fixes: 1080ab95e3c7 ("net: bridge: add support for IGMP/MLD stats and export them via netlink")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Nikolay Aleksandrov <redacted>
Cc: Vivien Didelot <redacted>
---
net/bridge/br_netlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Nikolay Aleksandrov <hidden> Date: 2021-10-05 09:04:34
On 05/10/2021 04:05, Eric Dumazet wrote:
quoted hunk
From: Eric Dumazet <edumazet@google.com>
Commit de1799667b00 ("net: bridge: add STP xstats")
added an additional nla_reserve_64bit() in br_fill_linkxstats(),
but forgot to update br_get_linkxstats_size() accordingly.
This can trigger the following in rtnl_stats_get()
WARN_ON(err == -EMSGSIZE);
Fixes: de1799667b00 ("net: bridge: add STP xstats")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Vivien Didelot <redacted>
Cc: Nikolay Aleksandrov <redacted>
---
net/bridge/br_netlink.c | 1 +
1 file changed, 1 insertion(+)