Thread (13 messages) 13 messages, 3 authors, 2021-10-22

Re: [PATCH V2 1/4] zram: fix race between zram_reset_device() and disksize_store()

From: Luis Chamberlain <mcgrof@kernel.org>
Date: 2021-10-21 23:03:15
Also in: lkml

On Wed, Oct 20, 2021 at 09:55:45AM +0800, Ming Lei wrote:
When the ->init_lock is released in zram_reset_device(), disksize_store()
can come in and try to allocate meta, but zram_reset_device() is freeing
free meta, so cause races.

Link: https://lore.kernel.org/linux-block/20210927163805.808907-1-mcgrof@kernel.org/T/#mc617f865a3fa2778e40f317ddf48f6447c20c073 (local)
Reported-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Ming Lei <redacted>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

  Luis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help