03 Sep, 2020

1 commit

  • The zstd decompression code, as it is right now, will most likely fail
    on 32-bit systems, as the default output buffer size causes the buffer's
    end address to overflow.

    Address this issue by setting a sane default to the default output size,
    with a value that won't overflow the buffer's end address.

    Signed-off-by: Paul Cercueil
    Reviewed-by: Nick Terrell
    Signed-off-by: Thomas Bogendoerfer

    Paul Cercueil
     

31 Jul, 2020

1 commit

  • - Add unzstd() and the zstd decompress interface.

    - Add zstd support to decompress_method().

    The decompress_method() and unzstd() functions are used to decompress
    the initramfs and the initrd. The __decompress() function is used in
    the preboot environment to decompress a zstd compressed kernel.

    The zstd decompression function allows the input and output buffers to
    overlap because that is used by x86 kernel decompression.

    Signed-off-by: Nick Terrell
    Signed-off-by: Ingo Molnar
    Tested-by: Sedat Dilek
    Reviewed-by: Kees Cook
    Link: https://lore.kernel.org/r/20200730190841.2071656-3-nickrterrell@gmail.com

    Nick Terrell