summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2026-09-03 11:02:59 +0300
committerJakub Kicinski <kuba@kernel.org>2026-09-04 15:17:41 -0700
commit5bd9e4e7cdaa03879e9b73b12ab52cceb1edd55b (patch)
tree4cfd7f3abfda5333f5d91dcdf97e43ea01190e47 /tools/perf/scripts/python/stackcollapse.py
parentfb3088dc5811a27dcc4775eaf44bd85ade265762 (diff)
nexthop: Initialize extack in remove_nh_grp_entry()
remove_nh_grp_entry() prints the extack message when a listener fails to replace the reduced nexthop group. However, extack is not initialized and listeners are not required to set a message when returning an error. Neither netdevsim nor mlxsw do so when an allocation fails, resulting in the dereference of an uninitialized stack pointer. Fix by zero-initializing extack, as was done in commit 6347c5314cee ("nexthop: initialize extack in nh_res_bucket_migrate()"). Fixes: 833a1065eeb1 ("nexthop: Emit a notification when a nexthop group is reduced") Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260903080259.10378-1-idosch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions