]> git.hungrycats.org Git - linux/commit
ipv6: do not warn on route notification size race
authorDaehyeon Ko <4ncienth@gmail.com>
Thu, 8 Oct 2026 05:29:23 +0000 (14:29 +0900)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 Oct 2026 18:32:36 +0000 (11:32 -0700)
commitc97426ec649d99596d8969e1a052c16b14b7b485
tree63c8f114e845faceccaec8ee8450a6f0b1773faf
parente02a5b6588161673ef75a4bc5cdfb62bd493374d
ipv6: do not warn on route notification size race

fib6_info_hw_flags_set() sizes the skb with rt6_nlmsg_size() and later
fills it with rt6_fill_node().  With nexthop compatibility mode enabled,
a concurrent replacement can grow the group between these independent
snapshots.  rt6_fill_node() can then legitimately return -EMSGSIZE, so
the warning does not prove a sizing bug.

Remove the warning.  The existing error path still frees the skb and
reports the error to listeners.

Fixes: 907eea486888 ("net: ipv6: Emit notification when fib hardware flags are changed")
Reported-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/netdev/20261007114003.GA1011260@shredder/
Suggested-by: Ido Schimmel <idosch@nvidia.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daehyeon Ko <4ncienth@gmail.com>
Link: https://patch.msgid.link/4012604727e5ba80b69ccd4d08796511397ddaef.1791423190.git.4ncienth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/route.c