# 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-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 9798f4ea71eaf8eaad7e688c5b298528089c7bf8 # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # yes \n | make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.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, 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 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd9c8b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8c07c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414384 Bytes = 6264.05 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6413846 Bytes = 6263.52 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414662 Bytes = 6264.32 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414420 Bytes = 6264.08 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414596 Bytes = 6264.25 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6415696 Bytes = 6265.33 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414634 Bytes = 6264.29 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414336 Bytes = 6264.00 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6415849 Bytes = 6265.48 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414386 Bytes = 6264.05 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6379109 Bytes = 6229.60 KiB = 6.08 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6415720 Bytes = 6265.35 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6415785 Bytes = 6265.42 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414366 Bytes = 6264.03 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414383 Bytes = 6264.05 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-g9798f4ea71ea Created: Fri Jul 19 19:20:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6414335 Bytes = 6264.00 KiB = 6.12 MiB Load Address: 00e00000 Entry Point: 00e002b4 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 # Build took: 0:02:55.302882