diff options
author | Ming Lei <[email protected]> | 2021-10-25 10:54:23 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-11-02 14:43:12 -0600 |
commit | 6f1637795f2827d36aec9e0246487f5852e8abf7 (patch) | |
tree | a91d5e4e8ea97e1cc5a4f04ce9c313260ac38b79 /tools/perf/util/trace-event-scripting.c | |
parent | 494dbee341e7a02529ce776ee9a5e0b7733ca280 (diff) |
zram: fix race between zram_reset_device() and disksize_store()
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/[email protected]/T/#mc617f865a3fa2778e40f317ddf48f6447c20c073
Reported-by: Luis Chamberlain <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions