Buildresult: powerpc-fixes/mpc85xx_defconfig/powerpc-gcc5 built on Mar 20 2020, 15:40
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
OK
Date/Time:
Mar 20 2020, 15:40
Duration:
0:02:25.211790
Builder:
blade46
Revision:
KVM: PPC: Fix kernel crash with PR KVM (
1d0c32ec3b860a32df593a22bad0d1dbc5546a59)
Target:
powerpc-fixes/mpc85xx_defconfig/powerpc-gcc5
Branch:
powerpc-fixes
Compiler:
powerpc-gcc5
(powerpc64-linux-gcc (GCC) 5.5.0 / GNU ld (GNU Binutils) 2.29.1.20170915)
Config:
mpc85xx_defconfig
(
download
)
Log:
Download original
Possible warnings (3)
include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 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) 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)
Full Log
# git rev-parse -q --verify 1d0c32ec3b860a32df593a22bad0d1dbc5546a59^{commit} 1d0c32ec3b860a32df593a22bad0d1dbc5546a59 already have revision, skipping fetch # git checkout -q -f -B kisskb 1d0c32ec3b860a32df593a22bad0d1dbc5546a59 # git clean -qxdf # < git log -1 # commit 1d0c32ec3b860a32df593a22bad0d1dbc5546a59 # Author: Greg Kurz <groug@kaod.org> # Date: Wed Mar 18 18:43:30 2020 +0100 # # KVM: PPC: Fix kernel crash with PR KVM # # With PR KVM, shutting down a VM causes the host kernel to crash: # # [ 314.219284] BUG: Unable to handle kernel data access on read at 0xc00800000176c638 # [ 314.219299] Faulting instruction address: 0xc008000000d4ddb0 # cpu 0x0: Vector: 300 (Data Access) at [c00000036da077a0] # pc: c008000000d4ddb0: kvmppc_mmu_pte_flush_all+0x68/0xd0 [kvm_pr] # lr: c008000000d4dd94: kvmppc_mmu_pte_flush_all+0x4c/0xd0 [kvm_pr] # sp: c00000036da07a30 # msr: 900000010280b033 # dar: c00800000176c638 # dsisr: 40000000 # current = 0xc00000036d4c0000 # paca = 0xc000000001a00000 irqmask: 0x03 irq_happened: 0x01 # pid = 1992, comm = qemu-system-ppc # Linux version 5.6.0-master-gku+ (greg@palmb) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #17 SMP Wed Mar 18 13:49:29 CET 2020 # enter ? for help # [c00000036da07ab0] c008000000d4fbe0 kvmppc_mmu_destroy_pr+0x28/0x60 [kvm_pr] # [c00000036da07ae0] c0080000009eab8c kvmppc_mmu_destroy+0x34/0x50 [kvm] # [c00000036da07b00] c0080000009e50c0 kvm_arch_vcpu_destroy+0x108/0x140 [kvm] # [c00000036da07b30] c0080000009d1b50 kvm_vcpu_destroy+0x28/0x80 [kvm] # [c00000036da07b60] c0080000009e4434 kvm_arch_destroy_vm+0xbc/0x190 [kvm] # [c00000036da07ba0] c0080000009d9c2c kvm_put_kvm+0x1d4/0x3f0 [kvm] # [c00000036da07c00] c0080000009da760 kvm_vm_release+0x38/0x60 [kvm] # [c00000036da07c30] c000000000420be0 __fput+0xe0/0x310 # [c00000036da07c90] c0000000001747a0 task_work_run+0x150/0x1c0 # [c00000036da07cf0] c00000000014896c do_exit+0x44c/0xd00 # [c00000036da07dc0] c0000000001492f4 do_group_exit+0x64/0xd0 # [c00000036da07e00] c000000000149384 sys_exit_group+0x24/0x30 # [c00000036da07e20] c00000000000b9d0 system_call+0x5c/0x68 # # This is caused by a use-after-free in kvmppc_mmu_pte_flush_all() # which dereferences vcpu->arch.book3s which was previously freed by # kvmppc_core_vcpu_free_pr(). This happens because kvmppc_mmu_destroy() # is called after kvmppc_core_vcpu_free() since commit ff030fdf5573 # ("KVM: PPC: Move kvm_vcpu_init() invocation to common code"). # # The kvmppc_mmu_destroy() helper calls one of the following depending # on the KVM backend: # # - kvmppc_mmu_destroy_hv() which does nothing (Book3s HV) # # - kvmppc_mmu_destroy_pr() which undoes the effects of # kvmppc_mmu_init() (Book3s PR 32-bit) # # - kvmppc_mmu_destroy_pr() which undoes the effects of # kvmppc_mmu_init() (Book3s PR 64-bit) # # - kvmppc_mmu_destroy_e500() which does nothing (BookE e500/e500mc) # # It turns out that this is only relevant to PR KVM actually. And both # 32 and 64 backends need vcpu->arch.book3s to be valid when calling # kvmppc_mmu_destroy_pr(). So instead of calling kvmppc_mmu_destroy() # from kvm_arch_vcpu_destroy(), call kvmppc_mmu_destroy_pr() at the # beginning of kvmppc_core_vcpu_free_pr(). This is consistent with # kvmppc_mmu_init() being the last call in kvmppc_core_vcpu_create_pr(). # # For the same reason, if kvmppc_core_vcpu_create_pr() returns an # error then this means that kvmppc_mmu_init() was either not called # or failed, in which case kvmppc_mmu_destroy() should not be called. # Drop the line in the error path of kvm_arch_vcpu_create(). # # Fixes: ff030fdf5573 ("KVM: PPC: Move kvm_vcpu_init() invocation to common code") # Signed-off-by: Greg Kurz <groug@kaod.org> # Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com> # Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> # Link: https://lore.kernel.org/r/158455341029.178873.15248663726399374882.stgit@bahia.lan # < /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 1d0c32ec3b860a32df593a22bad0d1dbc5546a59 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 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:12, 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 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc946dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc83ed8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6175764 Bytes = 6031.02 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6145592 Bytes = 6001.55 KiB = 5.86 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6175453 Bytes = 6030.72 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6173936 Bytes = 6029.23 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6176019 Bytes = 6031.27 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6177147 Bytes = 6032.37 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6175459 Bytes = 6030.72 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6175414 Bytes = 6030.68 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6176453 Bytes = 6031.69 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6177038 Bytes = 6032.26 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6176835 Bytes = 6032.07 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6176200 Bytes = 6031.45 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6175498 Bytes = 6030.76 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6174371 Bytes = 6029.66 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6175454 Bytes = 6030.72 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.6.0-rc2-g1d0c32ec3b86 Created: Fri Mar 20 15:42:55 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6173940 Bytes = 6029.24 KiB = 5.89 MiB Load Address: 00d00000 Entry Point: 00d002a4 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-gcc5 # Build took: 0:02:25.211790
© Michael Ellerman 2006-2018.