On 4/12/19 8:14 AM, 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 <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
---
Guenter, this should cure that.

Yes, it does.

Tested-by: Guenter Roeck <[email protected]>

Tested with the patch applied on top of next-20190412, running all
345 qemu boot tests. No boot failures or new warnings observed.
To be sure, I ran the arm64 boot tests twice.

Guenter

Reply via email to