diff options
author | John Pittman <[email protected]> | 2018-08-23 13:35:55 -0400 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2018-10-16 14:27:03 -0400 |
commit | 22d4c291f58752d14efb8a185b772a3fc3e947d2 (patch) | |
tree | 55144e1410ade5a605d19b444a409cfc133af7de /scripts/bpf_helpers_doc.py | |
parent | cef6f55a9fb4f6d6f9df0f772aa64cf159997466 (diff) |
dm thin: use refcount_t for thin_c reference counting
The API surrounding refcount_t should be used in place of atomic_t
when variables are being used as reference counters. It can
potentially prevent reference counter overflows and use-after-free
conditions. In the dm thin layer, one such example is tc->refcount.
Change this from the atomic_t API to the refcount_t API to prevent
mentioned conditions.
Signed-off-by: John Pittman <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions