# git rev-parse -q --verify 755bddd1e4eaf9178758bd554c60aaab46fc42ba^{commit} 755bddd1e4eaf9178758bd554c60aaab46fc42ba already have revision, skipping fetch # git checkout -q -f -B kisskb 755bddd1e4eaf9178758bd554c60aaab46fc42ba # git clean -qxdf # < git log -1 # commit 755bddd1e4eaf9178758bd554c60aaab46fc42ba # Author: Colin Ian King # Date: Thu Apr 2 00:10:12 2020 +0100 # # crypto: marvell/octeontx - fix double free of ptr # # Currently in the case where eq->src != req->ds, the allocation of # ptr is kfree'd at the end of the code block. However later on in # the case where enc is not null any of the error return paths that # return via the error handling return path end up performing an # erroneous second kfree of ptr. # # Fix this by adding an error exit label error_free and only jump to # this when ptr needs kfree'ing thus avoiding the double free issue. # # Addresses-Coverity: ("Double free") # Fixes: 10b4f09491bf ("crypto: marvell - add the Virtual Function driver for CPT") # Signed-off-by: Colin Ian King # 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 755bddd1e4eaf9178758bd554c60aaab46fc42ba # < make -s -j 80 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 80 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 80 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 80 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:02:59.224593