Re: [PATCH] crypto: scompress - initialize per-CPU variables on each CPU

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

 



On Fri, Apr 12, 2019 at 05:14:15PM +0200, Sebastian Andrzej Siewior wrote:
> In commit 71052dcf4be70 ("crypto: scompress - Use per-CPU struct instead
> multiple variables") I accidentally initialized multiple times the memory on a
> random CPU. I should have initialize the memory on every CPU like it has
> been done earlier. I didn't notice this because the scheduler didn't
> move the task to another CPU.
> Guenter managed to do that and the code crashed as expected.
> 
> Allocate / free per-CPU memory on each CPU.
> 
> Fixes: 71052dcf4be70 ("crypto: scompress - Use per-CPU struct instead multiple variables")
> Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
> ---
> Guenter, this should cure that.
> 
>  crypto/scompress.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 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