[lvc-project] [PATCH] isofs: limit empty zisofs blocks to their uncompressed size

Fedor Pchelkin pchelkin at ispras.ru
Sat Nov 14 13:08:27 MSK 2026


On Thu, 12. Nov 17:35, Mikhail Dmitrichenko wrote:
> When a zisofs block is smaller than a page, the empty-block path in
> zisofs_uncompress_block() zeroes the rest of the page and returns that
> length. zisofs_fill_pages() then advances past the page without reading
> the remaining blocks, returning zeros instead of their contents.
> 
> For example, with 64 KiB pages and 32 KiB zisofs blocks, an empty first
> block should zero only the first half of the page. Instead, it zeroes
> the entire page and returns 64 KiB, so the second block is never read.
> 
> Commit 68d4d3e78150 ("isofs: fix out-of-bounds page array access on empty
> zisofs block") accounted for poffset but left this older problem in
> place. It was pointed out by Sashiko while reviewing a 5.10 backport.
> 
> Limit the zeroed range and returned length to one uncompressed block
> and the available output space. Only mark a folio uptodate when the
> range reaches its end. zisofs_fill_pages() already zeroes the tail and
> marks the partially filled folio uptodate at EOF.
> 
> Fixes: 59bc055211b8 ("zisofs: Implement reading of compressed files when PAGE_CACHE_SIZE > compress block size")
> Cc: stable at vger.kernel.org
> Link: https://sashiko.dev/#/patchset/20261105083209.922-1-mdmitrichenko%40astralinux.ru
> Signed-off-by: Mikhail Dmitrichenko <mdmitrichenko at astralinux.ru>
> ---

Просьба направить только в lvc-patches at linuxtesting.org серию из двух
патчей - исходного на фикс CVE и текущего патча - применимую к требуемым
lvc-веткам.  Там где исходный фикс на CVE уже есть, понадобится только
текущий патч (в применимом виде).



More information about the lvc-project mailing list