[PATCH v2 0/2] zram: fix zram issues reported by sashiko

From: Sergey Senozhatsky

Date: Wed Jul 29 2026 - 01:06:27 EST


Sashiko drove by and reported [1] a couple of zram issues:
a possible BUG_ON() in zlib code due to missing winbits range
validation and one possible NULL-ptr dereference in zcomp.
Both are low risk yet still worth fixing.

[1] https://sashiko.dev/#/patchset/20260728092935.31139-1-haoqinhuang7@xxxxxxxxx

v1 - >v2:
-- pr_err() invalid deflate winbits

Sergey Senozhatsky (2):
zram: set default primary compressor in zram_destroy_comps()
zram: validate deflate params

drivers/block/zram/backend_deflate.c | 10 +++++++++-
drivers/block/zram/zram_drv.c | 3 +--
2 files changed, 10 insertions(+), 3 deletions(-)

--
2.55.0.508.g3f0d502094-goog