id = 903 title = "m1 MacOS panic testing lima with qemu HEAD/7.0.0" state = "closed" created_at = "2022-03-11T21:49:51.871Z" closed_at = "2022-03-17T10:29:24.191Z" labels = ["hostos: macOS", "target: arm"] url = "https://gitlab.com/qemu-project/qemu/-/issues/903" host-os = "MacOS" host-arch = "ARM" qemu-version = "QEMU emulator version 6.2.50 (v6.2.0-2380-g1416688c53)" guest-os = "Ubuntu 21.10 server" guest-arch = "ARM" description = """I'm trying to help the `lima` project test the latest version of lima on m1 with the latest qemu https://github.com/lima-vm/lima/issues/713 and I got a panic and was told to report back in the qemu issue tracker. I created a VM with 8GiB memory, and got a panic. lima version: ``` ⎈ |rancher-desktop:default) ~ ❯❯❯ limactl --version ✘ 1 limactl version HEAD-1164273 ``` qemu version: ``` (⎈ |rancher-desktop:default) ~ ❯❯❯ qemu-system-aarch64 --version QEMU emulator version 6.2.50 (v6.2.0-2380-g1416688c53) Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers ``` MacOS panic: ``` panic(cpu 3 caller 0xfffffe001db6ea58): vm_fault() KERN_FAILURE from guest fault on state 0xfffffe6032c98000 @sleh.c:3091 Debugger message: panic Memory ID: 0x6 OS release type: User OS version: 21A559 Kernel version: Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000 Fileset Kernelcache UUID: 3B2CA3833A09A383D66FB36667ED9CBF Kernel UUID: 67BCB41B-BAA4-3634-8E51-B0210457E324 iBoot version: iBoot-7429.41.5 secure boot?: YES Paniclog version: 13 KernelCache slide: 0x00000000160d8000 KernelCache base: 0xfffffe001d0dc000 Kernel slide: 0x0000000016900000 Kernel text base: 0xfffffe001d904000 Kernel text exec slide: 0x00000000169e8000 Kernel text exec base: 0xfffffe001d9ec000 mach_absolute_time: 0x1661a3f15fc Epoch Time: sec usec Boot : 0x622a7219 0x00029f9b Sleep : 0x622ba92c 0x00061dca Wake : 0x622ba9d3 0x000ae46d Calendar: 0x622bc0fb 0x000caf67 Zone info: Foreign : 0xfffffe0025c14000 - 0xfffffe0025c28000 Native : 0xfffffe10003bc000 - 0xfffffe30003bc000 Readonly : 0 - 0 Metadata : 0xfffffe64105d0000 - 0xfffffe641c53c000 Bitmaps : 0xfffffe641c53c000 - 0xfffffe6433f6c000 CORE 0 PVH locks held: None CORE 1 PVH locks held: None CORE 2 PVH locks held: None CORE 3 PVH locks held: None CORE 4 PVH locks held: None CORE 5 PVH locks held: None CORE 6 PVH locks held: None CORE 7 PVH locks held: None CORE 8 PVH locks held: None CORE 9 PVH locks held: None CORE 0: PC=0xfffffe001da72c6c, LR=0xfffffe001da72c6c, FP=0xfffffe6110abbef0 CORE 1: PC=0xfffffe001f2cdbe0, LR=0xfffffe001f2ceb54, FP=0xfffffe611027b600 CORE 2: PC=0xfffffe001da72c70, LR=0xfffffe001da72c6c, FP=0xfffffe603778bef0 CORE 3 is the one that panicked. Check the full backtrace for details. CORE 4: PC=0xfffffe001da72c6c, LR=0xfffffe001da72c6c, FP=0xfffffe61166fbef0 CORE 5: PC=0xfffffe001da72c70, LR=0xfffffe001da72c6c, FP=0xfffffe6110a6bef0 CORE 6: PC=0xfffffe001da72c70, LR=0xfffffe001da72c6c, FP=0xfffffe61121cbef0 CORE 7: PC=0xfffffe001da72c70, LR=0xfffffe001da72c6c, FP=0xfffffe60b4be3ef0 CORE 8: PC=0xfffffe001da72c70, LR=0xfffffe001da72c6c, FP=0xfffffe6032af3ef0 CORE 9: PC=0xfffffe001da72c70, LR=0xfffffe001da72c6c, FP=0xfffffe6090a4bef0 Panicked task 0xfffffe150e4ccd50: 17757 pages, 10 threads: pid 21141: qemu-system-aarc Panicked thread: 0xfffffe1515ae87d8, backtrace: 0xfffffe60d51e3300, tid: 979402 \t\t lr: 0xfffffe001da3e488 fp: 0xfffffe60d51e3370 \t\t lr: 0xfffffe001da3e158 fp: 0xfffffe60d51e33e0 \t\t lr: 0xfffffe001db7a558 fp: 0xfffffe60d51e3400 \t\t lr: 0xfffffe001db6d2d4 fp: 0xfffffe60d51e3480 \t\t lr: 0xfffffe001db6ac9c fp: 0xfffffe60d51e3540 \t\t lr: 0xfffffe001d9f37f8 fp: 0xfffffe60d51e3550 \t\t lr: 0xfffffe001da3ddcc fp: 0xfffffe60d51e38f0 \t\t lr: 0xfffffe001da3ddcc fp: 0xfffffe60d51e3960 \t\t lr: 0xfffffe001e23c748 fp: 0xfffffe60d51e3980 \t\t lr: 0xfffffe001db6ea58 fp: 0xfffffe60d51e39e0 \t\t lr: 0xfffffe001db6e5dc fp: 0xfffffe60d51e3a50 \t\t lr: 0xfffffe001d9fe828 fp: 0xfffffe60d51e3a60 \t\t lr: 0xfffffe001db823f4 fp: 0xfffffe60d51e3e50 \t\t lr: 0xfffffe001db6b140 fp: 0xfffffe60d51e3f10 \t\t lr: 0xfffffe001d9f37f8 fp: 0xfffffe60d51e3f20 last started kext at 1368960011: com.apple.filesystems.smbfs\t4.0 (addr 0xfffffe001d8ea490, size 64483) loaded kexts: com.apple.filesystems.smbfs\t4.0 com.apple.filesystems.autofs\t3.0 com.apple.fileutil\t20.036.15 com.apple.UVCService\t1 com.apple.driver.AppleUSBTopCaseDriver\t5010.1 com.apple.iokit.SCSITaskUserClient\t452.30.4 com.apple.driver.AppleIntelI210Ethernet\t2.3.1 com.apple.driver.AppleBiometricServices\t1 com.apple.driver.CoreKDL\t1 com.apple.driver.AppleTopCaseHIDEventDriver\t5010.1 com.apple.driver.SEPHibernation\t1 com.apple.driver.BCMWLANFirmware4387.Hashstore\t1 com.apple.driver.DiskImages.ReadWriteDiskImage\t493.0.0 com.apple.driver.DiskImages.UDIFDiskImage\t493.0.0 com.apple.driver.DiskImages.RAMBackingStore\t493.0.0 com.apple.driver.DiskImages.FileBackingStore\t493.0.0 com.apple.filesystems.apfs\t1933.41.2 com.apple.driver.AppleUSBDeviceNCM\t5.0.0 com.apple.driver.AppleThunderboltIP\t4.0.3 com.apple.driver.AppleFileSystemDriver\t3.0.1 com.apple.nke.l2tp\t1.9 com.apple.filesystems.tmpfs\t1 com.apple.filesystems.lifs\t1 com.apple.IOTextEncryptionFamily\t1.0.0 com.apple.filesystems.hfs.kext\t582.40.4 com.apple.security.BootPolicy\t1 com.apple.BootCache\t40 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib\t1.0.0 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless\t1.0.0d1 com.apple.driver.AppleCS42L84Audio\t502.6 com.apple.driver.ApplePMP\t1 com.apple.driver.AppleSmartIO2\t1 com.apple.driver.AppleSN012776Amp\t502.6 com.apple.AppleEmbeddedSimpleSPINORFlasher\t1 com.apple.driver.AppleT6000SOCTuner\t1 com.apple.driver.AppleT6000CLPCv3\t1 com.apple.driver.AppleSmartBatteryManager\t161.0.0 com.apple.driver.AppleALSColorSensor\t1.0.0d1 com.apple.driver.AppleAOPVoiceTrigger\t100.1 com.apple.driver.ApplePMPFirmware\t1 com.apple.driver.AppleMCDP29XXUpdateSupport\t1 com.apple.driver.AppleM68Buttons\t1.0.0d1 com.apple.driver.AppleSamsungSerial\t1.0.0d1 com.apple.driver.AppleSerialShim\t1 com.apple.driver.usb.AppleSynopsysUSB40XHCI\t1 com.apple.driver.AppleSDXC\t3.1.1 com.apple.driver.AppleSPMIPMU\t1.0.1 com.apple.AGXG13X\t187.57 com.apple.driver.AppleAVD\t415 com.apple.driver.AppleAVE2\t501.6.9 com.apple.driver.AppleJPEGDriver\t4.7.8 com.apple.driver.AppleProResHW\t126.2.0 com.apple.driver.AppleMobileDispT600X-DCP\t140.0 com.apple.driver.AppleDPDisplayTCON\t1 com.apple.driver.AppleEventLogHandler\t1 com.apple.driver.AppleS5L8960XNCO\t1 com.apple.driver.AppleT6001PMGR\t1 com.apple.driver.AppleS8000AES\t1 com.apple.driver.AppleS8000DWI\t1.0.0d1 com.apple.driver.AppleInterruptControllerV2\t1.0.0d1 com.apple.driver.AppleT8110DART\t1 com.apple.driver.AppleBluetoothModule\t1 com.apple.driver.AppleBCMWLANBusInterfacePCIe\t1 com.apple.driver.AppleS5L8920XPWM\t1.0.0d1 com.apple.driver.AudioDMAController-T600x\t100.51 com.apple.driver.AppleT6000DART\t1 com.apple.driver.AppleSPIMC\t1 com.apple.driver.AppleS5L8940XI2C\t1.0.0d2 com.apple.driver.AppleT6000\t1 com.apple.iokit.IOUserEthernet\t1.0.1 com.apple.driver.usb.AppleUSBUserHCI\t1 com.apple.iokit.IOKitRegistryCompatibility\t1 com.apple.iokit.EndpointSecurity\t1 com.apple.driver.AppleDiskImages2\t126.40.1 com.apple.AppleSystemPolicy\t2.0.0 com.apple.nke.applicationfirewall\t402 com.apple.kec.InvalidateHmac\t1 com.apple.kec.AppleEncryptedArchive\t1 com.apple.driver.driverkit.serial\t6.0.0 com.apple.kext.triggers\t1.0 com.apple.driver.AppleUSBMergeNub\t900.4.2 com.apple.driver.usb.cdc.ecm\t5.0.0 com.apple.driver.usb.cdc.acm\t5.0.0 com.apple.driver.usb.serial\t6.0.0 com.apple.driver.usb.cdc.ncm\t5.0.0 com.apple.iokit.IOAVBFamily\t1010.2 com.apple.plugin.IOgPTPPlugin\t1000.11 com.apple.driver.usb.IOUSBHostHIDDevice\t1.2 com.apple.driver.usb.cdc\t5.0.0 com.apple.driver.AppleUSBAudio\t412.8 com.apple.iokit.IOAudioFamily\t300.10 com.apple.vecLib.kext\t1.2.0 com.apple.iokit.IOEthernetAVBController\t1.1.0 com.apple.driver.usb.AppleUSBXHCIPCI\t1.2 com.apple.driver.AppleMesaSEPDriver\t100.99 com.apple.iokit.IOBiometricFamily\t1 com.apple.driver.AppleHIDKeyboard\t228 com.apple.driver.AppleHSBluetoothDriver\t5010.1 com.apple.driver.IOBluetoothHIDDriver\t9.0.0 com.apple.driver.AppleActuatorDriver\t5400.25 com.apple.driver.AppleMultitouchDriver\t5400.25 com.apple.driver.AppleThunderboltPCIUpAdapter\t4.1.1 com.apple.driver.AppleThunderboltDPOutAdapter\t8.5.0 com.apple.driver.AppleSEPHDCPManager\t1.0.1 com.apple.driver.AppleTrustedAccessory\t1 com.apple.iokit.AppleSEPGenericTransfer\t1 com.apple.driver.DiskImages.KernelBacked\t493.0.0 com.apple.driver.AppleXsanScheme\t3 com.apple.driver.usb.networking\t5.0.0 com.apple.driver.AppleThunderboltUSBDownAdapter\t1.0.4 com.apple.driver.AppleThunderboltPCIDownAdapter\t4.1.1 com.apple.driver.AppleThunderboltDPInAdapter\t8.5.0 com.apple.driver.AppleThunderboltDPAdapterFamily\t8.5.0 com.apple.nke.ppp\t1.9 com.apple.driver.AppleHIDTransportSPI\t5400.30 com.apple.driver.AppleHIDTransport\t5400.30 com.apple.driver.AppleInputDeviceSupport\t5400.30 com.apple.driver.AppleBSDKextStarter\t3 com.apple.filesystems.hfs.encodings.kext\t1 com.apple.driver.AppleConvergedIPCOLYBTControl\t1 com.apple.driver.AppleConvergedPCI\t1 com.apple.driver.AppleBluetoothDebug\t1 com.apple.driver.AppleBTM\t1.0.1 com.apple.driver.AppleDiagnosticDataAccessReadOnly\t1.0.0 com.apple.driver.AppleCSEmbeddedAudio\t502.6 com.apple.driver.AppleDCPDPTXProxy\t1.0.0 com.apple.driver.DCPDPFamilyProxy\t1 com.apple.driver.ApplePassthroughPPM\t3.0 com.apple.driver.AppleAOPAudio\t102.2 com.apple.driver.AppleEmbeddedAudio\t502.6 com.apple.iokit.AppleARMIISAudio\t100.1 com.apple.driver.AppleSPU\t1 com.apple.iokit.IONVMeFamily\t2.1.0 com.apple.driver.AppleNANDConfigAccess\t1.0.0 com.apple.AGXFirmwareKextG13XRTBuddy\t187.57 com.apple.AGXFirmwareKextRTBuddy64\t187.57 com.apple.driver.AppleHPM\t3.4.4 com.apple.driver.DCPAVFamilyProxy\t1 com.apple.driver.AppleStockholmControl\t1.0.0 com.apple.driver.AppleT6000TypeCPhy\t1 com.apple.driver.AppleT8103TypeCPhy\t1 com.apple.driver.AppleUSBXDCIARM\t1.0 com.apple.driver.AppleUSBXDCI\t1.0 com.apple.iokit.IOUSBDeviceFamily\t2.0.0 com.apple.driver.usb.AppleSynopsysUSBXHCI\t1 com.apple.driver.usb.AppleUSBXHCI\t1.2 com.apple.driver.AppleEmbeddedUSBHost\t1 com.apple.driver.usb.AppleUSBHub\t1.2 com.apple.driver.usb.AppleUSBHostCompositeDevice\t1.2 com.apple.driver.AppleDialogPMU\t1.0.1 com.apple.driver.AppleSPMI\t1.0.1 com.apple.driver.usb.AppleUSBHostPacketFilter\t1.0 com.apple.iokit.IOGPUFamily\t35.11 com.apple.iokit.IOMobileGraphicsFamily-DCP\t343.0.0 com.apple.driver.AppleDCP\t1 com.apple.driver.AppleFirmwareKit\t1 com.apple.iokit.IOMobileGraphicsFamily\t343.0.0 com.apple.driver.AppleSART\t1 com.apple.driver.ApplePMGR\t1 com.apple.driver.AppleARMWatchdogTimer\t1 com.apple.driver.AppleDisplayCrossbar\t1.0.0 com.apple.iokit.IODisplayPortFamily\t1.0.0 com.apple.driver.AppleTypeCPhy\t1 com.apple.driver.AppleThunderboltNHI\t7.2.8 com.apple.driver.AppleT6000PCIeC\t1 com.apple.iokit.IOThunderboltFamily\t9.3.2 com.apple.driver.ApplePIODMA\t1 com.apple.driver.AppleT600xPCIe\t1 com.apple.driver.AppleMultiFunctionManager\t1 com.apple.driver.AppleBluetoothDebugService\t1 com.apple.driver.AppleBCMWLANCore\t1.0.0 com.apple.iokit.IO80211Family\t1200.12.2b1 com.apple.driver.IOImageLoader\t1.0.0 com.apple.driver.AppleOLYHAL\t1 com.apple.driver.corecapture\t1.0.4 com.apple.driver.AppleEmbeddedPCIE\t1 com.apple.driver.AppleMCA2-T600x\t600.95 com.apple.driver.AppleEmbeddedAudioLibs\t100.9.1 com.apple.driver.AppleFirmwareUpdateKext\t1 com.apple.driver.AppleH13CameraInterface\t4.79.0 com.apple.driver.AppleH10PearlCameraInterface\t17.0.3 com.apple.driver.AppleGPIOICController\t1.0.2 com.apple.driver.AppleFireStormErrorHandler\t1 com.apple.driver.AppleMobileApNonce\t1 com.apple.iokit.IOTimeSyncFamily\t1000.11 com.apple.driver.DiskImages\t493.0.0 com.apple.iokit.IOGraphicsFamily\t593 com.apple.iokit.IOBluetoothSerialManager\t9.0.0 com.apple.iokit.IOBluetoothHostControllerUSBTransport\t9.0.0 com.apple.iokit.IOBluetoothHostControllerUARTTransport\t9.0.0 com.apple.iokit.IOBluetoothHostControllerTransport\t9.0.0 com.apple.driver.IOBluetoothHostControllerPCIeTransport\t9.0.0 com.apple.iokit.IOBluetoothFamily\t9.0.0 com.apple.driver.FairPlayIOKit\t68.13.0 com.apple.iokit.CoreAnalyticsFamily\t1 com.apple.iokit.CSRBluetoothHostControllerUSBTransport\t9.0.0 com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport\t9.0.0 com.apple.driver.AppleSSE\t1.0 com.apple.driver.AppleSEPKeyStore\t2 com.apple.driver.AppleUSBTDM\t532.40.7 com.apple.iokit.IOUSBMassStorageDriver\t209.40.6 com.apple.iokit.IOPCIFamily\t2.9 com.apple.iokit.IOSCSIBlockCommandsDevice\t452.30.4 com.apple.iokit.IOSCSIArchitectureModelFamily\t452.30.4 com.apple.driver.AppleIPAppender\t1.0 com.apple.driver.AppleFDEKeyStore\t28.30 com.apple.driver.AppleEffaceableStorage\t1.0 com.apple.driver.AppleCredentialManager\t1.0 com.apple.driver.KernelRelayHost\t1 com.apple.iokit.IOUSBHostFamily\t1.2 com.apple.driver.AppleUSBHostMergeProperties\t1.2 com.apple.driver.usb.AppleUSBCommon\t1.0 com.apple.driver.AppleSMC\t3.1.9 com.apple.driver.RTBuddy\t1.0.0 com.apple.driver.AppleEmbeddedTempSensor\t1.0.0 com.apple.driver.AppleARMPMU\t1.0 com.apple.iokit.IOAccessoryManager\t1.0.0 com.apple.driver.AppleOnboardSerial\t1.0 com.apple.iokit.IOSkywalkFamily\t1.0 com.apple.driver.mDNSOffloadUserClient\t1.0.1b8 com.apple.iokit.IONetworkingFamily\t3.4 com.apple.iokit.IOSerialFamily\t11 com.apple.driver.AppleSEPManager\t1.0.1 com.apple.driver.AppleA7IOP\t1.0.2 com.apple.driver.IOSlaveProcessor\t1 com.apple.driver.AppleBiometricSensor\t2 com.apple.iokit.IOHIDFamily\t2.0.0 com.apple.driver.AppleANELoadBalancer\t5.33.2 com.apple.driver.AppleH11ANEInterface\t5.33.0 com.apple.AUC\t1.0 com.apple.iokit.IOAVFamily\t1.0.0 com.apple.iokit.IOHDCPFamily\t1.0.0 com.apple.iokit.IOCECFamily\t1 com.apple.iokit.IOAudio2Family\t1.0 com.apple.driver.AppleIISController\t100.1 com.apple.driver.AppleAudioClockLibs\t100.9.1 com.apple.driver.AppleM2ScalerCSCDriver\t265.0.0 com.apple.iokit.IOSurface\t302.9 com.apple.driver.IODARTFamily\t1 com.apple.security.quarantine\t4 com.apple.security.sandbox\t300.0 com.apple.kext.AppleMatch\t1.0.0d1 com.apple.driver.AppleMobileFileIntegrity\t1.0.5 com.apple.security.AppleImage4\t4.1.0 com.apple.kext.CoreTrust\t1 com.apple.iokit.IOCryptoAcceleratorFamily\t1.0.1 com.apple.driver.AppleARMPlatform\t1.0.2 com.apple.iokit.IOStorageFamily\t2.1 com.apple.iokit.IOSlowAdaptiveClockingFamily\t1.0.0 com.apple.iokit.IOReportFamily\t47 com.apple.kec.pthread\t1 com.apple.kec.Libm\t1 com.apple.kec.corecrypto\t12.0 ** Stackshot Succeeded ** Bytes Traced 478480 (Uncompressed 1208976) ** ```""" reproduce = """1. See https://github.com/lima-vm/lima/issues/713""" additional = """"""