Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audit: convert audit_watch.count from atomic_t to refcount_t
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova <[email protected]> Signed-off-by: Hans Liljestrand <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: David Windsor <[email protected]> [PM: fix subject line, add #include] Signed-off-by: Paul Moore <[email protected]>
- Loading branch information