# git rev-parse -q --verify 9798f4ea71eaf8eaad7e688c5b298528089c7bf8^{commit} 9798f4ea71eaf8eaad7e688c5b298528089c7bf8 already have revision, skipping fetch # git checkout -q -f -B kisskb 9798f4ea71eaf8eaad7e688c5b298528089c7bf8 # git clean -qxdf # < git log -1 # commit 9798f4ea71eaf8eaad7e688c5b298528089c7bf8 # Author: Cédric Le Goater # Date: Thu Jul 18 23:51:54 2019 +0200 # # KVM: PPC: Book3S HV: XIVE: fix rollback when kvmppc_xive_create fails # # The XIVE device structure is now allocated in kvmppc_xive_get_device() # and kfree'd in kvmppc_core_destroy_vm(). In case of an OPAL error when # allocating the XIVE VPs, the kfree() call in kvmppc_xive_*create() # will result in a double free and corrupt the host memory. # # Fixes: 5422e95103cf ("KVM: PPC: Book3S HV: XIVE: Replace the 'destroy' method by a 'release' method") # Cc: stable@vger.kernel.org # v5.2+ # Signed-off-by: Cédric Le Goater # Tested-by: Michael Ellerman # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/6ea6998b-a890-2511-01d1-747d7621eb19@kaod.org # < /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 9798f4ea71eaf8eaad7e688c5b298528089c7bf8 # < make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc6b190) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154530 Bytes = 6010.28 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6155285 Bytes = 6011.02 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6155235 Bytes = 6010.97 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154468 Bytes = 6010.22 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154476 Bytes = 6010.23 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6155125 Bytes = 6010.86 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154228 Bytes = 6009.99 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6124128 Bytes = 5980.59 KiB = 5.84 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154472 Bytes = 6010.23 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154444 Bytes = 6010.20 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc7b9c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154376 Bytes = 6010.13 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154462 Bytes = 6010.22 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154471 Bytes = 6010.23 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154409 Bytes = 6010.17 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:16 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154582 Bytes = 6010.33 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 18:37:17 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154469 Bytes = 6010.22 KiB = 5.87 MiB Load Address: 00d00000 Entry Point: 00d00314 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:02:21.610342