aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaolo Abeni <[email protected]>2023-08-01 10:47:28 +0200
committerPaolo Abeni <[email protected]>2023-08-01 10:47:29 +0200
commit630e0afacd4beb8ad3081774169632b5b84e653d (patch)
treede2a6c904cdd372f1e23d5b80a764461024241ec /tools/perf/scripts/python
parent05e1d8bdb276068069d3de65e488700280029e20 (diff)
parente20e75017c5a3dbc4a3cc505d8ad57487b500bbb (diff)
Merge branch 'net-sched-improve-class-lifetime-handling'
Pedro Tammela says: ==================== net/sched: improve class lifetime handling Valis says[0]: ============ Three classifiers (cls_fw, cls_u32 and cls_route) always copy tcf_result struct into the new instance of the filter on update. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free. ============ Turns out these could have been spotted easily with proper warnings. Improve the current class lifetime with wrappers that check for overflow/underflow. While at it add an extack for when a class in use is deleted. [0] https://lore.kernel.org/all/[email protected]/ ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions