diff options
| author | 2026-06-04 22:46:21 +0000 | |
|---|---|---|
| committer | 2026-06-08 17:06:22 -0700 | |
| commit | 36be7d7c5ded0d70c3384e4730664e25b8d076fc (patch) | |
| tree | 381e6dbf94209c67b230a30bf87154aae6c87aac /scripts/Makefile.thinlto | |
| parent | ip6mr: Annotate access to mrt->mroute_do_{pim,assert,wrvifwhole}. (diff) | |
ip6mr: Use MAXMIFS in mr6_msgsize().
mr6_msgsize() calculates skb size needed for ip6mr_fill_mroute().
The size differs based on mrt->maxvif.
We will drop RTNL for ip6mr_rtm_getroute() and mrt->maxvif may
change under RCU.
To avoid -EMSGSIZE, let's calculate the size with the maximum
value of mrt->maxvif, MAXMIFS.
struct rtnexthop is 8 bytes and MAXMIFS is 32, so the maximum delta
is 256 bytes, which is small enough.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260604224712.3209821-4-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
