Messages in this thread | | | Date | Wed, 22 Feb 2017 09:55:34 +1100 | From | Dave Chinner <> | Subject | Re: [PATCH 1/7] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t |
| |
On Tue, Feb 21, 2017 at 05:49:01PM +0200, Elena Reshetova wrote: > 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.
I'm missing something: how do you overflow a log item object reference count?
Cheers,
Dave. -- Dave Chinner david@fromorbit.com
| |