Kernel Panic on zfs send | zfs receive (--raw)

All your general support questions for OpenZFS on OS X.

Kernel Panic on zfs send | zfs receive (--raw)

Postby The Ghost of Mikey » Sat Jan 06, 2018 5:23 am

Hi,

I'm trying to zfs send | zfs receive an encrypted dataset using --raw option. Worked the last few snapshots pretty good. Now, I have a snapshot (around 5.07 GB) which (reproducible) kernel panics and the last few meters of the send|receive.

Code: Select all
at Jan  6 14:17:35 2018

*** Panic Report ***
panic(cpu 4 caller 0xffffff7fae2fd83a): VERIFY3( 0 == dmu_object_set_nlevels(rwa->os, drro->drr_object, drro->drr_nlevels, tx) ) failed (0 == 22)

Backtrace (CPU 4), Frame : Return Address
0xffffff8278e9bc40 : 0xffffff802c6505f6
0xffffff8278e9bc90 : 0xffffff802c77d604
0xffffff8278e9bcd0 : 0xffffff802c76f0f9
0xffffff8278e9bd50 : 0xffffff802c602120
0xffffff8278e9bd70 : 0xffffff802c65002c
0xffffff8278e9bea0 : 0xffffff802c64fdac
0xffffff8278e9bf00 : 0xffffff7fae2fd83a
0xffffff8278e9bfa0 : 0xffffff802c6014f7
      Kernel Extensions in backtrace:
         net.lundman.zfs(1.7)[2C2FC35B-3122-31B0-92C4-A344CFBA2EDA]@0xffffff7fae2dc000->0xffffff7fae59afff
            dependency: com.apple.iokit.IOStorageFamily(2.1)[B0FCE898-1542-34C0-B845-46FAE81DD9E6]@0xffffff7fad046000
            dependency: net.lundman.spl(1.7.0)[96CFA276-22B9-3F89-9579-53A63CC7E5FD]@0xffffff7fad0e7000

BSD process name corresponding to current thread: kernel_task
Boot args: dart=0 nv_disable=1  kext-dev-mode=1 rootless=0

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:     0x000000002c200000
Kernel text base: 0xffffff802c400000
__HIB  text base: 0xffffff802c300000
System model name: iMac14,1 (Mac-SOMEHACKINTOSH)

System uptime in nanoseconds: 1798329221936
last loaded kext at 271605263119: com.apple.filesystems.msdosfs   1.10 (addr 0xffffff7faeb47000, size 69632)
loaded kexts:
org.virtualbox.kext.VBoxNetAdp   5.2.2
org.virtualbox.kext.VBoxNetFlt   5.2.2
org.virtualbox.kext.VBoxUSB   5.2.2
org.virtualbox.kext.VBoxDrv   5.2.2
net.lundman.zfs   1.7.0
net.lundman.spl   1.7.0
com.insanelymac.AtherosL1cEthernet   1.2.3
org.netkas.driver.FakeSMC   1765
com.rehabman.driver.USBInjectAll   0.6.2
com.apple.filesystems.msdosfs   1.10
com.apple.filesystems.smbfs   3.2
com.apple.filesystems.afpfs   11.1
com.apple.nke.asp-tcp   8.0.2
com.apple.filesystems.autofs   3.0
com.apple.driver.AppleGraphicsDevicePolicy   3.16.21
com.apple.AGDCPluginDisplayMetrics   3.16.2
com.apple.driver.AppleTyMCEDriver   1.0.3d2
com.apple.driver.AppleHV   1
com.apple.driver.AppleUpstreamUserClient   3.6.4
com.apple.driver.AppleMCCSControl   1.5.3
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.AppleIntelHD4000Graphics   10.3.0
com.apple.driver.AppleLPC   3.1
com.apple.driver.AudioAUUC   1.70
com.apple.driver.Apple16X50ACPI   3.2
com.apple.driver.AppleIntelSlowAdaptiveClocking   4.0.0
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.ACPI_SMC_PlatformPlugin   1.0.0
com.apple.driver.AppleFIVRDriver   4.1.0
com.apple.driver.AppleIntelFramebufferCapri   10.3.0
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.iokit.SCSITaskUserClient   404.30.2
com.apple.driver.AppleAHCIPort   329
com.apple.driver.AppleACPIButtons   6.1
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleHPET   1.8
com.apple.driver.AppleSMBIOS   2.1
com.apple.driver.AppleAPIC   1.7
com.apple.driver.AppleIntelCPUPowerManagementClient   220.0.0
com.apple.nke.applicationfirewall   183
com.apple.security.TMSafetyNet   8
com.apple.security.quarantine   3
com.apple.IOBufferCopyEngineTest   1
com.apple.driver.AppleIntelCPUPowerManagement   220.0.0
com.apple.security.SecureRemotePassword   1.0
com.apple.iokit.IOUSBUserClient   900.4.1
com.apple.kext.triggers   1.0
com.apple.driver.AppleGraphicsControl   3.16.21
com.apple.driver.AppleSMBusController   1.0.18d1
com.apple.iokit.IOSMBusFamily   1.1
com.apple.driver.AppleSSE   1.0
com.apple.driver.AppleHDAController   280.12
com.apple.iokit.IOHDAFamily   280.12
com.apple.AppleGPUWrangler   3.16.2
com.apple.iokit.IONDRVSupport   517.22
com.apple.driver.AppleSMBusPCI   1.0.14d1
com.apple.driver.Apple16X50Serial   3.2
com.apple.iokit.IOSerialFamily   11
com.apple.iokit.IOSlowAdaptiveClockingFamily   1.0.0
com.apple.driver.IOPlatformPluginLegacy   1.0.0
com.apple.driver.IOPlatformPluginFamily   6.0.0d8
com.apple.iokit.IOAcceleratorFamily2   376.6
com.apple.iokit.IOSurface   209.2.2
com.apple.AppleGraphicsDeviceControl   3.16.21
com.apple.iokit.IOGraphicsFamily   517.22
com.apple.driver.AppleHIDKeyboard   203
com.apple.driver.usb.IOUSBHostHIDDevice   1.2
com.apple.iokit.IOAHCIBlockStorage   301.20.1
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport   6.0.2f2
com.apple.iokit.IOBluetoothHostControllerUSBTransport   6.0.2f2
com.apple.iokit.IOBluetoothHostControllerTransport   6.0.2f2
com.apple.iokit.IOBluetoothFamily   6.0.2f2
com.apple.driver.AppleUSBAudio   311.9
com.apple.iokit.IOAudioFamily   206.5
com.apple.vecLib.kext   1.2.0
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.filesystems.hfs.encodings.kext   1
com.apple.driver.usb.AppleUSBHub   1.2
com.apple.driver.AppleUSBMergeNub   900.4.1
com.apple.driver.AppleUSBHostMergeProperties   1.2
com.apple.driver.usb.AppleUSBHostPacketFilter   1.0
com.apple.iokit.IOUSBFamily   900.4.1
com.apple.iokit.IOSCSIMultimediaCommandsDevice   404.30.2
com.apple.iokit.IOBDStorageFamily   1.8
com.apple.iokit.IODVDStorageFamily   1.8
com.apple.iokit.IOCDStorageFamily   1.8
com.apple.driver.AppleXsanScheme   3
com.apple.iokit.IOAHCISerialATAPI   267
com.apple.iokit.IOAHCIFamily   288
com.apple.iokit.IONVMeFamily   2.1.0
com.apple.driver.usb.AppleUSBEHCIPCI   1.2
com.apple.driver.usb.AppleUSBEHCI   1.2
com.apple.driver.usb.AppleUSBXHCIPCI   1.2
com.apple.driver.usb.AppleUSBXHCI   1.2
com.apple.driver.AppleEFINVRAM   2.1
com.apple.driver.AppleEFIRuntime   2.1
com.apple.iokit.IOHIDFamily   2.0.0
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

