Re: [PATCH] padata: Replace delayed timer with immediate workqueue in padata_reorder
From: Herbert Xu
Date: Wed Jul 17 2019 - 23:31:46 EST
On Wed, Jul 17, 2019 at 02:32:27PM -0400, Daniel Jordan wrote:
>
> We'll crash when cpumask_next_wrap returns nr_cpumask_bits and later try to get
> the corresponding per-cpu queue.
The whole point of cpumask_next_wrap is to wrap around to the
beginning when it hits nr_cpumask_bits. So it cannot return
nr_cpumask_bits.
Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt