Instant Kernel Panic on zpool import

All your general support questions for OpenZFS on OS X.

Instant Kernel Panic on zpool import

Postby The Ghost of Mikey » Sun Dec 24, 2017 4:15 am

Hi & Merry X-Mas btw,

I can't import one of my backup pools anymore (High Sierra 10.13.2, used the 1.7.0 Installer); neither on my MacBook, nor on my Hackintosh.

Created a encrypted volume yesterday on one of my pools using the new encryption feature. Most epic feature ever! However - everything worked as expected.

Did a zfs send --raw today to one of my backup pools (USB3, RaidZ1) of this encrypted volume. It send/received around 240GB (not exactly sure, played chess in the meantime), than, I got a Kernel Panic. Haven't the Crash Report anymore, but backtrace started with net.lundman.zfs. Didn't care much about it, since I'd never trouble with zfs since first ZEVO release - always worked flawlessly, even on my hackintosh. Now, if I try to import that USB3 Backup Pool on one of my systems, it almost instantly kernel panics the whole system.

Here is the crash log of my MacBook (since this is the far more clean system):
Code: Select all
Anonymous UUID:       7CFB6228-A4FC-FE2D-BE02-076346234B22

Sun Dec 24 12:55:18 2017

*** Panic Report ***
panic(cpu 3 caller 0xffffff7f8cf354d6): VERIFY(BSWAP_32(sa_hdr_phys->sa_magic) == SA_MAGIC) failed

Backtrace (CPU 3), Frame : Return Address
0xffffff91638ab180 : 0xffffff800b2505f6
0xffffff91638ab1d0 : 0xffffff800b37d604
0xffffff91638ab210 : 0xffffff800b36f0f9
0xffffff91638ab290 : 0xffffff800b202120
0xffffff91638ab2b0 : 0xffffff800b25002c
0xffffff91638ab3e0 : 0xffffff800b24fdac
0xffffff91638ab440 : 0xffffff7f8cf354d6
0xffffff91638ab520 : 0xffffff7f8cf35259
0xffffff91638ab570 : 0xffffff7f8cf8f52b
0xffffff91638ab5b0 : 0xffffff7f8cf8dee4
0xffffff91638ab7e0 : 0xffffff7f8cf8eff1
0xffffff91638ab880 : 0xffffff7f8cf7b7be
0xffffff91638ab8c0 : 0xffffff800b494d20
0xffffff91638abb00 : 0xffffff800b496468
0xffffff91638abf00 : 0xffffff800b495a46
0xffffff91638abf40 : 0xffffff800b7fb3e8
0xffffff91638abfa0 : 0xffffff800b202906
      Kernel Extensions in backtrace:
         net.lundman.zfs(1.7)[2C2FC35B-3122-31B0-92C4-A344CFBA2EDA]@0xffffff7f8cedc000->0xffffff7f8d19afff
            dependency: com.apple.iokit.IOStorageFamily(2.1)[B0FCE898-1542-34C0-B845-46FAE81DD9E6]@0xffffff7f8bc46000
            dependency: net.lundman.spl(1.7.0)[96CFA276-22B9-3F89-9579-53A63CC7E5FD]@0xffffff7f8bce7000

BSD process name corresponding to current thread: zpool

Mac OS version:
17C88

Kernel version:
Darwin Kernel Version 17.3.0: Thu Nov  9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64
Kernel UUID: 87641697-A3DD-30C4-B010-E65ECE57550B
Kernel slide:     0x000000000ae00000
Kernel text base: 0xffffff800b000000
__HIB  text base: 0xffffff800af00000
System model name: MacBook8,1 (Mac-BE0E8AC46FE800CC)

System uptime in nanoseconds: 237806299784
last loaded kext at 213379806721: com.apple.iokit.SCSITaskUserClient   404.30.2 (addr 0xffffff7f8f093000, size 45056)
loaded kexts:
org.virtualbox.kext.VBoxNetAdp   5.1.8
org.virtualbox.kext.VBoxNetFlt   5.1.8
org.virtualbox.kext.VBoxUSB   5.1.8
org.virtualbox.kext.VBoxDrv   5.1.8
net.lundman.zfs   1.7.0
net.lundman.spl   1.7.0
com.apple.iokit.SCSITaskUserClient   404.30.2
com.apple.filesystems.smbfs   3.2
com.apple.driver.AudioAUUC   1.70
com.apple.driver.AppleHWSensor   1.9.5d0
com.apple.driver.AGPM   110.23.24
com.apple.driver.ApplePlatformEnabler   2.7.0d0
com.apple.driver.X86PlatformShim   1.0.0
com.apple.filesystems.autofs   3.0
com.apple.driver.AppleUpstreamUserClient   3.6.4
com.apple.driver.AppleHDAHardwareConfigDriver   280.12
com.apple.driver.AppleHDA   280.12
com.apple.driver.AppleGraphicsDevicePolicy   3.16.21
com.apple.AGDCPluginDisplayMetrics   3.16.2
com.apple.driver.AppleHV   1
com.apple.iokit.IOUserEthernet   1.0.1
com.apple.iokit.IOBluetoothSerialManager   6.0.2f2
com.apple.driver.pmtelemetry   1
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.eficheck   1
com.apple.driver.ACPI_SMC_PlatformPlugin   1.0.0
com.apple.driver.AppleIntelBDWGraphics   10.3.0
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.AppleLPC   3.1
com.apple.driver.AppleSMCLMU   211
com.apple.driver.AppleCameraInterface   6.01.2
com.apple.driver.AppleFIVRDriver   4.1.0
com.apple.driver.AppleIntelSlowAdaptiveClocking   4.0.0
com.apple.driver.AppleIntelBDWGraphicsFramebuffer   10.3.0
com.apple.driver.AGDCBacklightControl   3.16.2
com.apple.driver.AppleBacklight   170.10.2
com.apple.driver.AppleMCCSControl   1.5.3
com.apple.filesystems.apfs   748.31.8
com.apple.driver.AppleFileSystemDriver   3.0.1
com.apple.filesystems.hfs.kext   407.30.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless   1.0.0d1
com.apple.BootCache   40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib   1.0.0
com.apple.driver.AppleTopCaseHIDEventDriver   127
com.apple.driver.AirPort.BrcmNIC   1220.28.1a3
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleACPIButtons   6.1
com.apple.driver.AppleHPET   1.8
com.apple.driver.AppleSMBIOS   2.1
com.apple.driver.AppleACPIEC   6.1
com.apple.driver.AppleAPIC   1.7
com.apple.nke.applicationfirewall   183
com.apple.security.TMSafetyNet   8
com.apple.security.quarantine   3
com.apple.IOBufferCopyEngineTest   1
com.apple.driver.usb.cdc   5.0.0
com.apple.driver.usb.networking   5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice   1.2
com.apple.iokit.IOUSBUserClient   900.4.1
com.apple.kext.triggers   1.0
com.apple.driver.DspFuncLib   280.12
com.apple.kext.OSvKernDSPLib   526
com.apple.driver.AppleGraphicsControl   3.16.21
com.apple.driver.AppleSSE   1.0
com.apple.iokit.IOBluetoothHostControllerUARTTransport   6.0.2f2
com.apple.iokit.IOBluetoothHostControllerTransport   6.0.2f2
com.apple.AppleGPUWrangler   3.16.2
com.apple.driver.AppleHDAController   280.12
com.apple.iokit.IOHDAFamily   280.12
com.apple.iokit.IOAudioFamily   206.5
com.apple.vecLib.kext   1.2.0
com.apple.driver.IOPlatformPluginLegacy   1.0.0
com.apple.driver.Apple16X50Serial   3.2
com.apple.driver.X86PlatformPlugin   1.0.0
com.apple.driver.IOPlatformPluginFamily   6.0.0d8
com.apple.driver.AppleSMBusPCI   1.0.14d1
com.apple.driver.AppleIntelLpssUARTv0   3.0.60
com.apple.driver.AppleIntelLpssUARTCommon   3.0.60
com.apple.driver.AppleOnboardSerial   1.0
com.apple.iokit.IOSkywalkFamily   1
com.apple.iokit.IOSerialFamily   11
com.apple.iokit.IOSlowAdaptiveClockingFamily   1.0.0
com.apple.iokit.IOAcceleratorFamily2   376.6
com.apple.iokit.IOSurface   209.2.2
com.apple.AppleGraphicsDeviceControl   3.16.21
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.iokit.IONDRVSupport   517.22
com.apple.driver.AppleSMBusController   1.0.18d1
com.apple.iokit.IOGraphicsFamily   517.22
com.apple.filesystems.hfs.encodings.kext   1
com.apple.driver.AppleActuatorDriver   1204.13
com.apple.driver.AppleHIDKeyboard   203
com.apple.driver.AppleHSBluetoothDriver   127
com.apple.driver.IOBluetoothHIDDriver   6.0.2f2
com.apple.iokit.IOBluetoothFamily   6.0.2f2
com.apple.driver.AppleMultitouchDriver   1204.13
com.apple.driver.AppleInputDeviceSupport   1201.8
com.apple.driver.AppleHSSPIHIDDriver   52
com.apple.driver.AppleXsanScheme   3
com.apple.iokit.IONVMeFamily   2.1.0
com.apple.iokit.IO80211Family   1200.12.2
com.apple.driver.mDNSOffloadUserClient   1.0.1b8
com.apple.driver.corecapture   1.0.4
com.apple.driver.AppleHSSPISupport   52
com.apple.driver.AppleHPM   3.1.3
com.apple.iokit.IOThunderboltFamily   6.6.3
com.apple.driver.AppleIntelLpssSpiController   3.0.60
com.apple.driver.AppleIntelLpssI2CController   3.0.60
com.apple.driver.AppleIntelLpssGspi   3.0.60
com.apple.driver.AppleIntelLpssDmac   3.0.60
com.apple.driver.AppleIntelLpssI2C   3.0.60
com.apple.driver.usb.AppleUSBXHCIPCI   1.2
com.apple.driver.usb.AppleUSBXHCI   1.2
com.apple.driver.usb.AppleUSBHostPacketFilter   1.0
com.apple.iokit.IOUSBFamily   900.4.1
com.apple.driver.AppleUSBHostMergeProperties   1.2
com.apple.driver.AppleEFINVRAM   2.1
com.apple.driver.AppleEFIRuntime   2.1
com.apple.iokit.IOHIDFamily   2.0.0
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox   300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.iokit.IOBufferCopyEngineFamily   1
com.apple.driver.DiskImages   480.30.2
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleEffaceableStorage   1.0
com.apple.driver.AppleKeyStore   2
com.apple.driver.AppleUSBTDM   439.30.4
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.iokit.IOUSBMassStorageDriver   140.30.1
com.apple.iokit.IOSCSIBlockCommandsDevice   404.30.2
com.apple.iokit.IOSCSIArchitectureModelFamily   404.30.2
com.apple.iokit.IOStorageFamily   2.1
com.apple.driver.AppleCredentialManager   1.0
com.apple.driver.KernelRelayHost   1
com.apple.iokit.IOUSBHostFamily   1.2
com.apple.driver.usb.AppleUSBCommon   1.0
com.apple.driver.AppleBusPowerController   1.0
com.apple.driver.AppleSEPManager   1.0.1
com.apple.driver.IOSlaveProcessor   1
com.apple.iokit.IOReportFamily   31
com.apple.iokit.IOTimeSyncFamily   650.5
com.apple.iokit.IONetworkingFamily   3.4
com.apple.driver.AppleACPIPlatform   6.1
com.apple.driver.AppleSMCRTC   1.0
com.apple.driver.AppleSMC   3.1.9
com.apple.iokit.IOPCIFamily   2.9
com.apple.iokit.IOACPIFamily   1.4
com.apple.kec.pthread   1
com.apple.kec.Libm   1
com.apple.kec.corecrypto   1.0

