# git rev-parse -q --verify 16287397ec5c08aa58db6acf7dbc55470d78087d^{commit} # git fetch -q -n -f git://fs.ozlabs.ibm.com/kernel/crypto master # git rev-parse -q --verify 16287397ec5c08aa58db6acf7dbc55470d78087d^{commit} 16287397ec5c08aa58db6acf7dbc55470d78087d # git checkout -q -f -B kisskb 16287397ec5c08aa58db6acf7dbc55470d78087d # git clean -qxdf # < git log -1 # commit 16287397ec5c08aa58db6acf7dbc55470d78087d # Author: Ondrej Mosnacek # Date: Tue May 3 13:50:10 2022 +0200 # # crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ # # The commit referenced in the Fixes tag removed the 'break' from the else # branch in qcom_rng_read(), causing an infinite loop whenever 'max' is # not a multiple of WORD_SZ. This can be reproduced e.g. by running: # # kcapi-rng -b 67 >/dev/null # # There are many ways to fix this without adding back the 'break', but # they all seem more awkward than simply adding it back, so do just that. # # Tested on a machine with Qualcomm Amberwing processor. # # Fixes: a680b1832ced ("crypto: qcom-rng - ensure buffer for generate is completely filled") # Cc: stable@vger.kernel.org # Signed-off-by: Ondrej Mosnacek # Reviewed-by: Brian Masney # 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 16287397ec5c08aa58db6acf7dbc55470d78087d # < make -s -j 120 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- powernv_defconfig # < make -s -j 120 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 120 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/crypto_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/crypto_powernv_defconfig_powerpc-gcc5 # Build took: 0:01:24.356135