linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] zram: fix backing device setup issue
@ 2024-12-09 16:57 Kairui Song
  2024-12-09 16:57 ` [PATCH v2 1/2] zram: refuse to use zero sized block device as backing device Kairui Song
  2024-12-09 16:57 ` [PATCH v2 2/2] zram: fix uninitialized ZRAM not releasing " Kairui Song
  0 siblings, 2 replies; 3+ messages in thread
From: Kairui Song @ 2024-12-09 16:57 UTC (permalink / raw)
  To: linux-mm
  Cc: Minchan Kim, Sergey Senozhatsky, Andrew Morton, linux-block,
	linux-kernel, Kairui Song

From: Kairui Song <kasong@tencent.com>

This series fixes two bugs of backing device setting:

- ZRAM should reject using a zero sized (or the uninitialized ZRAM
  device itself) as the backing device.
- Fix backing device leaking when removing a uninitialized ZRAM
  device.

V1: https://lore.kernel.org/linux-mm/20241204180224.31069-1-ryncsn@gmail.com/
Update from V1:
- Collect Review-by.
- Update fix for issue 2 as suggested by Sergey Senozhatsky.

Kairui Song (2):
  zram: refuse to use zero sized block device as backing device
  zram: fix uninitialized ZRAM not releasing backing device

 drivers/block/zram/zram_drv.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

-- 
2.47.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-09 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-09 16:57 [PATCH v2 0/2] zram: fix backing device setup issue Kairui Song
2024-12-09 16:57 ` [PATCH v2 1/2] zram: refuse to use zero sized block device as backing device Kairui Song
2024-12-09 16:57 ` [PATCH v2 2/2] zram: fix uninitialized ZRAM not releasing " Kairui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox