public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] zram: fix four error-handling and input-validation bugs
@ 2026-04-07 12:38 Andrew Stellman
  2026-04-07 12:38 ` [PATCH 1/4] zram: complete parent bio on allocation failure in read_from_bdev_async() Andrew Stellman
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andrew Stellman @ 2026-04-07 12:38 UTC (permalink / raw)
  To: Minchan Kim, Sergey Senozhatsky; +Cc: linux-kernel, Andrew Stellman

Four independent fixes for zram_drv.c:

1. read_from_bdev_async() silently drops the parent bio on allocation
   failure, leaving I/O hanging. Complete it with BLK_STS_IOERR.

2. zram_bio_discard() returns without bio_endio() on the unaligned
   single-fragment early-exit path.

3. recompress_store() accepts unrecognized type= values silently,
   running recompression with no slot filter (mode == 0).

4. algorithm_params_store() allows mutation of compression parameters
   after device initialization, unlike all peer sysfs store functions.

Andrew Stellman (4):
  zram: complete parent bio on allocation failure in
    read_from_bdev_async()
  zram: call bio_endio() on early return in zram_bio_discard()
  zram: reject unrecognized type= values in recompress_store()
  zram: add init_done() guard to algorithm_params_store()

 drivers/block/zram/zram_drv.c | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-04-07 14:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 12:38 [PATCH 0/4] zram: fix four error-handling and input-validation bugs Andrew Stellman
2026-04-07 12:38 ` [PATCH 1/4] zram: complete parent bio on allocation failure in read_from_bdev_async() Andrew Stellman
2026-04-07 14:15   ` Sergey Senozhatsky
2026-04-07 12:38 ` [PATCH 2/4] zram: call bio_endio() on early return in zram_bio_discard() Andrew Stellman
2026-04-07 14:14   ` Sergey Senozhatsky
2026-04-07 12:38 ` [PATCH 3/4] zram: reject unrecognized type= values in recompress_store() Andrew Stellman
2026-04-07 14:18   ` Sergey Senozhatsky
2026-04-07 12:38 ` [PATCH 4/4] zram: add init_done() guard to algorithm_params_store() Andrew Stellman
2026-04-07 14:14   ` Sergey Senozhatsky

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