Re: [PATCH] btrfs: Fix avail_in bytes for s390 zlib HW compression path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2024-12-12 at 14:50 +0100, Mikhail Zaslonko wrote:
> Since the input data length passed to zlib_compress_folios() can be
> arbitrary, always setting strm.avail_in to a multiple of PAGE_SIZE
> may
> cause read-in bytes to exceed the input range. Currently this
> triggers
> an assert in btrfs_compress_folios() on the debug kernel. But it may
> potentially lead to data corruption.
> Fix strm.avail_in calculation for S390 hardware acceleration path.
> 
> Signed-off-by: Mikhail Zaslonko <zaslonko@xxxxxxxxxxxxx>
> Fixes: fd1e75d0105d ("btrfs: make compression path to be subpage
> compatible")
> ---
>  fs/btrfs/zlib.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Acked-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux