Re: [PATCH] powerpc/mm: Use refcount_t for refcount

2021-11-26 Thread Christophe Leroy
Le 09/08/2019 à 14:36, Michael Ellerman a écrit : Chuhong Yuan writes: Reference counters are preferred to use refcount_t instead of atomic_t. This is because the implementation of refcount_t can prevent overflows and detect possible use-after-free. So convert atomic_t ref counters to refcou

Re: [PATCH] powerpc/mm: Use refcount_t for refcount

2019-08-09 Thread Chuhong Yuan
On Fri, Aug 9, 2019 at 8:36 PM Michael Ellerman wrote: > > Chuhong Yuan writes: > > Reference counters are preferred to use refcount_t instead of > > atomic_t. > > This is because the implementation of refcount_t can prevent > > overflows and detect possible use-after-free. > > So convert atomic_

Re: [PATCH] powerpc/mm: Use refcount_t for refcount

2019-08-09 Thread Michael Ellerman
Chuhong Yuan writes: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan Thanks