# git rev-parse -q --verify 21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd^{commit} 21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd already have revision, skipping fetch # git checkout -q -f -B kisskb 21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd # git clean -qxdf # < git log -1 # commit 21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd # Author: Ondrej Mosnacek # Date: Wed Aug 12 14:58:25 2020 +0200 # # crypto: algif_aead - fix uninitialized ctx->init # # In skcipher_accept_parent_nokey() the whole af_alg_ctx structure is # cleared by memset() after allocation, so add such memset() also to # aead_accept_parent_nokey() so that the new "init" field is also # initialized to zero. Without that the initial ctx->init checks might # randomly return true and cause errors. # # While there, also remove the redundant zero assignments in both # functions. # # Found via libkcapi testsuite. # # Cc: Stephan Mueller # Fixes: f3c802a1f300 ("crypto: algif_aead - Only wake up when ctx->more is zero") # Suggested-by: Herbert Xu # Signed-off-by: Ondrej Mosnacek # Signed-off-by: Herbert Xu # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd # < make -s -j 48 ARCH=powerpc O=/kisskb/build/crypto_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64e_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/crypto_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/crypto_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/crypto_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0xc35140) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.8.0-rc1-31688-g21dfbcd1f Created: Thu Aug 13 20:10:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5104311 Bytes = 4984.68 KiB = 4.87 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/crypto_ppc64e_defconfig_powerpc-gcc4.9 # Build took: 0:02:02.696720