# git rev-parse -q --verify c6ab5c915da460c0397960af3c308386c3f3247b^{commit} c6ab5c915da460c0397960af3c308386c3f3247b already have revision, skipping fetch # git checkout -q -f -B kisskb c6ab5c915da460c0397960af3c308386c3f3247b # git clean -qxdf # < git log -1 # commit c6ab5c915da460c0397960af3c308386c3f3247b # Author: Stefan Berger # Date: Thu May 9 21:59:21 2024 -0400 # # crypto: ecc - Prevent ecc_digits_from_bytes from reading too many bytes # # Prevent ecc_digits_from_bytes from reading too many bytes from the input # byte array in case an insufficient number of bytes is provided to fill the # output digit array of ndigits. Therefore, initialize the most significant # digits with 0 to avoid trying to read too many bytes later on. Convert the # function into a regular function since it is getting too big for an inline # function. # # If too many bytes are provided on the input byte array the extra bytes # are ignored since the input variable 'ndigits' limits the number of digits # that will be filled. # # Fixes: d67c96fb97b5 ("crypto: ecdsa - Convert byte arrays with key coordinates to digits") # Reviewed-by: Jarkko Sakkinen # Signed-off-by: Stefan Berger # Signed-off-by: Herbert Xu # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 c6ab5c915da460c0397960af3c308386c3f3247b # make -s -j 40 ARCH=x86_64 O=/kisskb/build/crypto_allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig # < make -s -j 40 ARCH=x86_64 O=/kisskb/build/crypto_allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 40 ARCH=x86_64 O=/kisskb/build/crypto_allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 40 ARCH=x86_64 O=/kisskb/build/crypto_allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/crypto_allmodconfig_x86_64-gcc8 # Build took: 0:16:57.287831