# git rev-parse -q --verify c8cfcb78c65877313cda7bcbace624d3dbd1f3b3^{commit} c8cfcb78c65877313cda7bcbace624d3dbd1f3b3 already have revision, skipping fetch # git checkout -q -f -B kisskb c8cfcb78c65877313cda7bcbace624d3dbd1f3b3 # git clean -qxdf # < git log -1 # commit c8cfcb78c65877313cda7bcbace624d3dbd1f3b3 # Author: Jason A. Donenfeld # Date: Wed Mar 18 20:27:32 2020 -0600 # # crypto: arm64/chacha - correctly walk through blocks # # Prior, passing in chunks of 2, 3, or 4, followed by any additional # chunks would result in the chacha state counter getting out of sync, # resulting in incorrect encryption/decryption, which is a pretty nasty # crypto vuln: "why do images look weird on webpages?" WireGuard users # never experienced this prior, because we have always, out of tree, used # a different crypto library, until the recent Frankenzinc addition. This # commit fixes the issue by advancing the pointers and state counter by # the actual size processed. It also fixes up a bug in the (optional, # costly) stride test that prevented it from running on arm64. # # Fixes: b3aad5bad26a ("crypto: arm64/chacha - expose arm64 ChaCha routine as library function") # Reported-and-tested-by: Emil Renner Berthing # Cc: Ard Biesheuvel # Cc: stable@vger.kernel.org # v5.5+ # Signed-off-by: Jason A. Donenfeld # Reviewed-by: Eric Biggers # Signed-off-by: Herbert Xu # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 c8cfcb78c65877313cda7bcbace624d3dbd1f3b3 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig+NO_PERF_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- powernv_defconfig # Added to kconfig CONFIG_PERF_EVENTS=n # < make -s -j 32 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig+NO_PERF_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig+NO_PERF_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig+NO_PERF_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: vmlinux.o(.text+0x2fc8): Section mismatch in reference from the variable start_here_common to the function .init.text:start_kernel() The function start_here_common() references the function __init start_kernel(). This is often because start_here_common lacks a __init annotation or the annotation of start_kernel is wrong. Completed OK # rm -rf /kisskb/build/crypto_powernv_defconfig+NO_PERF_powerpc-gcc5 # Build took: 0:03:20.208631