summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDaehyeon Ko <4ncienth@gmail.com>2026-10-02 13:51:00 +0900
committerJakub Kicinski <kuba@kernel.org>2026-10-06 16:23:09 -0700
commitd3daa33c7af92e38f2274bbd2576f58bfbaf89e6 (patch)
treed19cdf804c8281bc4c71285f469ef4475fef6e7e /tools/perf/scripts/python
parent4f4afc07dcb2edd4f9afa36595373f8cdb9b58c2 (diff)
downloadlinux-d3daa33c7af92e38f2274bbd2576f58bfbaf89e6.tar.gz
linux-d3daa33c7af92e38f2274bbd2576f58bfbaf89e6.zip
ipv4: stop route notification sizing when nexthop group shrinks
Commit 680aea08e78c ("net: ipv4: Emit notification when fib hardware flags are changed") added an RCU-only fib_nlmsg_size() call for asynchronous hardware flag notifications. fib_nlmsg_size() checks fib_info_num_path() before each iteration, then fib_info_nhc() independently reloads nh->nh_grp. If RTM_NEWNEXTHOP replaces a group with fewer paths between those loads, fib_info_nhc() returns NULL and fib_nexthop_nlmsg_size() dereferences it. Stop sizing when the indexed path is absent. Nexthop groups are dense, so the current snapshot has no later path. Fixes: 680aea08e78c ("net: ipv4: Emit notification when fib hardware flags are changed") Cc: stable@vger.kernel.org Signed-off-by: Daehyeon Ko <4ncienth@gmail.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/1054fa46165bba1b473782fa41367804aa908e86.1790915964.git.4ncienth@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions