# 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_pmac32_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- pmac32_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/crypto_pmac32_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_pmac32_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_pmac32_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1623:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x8e11ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x900000) Completed OK # rm -rf /kisskb/build/crypto_pmac32_defconfig_powerpc-gcc4.9 # Build took: 0:01:44.536548