Re: [PATCH] padata: Convert from atomic_t to refcount_t on parallel_data->refcnt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 20, 2021 at 11:05:11AM -0400, Daniel Jordan wrote:
> From: Xiyu Yang <xiyuyang19@xxxxxxxxxxxx>
> 
> refcount_t type and corresponding API can protect refcounters from
> accidental underflow and overflow and further use-after-free situations.
> 
> Signed-off-by: Xiyu Yang <xiyuyang19@xxxxxxxxxxxx>
> Signed-off-by: Xin Tan <tanxin.ctf@xxxxxxxxx>
> Acked-by: Daniel Jordan <daniel.m.jordan@xxxxxxxxxx>
> ---
> 
> This seems not to have made it to the lists even though they were
> originally cc'd.  Reposting.
> 
>  include/linux/padata.h | 3 ++-
>  kernel/padata.c        | 8 ++++----
>  2 files changed, 6 insertions(+), 5 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux