u-boot/lib/zlib
Christophe Leroy 4cf1275f2b zlib: Fix big performance regression
Commit 340fdf1303 ("zlib: Port fix for CVE-2016-9841 to U-Boot")
brings a big performance regression in inflate_fast(), which leads
to watchdog timer reset on powerpc 8xx.

It looks like that commit does more than what it describe, it
especially removed an important optimisation that was doing copies
using halfwords instead of bytes. That unexpected change multiplied
by almost 4 the time spent in inflate_fast() and increased by 40%
the overall time needed to uncompress linux kernel image.

So partially revert that commit but keep post incrementation as it
is the initial purpose of said commit.

[trini: Combine assorted patches in to this one, just restoring the
        performance commit]

Fixes: 340fdf1303 ("zlib: Port fix for CVE-2016-9841 to U-Boot")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2024-07-19 16:48:07 -06:00
..
adler32.c lib/zlib: sparse fixes 2012-11-04 11:00:36 -07:00
deflate.c lib: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
deflate.h lib: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
inffast.c zlib: Fix big performance regression 2024-07-19 16:48:07 -06:00
inffast.h zlib: split up to match original source tree 2011-04-30 20:21:45 +02:00
inffixed.h zlib: split up to match original source tree 2011-04-30 20:21:45 +02:00
inflate.c Revert "Revert "Merge patch series "zlib: Address CVE-2016-9841""" 2024-07-05 13:57:02 -06:00
inflate.h Revert "Revert "Merge patch series "zlib: Address CVE-2016-9841""" 2024-07-05 13:57:02 -06:00
inftrees.c lib: zlib: Remove offset pointer optimization in inftrees.c 2020-07-17 08:51:29 -04:00
inftrees.h zlib: split up to match original source tree 2011-04-30 20:21:45 +02:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
trees.c lib: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
trees.h lib: zlib: import trees file from 1.2.5 2012-09-29 07:26:08 -07:00
uncompr.c include/u-boot, lib/zlib: add sources for zlib decompression 2020-08-07 22:31:32 -04:00
zlib.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
zlib.h zlib: Fix big performance regression 2024-07-19 16:48:07 -06:00
zutil.c Revert "Revert "Merge patch series "zlib: Address CVE-2016-9841""" 2024-07-05 13:57:02 -06:00
zutil.h lib: Remove duplicate newlines 2024-07-15 12:12:18 -06:00