# RE: \[PATCH 06/15\] kernel: convert perf\_event\_context.refcount from atomic\_t to refcount\_t

- From: Reshetova, Elena \<hidden\>
- Date: 2017-07-07 10:18:22 
- List: cgroups
- Page: https://ratatoskr.run/cgroups/2017/07/124267
- Thread: https://ratatoskr.run/cgroups/2017/07/124139/t.md

```text
 Subject: Re: [PATCH 06/15] kernel: convert perf_event_context.refcount from
> atomic_t to refcount_t
> 
> On Fri, Jul 07, 2017 at 12:04:20PM +0300, 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.
> >
> > Signed-off-by: Elena Reshetova <redacted>
> > Signed-off-by: Hans Liljestrand <redacted>
> > Signed-off-by: Kees Cook <redacted>
> > Signed-off-by: David Windsor <redacted>
> 
> That's an invalid SoB chain.. can't do anything with these patches.

OK, will fix. 
```