The Ghost of Mikey
 
Posts: 17
Joined: Sat Mar 22, 2014 1:29 am

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby Brendon » Sat Jan 06, 2018 1:42 pm

Pretty sure that’s one of the known crypto bugs. What I dont know is whether master already contains a fix or whether we are waiting for the zfs crypto guy to fix this issue upstream before merging a fix.

Cheers
Brendon
Brendon
 
Posts: 286
Joined: Thu Mar 06, 2014 12:51 pm

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby The Ghost of Mikey » Sat Jan 06, 2018 11:53 pm

would destroying the snapshot and "recreate and resend" it work?
The Ghost of Mikey
 
Posts: 17
Joined: Sat Mar 22, 2014 1:29 am

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby lundman » Mon Jan 08, 2018 4:54 pm

I think it is covered by the crypto PR we are waiting for.

Also, I do like "the last few meters".
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby The Ghost of Mikey » Sat Jan 13, 2018 2:16 am

I think it is covered by the crypto PR we are waiting for.


Will u create a new release, when the PR is accepted/merged? Since this kernel panic stuff is pretty annoying and the encryption feature is way to useful to not use it anyway...
The Ghost of Mikey
 
Posts: 17
Joined: Sat Mar 22, 2014 1:29 am

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby Brendon » Sun Jan 14, 2018 1:11 am

Yes there will be a release when the fix is available.

Note there is the potential for current encrypted pools to be invalid after the bug fix. Your mileage may vary!

Cheers
Brendon
Brendon
 
Posts: 286
Joined: Thu Mar 06, 2014 12:51 pm

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby The Ghost of Mikey » Mon Feb 26, 2018 7:30 pm

Any news about a fixed release yet?
The Ghost of Mikey
 
Posts: 17
Joined: Sat Mar 22, 2014 1:29 am

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby lundman » Tue Feb 27, 2018 3:41 am

We have put in the ticket for a new package installer, but I must admit I have not heard anything yet. I will enquire as to its status.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby The Ghost of Mikey » Fri Mar 16, 2018 1:20 pm

glad to see a new version

Note there is the potential for current encrypted pools to be invalid after the bug fix.


Can I safely upgrade with my (old) existing encrypted pool? Or is something incompatible and I need to temporary store the content of the (old) existing encrypted pool and drop/recreate that pool?

And, are the old snapshots of that (old) existing encrypted pool I 'zfs send | zfs receive'd to my Backup-Device still valid and usable (by sending new incremental snapshots). Or do I need to destroy that backup and send|receive from the beginning?

Thanks in advice!
The Ghost of Mikey
 
Posts: 17
Joined: Sat Mar 22, 2014 1:29 am

Re: Kernel Panic on zfs send | zfs receive (--raw)

Postby Brendon » Fri Mar 16, 2018 1:31 pm

If you have an older zfs native encrypted pool they are not compatible.

Backup, destroy and recreate is the drill I believe.
Brendon
 
Posts: 286
Joined: Thu Mar 06, 2014 12:51 pm

Next

Return to General Help

Who is online

Users browsing this forum: No registered users and 23 guests