aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIvan Vecera <[email protected]>2023-04-20 18:36:33 +0000
committerJakub Kicinski <[email protected]>2023-04-22 03:25:57 +0000
commit2cc8a008d62f3c04eeb7ec6fe59e542802bb8df3 (patch)
tree60761f3535115504207adb049fd5fdb6d9a8b3ea /tools/perf/scripts/python
parentnet/sched: sch_fq: fix integer overflow of "credit" (diff)
downloadkernel-2cc8a008d62f3c04eeb7ec6fe59e542802bb8df3.tar.gz
kernel-2cc8a008d62f3c04eeb7ec6fe59e542802bb8df3.zip
net/sched: cls_api: Initialize miss_cookie_node when action miss is not used
Function tcf_exts_init_ex() sets exts->miss_cookie_node ptr only when use_action_miss is true so it assumes in other case that the field is set to NULL by the caller. If not then the field contains garbage and subsequent tcf_exts_destroy() call results in a crash. Ensure that the field .miss_cookie_node pointer is NULL when use_action_miss parameter is false to avoid this potential scenario. Fixes: 80cd22c35c90 ("net/sched: cls_api: Support hardware miss to tc action") Signed-off-by: Ivan Vecera <[email protected]> Reviewed-by: Pedro Tammela <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions