On Mon, Feb 20, 2017 at 3:29 AM, Elena ReshetovaThe patch is ok, the refcounters are not in the critical path.
<elena.reshetova@xxxxxxxxx> wrote:
refcount_t type and corresponding API should beManfred, is this okay by you? I think this should go via -mm...
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 <elena.reshetova@xxxxxxxxx>
Signed-off-by: Hans Liljestrand <ishkamiel@xxxxxxxxx>
Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
Signed-off-by: David Windsor <dwindsor@xxxxxxxxx>