mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
recompress_store() parses the type= parameter with three if statements checking for "idle", "huge", and "huge_idle". An unrecognized value silently falls through with mode left at 0, causing the recompression pass to run with no slot filter — processing all slots instead of the intended subset. Add a !mode check after the type parsing block to return -EINVAL for unrecognized values, consistent with the function's other parameter validation. Link: https://lore.kernel.org/20260407153027.42425-1-astellman@stellman-greene.com Signed-off-by: Andrew Stellman <astellman@stellman-greene.com> Suggested-by: Sergey Senozhatsky <senozhatsky@chromium.org> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
||
|---|---|---|
| .. | ||
| backend_842.c | ||
| backend_842.h | ||
| backend_deflate.c | ||
| backend_deflate.h | ||
| backend_lz4.c | ||
| backend_lz4.h | ||
| backend_lz4hc.c | ||
| backend_lz4hc.h | ||
| backend_lzo.c | ||
| backend_lzo.h | ||
| backend_lzorle.c | ||
| backend_lzorle.h | ||
| backend_zstd.c | ||
| backend_zstd.h | ||
| Kconfig | ||
| Makefile | ||
| zcomp.c | ||
| zcomp.h | ||
| zram_drv.c | ||
| zram_drv.h | ||