EOF
Model: MacBook8,1, BootROM MB81.0168.B00, 2 processors, Intel Core M, 1,1 GHz, 8 GB, SMC 2.25f87
Graphics: Intel HD Graphics 5300, Intel HD Graphics 5300, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x4544464231363441314D412D47442D462020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x4544464231363441314D412D47442D462020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x131), Broadcom BCM43xx 1.0 (7.77.37.5.1a3)
Bluetooth: Version 6.0.2f2, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.0 Bus
Thunderbolt Bus:


Well, what can I tell more? The pool contains a 1TB Timemachine HFS+ volume, around 4 TB of rsynced stuff of a network disk and, what ever happend during send/receive of my zfs encrypted volume on Backup/enc...

It seems, like only a verify fails ... this doesn't sounds so horrible...
The Ghost of Mikey
 
Posts: 17
Joined: Sat Mar 22, 2014 1:29 am

Re: Instant Kernel Panic on zpool import

Postby lundman » Sun Dec 24, 2017 2:38 pm

ZOL is still working on the crypto --raw send, so chances are you have hit something not quite cooked. It is complaining that the sa magic does not match, and purposely kills itself. You might be able to import it with zpool import -N, to not mount datasets, then use zfs mount $dataset by hand, one at a time until you find out which one dies.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Instant Kernel Panic on zpool import

Postby The Ghost of Mikey » Mon Dec 25, 2017 12:36 am

Hi lundman and thanks for your response.

Yeah, I was able to import the pool again with -N option. My TimeMachine Volume was mounted directly nonetheless ?!?, but neither my rsync-target dataset nor my encryption-target dataset. Rsync-one was importable and usable; the encryption-target dataset instantly paniced on import attempt.

Well, I hope I just hit some edge-case-scenario with a dataset containing nothing else but an incomplete first raw-snapshot-send-attempt, so I'm destroying the encryption-target dataset and try to resend it.

Thanks for you help.

btw: is Tom Caputi reading here?
The Ghost of Mikey
 
Posts: 17
Joined: Sat Mar 22, 2014 1:29 am

Re: Instant Kernel Panic on zpool import

Postby lundman » Mon Dec 25, 2017 9:48 pm

Fairly sure Caputi does not swing by here, as he is mostly Linux. But I do pester him regularly :)
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to General Help

Who is online

Users browsing this forum: No registered users and 27 guests