Bug 217986 - ODEBUG: integrate with ref_tracker
Summary: ODEBUG: integrate with ref_tracker
Status: NEW
Alias: None
Product: Memory Management
Classification: Unclassified
Component: Sanitizers (show other bugs)
Hardware: All Linux
: P3 enhancement
Assignee: MM/Sanitizers virtual assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-07 12:09 UTC by Dmitry Vyukov
Modified: 2023-10-07 12:09 UTC (History)
3 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Dmitry Vyukov 2023-10-07 12:09:24 UTC
include/linux/ref_tracker.h provides ref_tracker/ref_tracker_dir types that can be used to detect a number of bug types related to reference counters (leaks, double frees, etc) with actionable diagnostics.

There may be value in integrating ref_tracker/ref_tracker_dir with debug objects. At least to detect when active ref_tracker/ref_tracker_dir are freed. Currently there is ref_tracker_dir_exit() that needs to be called manually. And there does not seem to be a function for checking freeing of active ref_tracker objects.

Note You need to log in before you can comment on or make changes to this bug.